From 7750ad588bc1966bd868a02e802e2e9dd35bf241 Mon Sep 17 00:00:00 2001 From: Misakar Date: Sat, 22 Mar 2025 19:43:33 +0800 Subject: [PATCH] =?UTF-8?q?community=EF=BC=9AChatLiteLLM=20support=20outpu?= =?UTF-8?q?t=20reasoning=20content=20(#30430)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/community/langchain_community/chat_models/litellm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/community/langchain_community/chat_models/litellm.py b/libs/community/langchain_community/chat_models/litellm.py index 9b12f0c209..3b90102bd9 100644 --- a/libs/community/langchain_community/chat_models/litellm.py +++ b/libs/community/langchain_community/chat_models/litellm.py @@ -134,6 +134,8 @@ def _convert_delta_to_message_chunk( content = _dict.get("content") or "" if _dict.get("function_call"): additional_kwargs = {"function_call": dict(_dict["function_call"])} + elif _dict.get("reasoning_content"): + additional_kwargs = {"reasoning_content": _dict["reasoning_content"]} else: additional_kwargs = {}