The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Fix the missing temperature parameter for Baichuan-AI chat_model (#12420)
Henterd6888a90d0e3
diff --git a/libs/langchain/langchain/chat_models/baichuan.py b/libs/langchain/langchain/chat_models/baichuan.pyindex b0cb78a119..7f5f5e5f91 100644--- a/libs/langchain/langchain/chat_models/baichuan.py+++ b/libs/langchain/langchain/chat_models/baichuan.py@@ -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,