🔀 refactor(llms.py): simplify condition for showing fields in the VertexAI class
The condition for showing fields in the VertexAI class has been simplified to exclude specific field names. This improves readability and maintainability of the code.
This commit is contained in:
parent
e8de0c60ef
commit
bbf4c38740
1 changed files with 8 additions and 0 deletions
|
|
@ -102,3 +102,11 @@ class LLMFrontendNode(FrontendNode):
|
|||
field.show = True
|
||||
if field.name == "credentials":
|
||||
field.field_type = "file"
|
||||
if name == "VertexAI" and field.name not in [
|
||||
"callbacks",
|
||||
"client",
|
||||
"stop",
|
||||
"tags",
|
||||
"cache",
|
||||
]:
|
||||
field.show = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue