From bbf4c387406a855c9681e8f2bc047e60e824d60e Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 30 Jun 2023 09:35:33 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=80=20refactor(llms.py):=20simplify=20?= =?UTF-8?q?condition=20for=20showing=20fields=20in=20the=20VertexAI=20clas?= =?UTF-8?q?s=20The=20condition=20for=20showing=20fields=20in=20the=20Verte?= =?UTF-8?q?xAI=20class=20has=20been=20simplified=20to=20exclude=20specific?= =?UTF-8?q?=20field=20names.=20This=20improves=20readability=20and=20maint?= =?UTF-8?q?ainability=20of=20the=20code.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/template/frontend_node/llms.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/backend/langflow/template/frontend_node/llms.py b/src/backend/langflow/template/frontend_node/llms.py index a1b1af3f3..c1080ea2d 100644 --- a/src/backend/langflow/template/frontend_node/llms.py +++ b/src/backend/langflow/template/frontend_node/llms.py @@ -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