mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
fix: zhipuai validate error when user's api key not support for chatglm_turbo in issue #6289 (#6290)
This commit is contained in:
parent
68ad9a91b2
commit
b47fa27a35
|
@ -20,7 +20,7 @@ class ZhipuaiProvider(ModelProvider):
|
|||
model_instance = self.get_model_instance(ModelType.LLM)
|
||||
|
||||
model_instance.validate_credentials(
|
||||
model='chatglm_turbo',
|
||||
model='glm-4',
|
||||
credentials=credentials
|
||||
)
|
||||
except CredentialsValidateFailedError as ex:
|
||||
|
|
Loading…
Reference in New Issue
Block a user