Fix the missing temperature parameter for Baichuan-AI chat_model (#12420)

**Description:** the missing `temperature` parameter for Baichuan-AI
chat_model

Baichuan-AI api doc: https://platform.baichuan-ai.com/docs/api
This commit is contained in:
Henter 2023-10-28 03:07:21 +08:00 committed by GitHub
parent 6908634428
commit d6888a90d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,6 +186,7 @@ class ChatBaichuan(BaseChatModel):
"""Get the default parameters for calling Baichuan API."""
normal_params = {
"model": self.model,
"temperature": self.temperature,
"top_p": self.top_p,
"top_k": self.top_k,
"with_search_enhance": self.with_search_enhance,