fix: app config zhipu chatglm_std model, but it still use chatglm_lit… (#1377)

Co-authored-by: wayne.wang <wayne.wang@beibei.com>
This commit is contained in:
wayne.wang 2023-10-18 18:07:36 +08:00 committed by GitHub
parent d14f15863d
commit 52ebffa857
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,7 @@ class ZhipuAIModel(BaseLLM):
def _init_client(self) -> Any: def _init_client(self) -> Any:
provider_model_kwargs = self._to_model_kwargs_input(self.model_rules, self.model_kwargs) provider_model_kwargs = self._to_model_kwargs_input(self.model_rules, self.model_kwargs)
return ZhipuAIChatLLM( return ZhipuAIChatLLM(
model=self.name,
streaming=self.streaming, streaming=self.streaming,
callbacks=self.callbacks, callbacks=self.callbacks,
**self.credentials, **self.credentials,