Skip to content

Commit

Permalink
fix: internal error when tool authorization (#8449)
Browse files Browse the repository at this point in the history
  • Loading branch information
takatost authored Sep 14, 2024
1 parent 7e611ff commit bf16de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/tools/provider/tool_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}:
Expand Down

0 comments on commit bf16de5

Please sign in to comment.