소스 검색

fix: agent tool label (#3039)

Yeuoly 1 년 전
부모
커밋
94d04934b3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      web/app/components/app/configuration/config/agent/agent-tools/choose-tool/index.tsx

+ 1 - 1
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,
               })