mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-24 23:54:14 +00:00
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:
parent
6908634428
commit
d6888a90d0
@ -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…
Reference in New Issue
Block a user