From bf16de50fe2bf16be0a3981ee8eae8c02bd20a8b Mon Sep 17 00:00:00 2001 From: takatost Date: Sat, 14 Sep 2024 21:50:02 +0800 Subject: [PATCH] fix: internal error when tool authorization (#8449) --- api/core/tools/provider/tool_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/tools/provider/tool_provider.py b/api/core/tools/provider/tool_provider.py index 7ba9dda17991c9..05c88b904e4a6d 100644 --- a/api/core/tools/provider/tool_provider.py +++ b/api/core/tools/provider/tool_provider.py @@ -153,7 +153,7 @@ def validate_credentials_format(self, credentials: dict[str, Any]) -> None: # check type credential_schema = credentials_need_to_validate[credential_name] - if credential_schema in { + if credential_schema.type in { ToolProviderCredentials.CredentialsType.SECRET_INPUT, ToolProviderCredentials.CredentialsType.TEXT_INPUT, }: