From 99ce6430101b14db3900784370d9f65f7ba026fc Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 15 Jun 2023 18:14:48 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(llms.py):=20add=20condition?= =?UTF-8?q?=20to=20show=20password=20field=20for=20'tokens'=20field=20name?= =?UTF-8?q?=20The=20condition=20to=20show=20the=20password=20field=20was?= =?UTF-8?q?=20not=20working=20for=20the=20'tokens'=20field=20name.=20The?= =?UTF-8?q?=20condition=20has=20been=20updated=20to=20include=20'tokens'?= =?UTF-8?q?=20in=20the=20field=20name=20and=20show=20the=20password=20fiel?= =?UTF-8?q?d.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/template/frontend_node/llms.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backend/langflow/template/frontend_node/llms.py b/src/backend/langflow/template/frontend_node/llms.py index d2af037dc..272e42c7f 100644 --- a/src/backend/langflow/template/frontend_node/llms.py +++ b/src/backend/langflow/template/frontend_node/llms.py @@ -46,7 +46,10 @@ class LLMFrontendNode(FrontendNode): if field.name in SHOW_FIELDS: field.show = True - if "api" in field.name and ("key" in field.name or "token" in field.name): + if "api" in field.name and ( + "key" in field.name + or ("token" in field.name and "tokens" not in field.name) + ): field.password = True field.show = True # Required should be False to support