Skip to content

Commit

Permalink
fix: internal error when tool authorization (langgenius#8449)
Browse files Browse the repository at this point in the history
  • Loading branch information
takatost authored and lau-td committed Oct 23, 2024
1 parent c184b7c commit 466ca8a
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 466ca8a

Please sign in to comment.