🔀 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:
Gabriel Luiz Freitas Almeida 2023-06-30 09:35:33 -03:00
commit bbf4c38740

View file

@ -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