The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
fix:fix ChatZhipuAI tool call bug (#26693)
stein198891594928c503
diff --git a/libs/community/langchain_community/chat_models/zhipuai.py b/libs/community/langchain_community/chat_models/zhipuai.pyindex 63994b3a6e..06f299e010 100644--- a/libs/community/langchain_community/chat_models/zhipuai.py+++ b/libs/community/langchain_community/chat_models/zhipuai.py@@ -204,7 +204,7 @@ def _convert_delta_to_message_chunk(role = dct.get("role")content = dct.get("content", "")additional_kwargs = {}- tool_calls = dct.get("tool_call", None)+ tool_calls = dct.get("tool_calls", None)if tool_calls is not None:additional_kwargs["tool_calls"] = tool_calls