diff --git a/libs/community/langchain_community/chat_models/zhipuai.py b/libs/community/langchain_community/chat_models/zhipuai.py index 63994b3a6e1..06f299e010e 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