Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: agent tool label (#3039)

Yeuoly94d04934b3aa
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 0b0e0676b7c..d47406e95b7 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<Props> = ({
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,
})