fix: save tool not add type (#12712)

This commit is contained in:
Joel 2025-01-14 10:28:41 +08:00 committed by GitHub
parent 98b139c680
commit 0a6b4d01d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -111,6 +111,7 @@ const ToolSelector: FC<Props> = ({
const paramValues = addDefaultValue(tool.params, toolParametersToFormSchemas(tool.paramSchemas.filter(param => param.form !== 'llm') as any))
const toolValue = {
provider_name: tool.provider_id,
type: tool.provider_type,
tool_name: tool.tool_name,
parameters: paramValues,
enabled: tool.is_team_authorization,