Przeglądaj źródła

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

Co-authored-by: wayne.wang <wayne.wang@beibei.com>
wayne.wang 1 rok temu
rodzic
commit
52ebffa857

+ 1 - 0
api/core/model_providers/models/llm/zhipuai_model.py

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