fix: agent tool label (#3039)

This commit is contained in:
Yeuoly 2024-03-29 22:15:16 +08:00 committed by GitHub
parent 1387f9b23e
commit 94d04934b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,
})