mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-04-21 05:09:41 +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
|
# check type
|
||||||
credential_schema = credentials_need_to_validate[credential_name]
|
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 {
|
if credential_schema.type in {
|
||||||
ToolProviderCredentials.CredentialsType.SECRET_INPUT,
|
ToolProviderCredentials.CredentialsType.SECRET_INPUT,
|
||||||
ToolProviderCredentials.CredentialsType.TEXT_INPUT,
|
ToolProviderCredentials.CredentialsType.TEXT_INPUT,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user