The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community:ChatLiteLLM support output reasoning content (#30430)
Misakar7750ad588bc1
diff --git a/libs/community/langchain_community/chat_models/litellm.py b/libs/community/langchain_community/chat_models/litellm.pyindex 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 = {}