Jelajahi Sumber

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 tahun lalu
induk
melakukan
52ebffa857
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      api/core/model_providers/models/llm/zhipuai_model.py

+ 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,