Ver Fonte

fix: internal error when tool authorization (#8449)

takatost há 7 meses atrás
pai
commit
bf16de50fe
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      api/core/tools/provider/tool_provider.py

+ 1 - 1
api/core/tools/provider/tool_provider.py

@@ -153,7 +153,7 @@ class ToolProviderController(BaseModel, ABC):
 
             # 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,
             }: