community:ChatLiteLLM support output reasoning content (#30430)

This commit is contained in:
Misakar 2025-03-22 19:43:33 +08:00 committed by GitHub
parent b75573e858
commit 7750ad588b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 = {}