mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-05 03:02:35 +00:00
community:ChatLiteLLM support output reasoning content (#30430)
This commit is contained in:
parent
b75573e858
commit
7750ad588b
@ -134,6 +134,8 @@ def _convert_delta_to_message_chunk(
|
|||||||
content = _dict.get("content") or ""
|
content = _dict.get("content") or ""
|
||||||
if _dict.get("function_call"):
|
if _dict.get("function_call"):
|
||||||
additional_kwargs = {"function_call": dict(_dict["function_call"])}
|
additional_kwargs = {"function_call": dict(_dict["function_call"])}
|
||||||
|
elif _dict.get("reasoning_content"):
|
||||||
|
additional_kwargs = {"reasoning_content": _dict["reasoning_content"]}
|
||||||
else:
|
else:
|
||||||
additional_kwargs = {}
|
additional_kwargs = {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user