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
hwchase17-patch-1
Henter 11 months ago committed by GitHub
parent 6908634428
commit d6888a90d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save