fix: zhipuai validate error when user's api key not support for chatglm_turbo in issue #6289 (#6290)

This commit is contained in:
Onelevenvy 2024-07-15 19:27:18 +08:00 committed by GitHub
parent 68ad9a91b2
commit b47fa27a35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: