mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 04:29:07 +08:00
fix: internal error when tool authorization (#8449)
This commit is contained in:
parent
7e611ffbf3
commit
bf16de50fe
@ -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,
|
||||
}:
|
||||
|
Loading…
x
Reference in New Issue
Block a user