fix: test run custom tool raise error (#12178)

This commit is contained in:
非法操作 2024-12-28 17:51:22 +08:00 committed by GitHub
parent 72ae414da4
commit ead4b34127
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -425,7 +425,7 @@ class ApiToolManageService:
"tenant_id": tenant_id,
}
)
result = tool.validate_credentials(credentials, parameters)
result = runtime_tool.validate_credentials(credentials, parameters)
except Exception as e:
return {"error": str(e)}