From 94d04934b3aa943fce8ad9dfc5c9982e1375bab5 Mon Sep 17 00:00:00 2001 From: Yeuoly <45712896+Yeuoly@users.noreply.github.com> Date: Fri, 29 Mar 2024 22:15:16 +0800 Subject: [PATCH] fix: agent tool label (#3039) --- .../config/agent/agent-tools/choose-tool/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/app/configuration/config/agent/agent-tools/choose-tool/index.tsx b/web/app/components/app/configuration/config/agent/agent-tools/choose-tool/index.tsx index 0b0e0676b7..d47406e95b 100644 --- a/web/app/components/app/configuration/config/agent/agent-tools/choose-tool/index.tsx +++ b/web/app/components/app/configuration/config/agent/agent-tools/choose-tool/index.tsx @@ -59,7 +59,7 @@ const ChooseTool: FC = ({ provider_type: collection.type, provider_name: collection.name, tool_name: tool.name, - tool_label: tool.label[locale], + tool_label: tool.label[locale] || tool.label[locale.replaceAll('-', '_')], tool_parameters: parameters, enabled: true, })