mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-04-22 13:49:45 +08:00
fix: credential *** should be string (#8785)
This commit is contained in:
parent
ac73763726
commit
0c96f0aa51
@ -153,6 +153,9 @@ class ToolProviderController(BaseModel, ABC):
|
||||
|
||||
# check type
|
||||
credential_schema = credentials_need_to_validate[credential_name]
|
||||
if not credential_schema.required and credentials[credential_name] is None:
|
||||
continue
|
||||
|
||||
if credential_schema.type in {
|
||||
ToolProviderCredentials.CredentialsType.SECRET_INPUT,
|
||||
ToolProviderCredentials.CredentialsType.TEXT_INPUT,
|
||||
|
Loading…
x
Reference in New Issue
Block a user