"vscode:/vscode.git/clone" did not exist on "3ecabd06eee69e60c2239a6ca7159b978b26d6ce"
Unverified Commit bf001da4 authored by Chauncey's avatar Chauncey Committed by GitHub
Browse files

[Bugfix] Interleaved thinking keeps compatibility with reasoning_content (#33635)


Signed-off-by: default avatarchaunceyjiang <chaunceyjiang@gmail.com>
Co-authored-by: default avatarKoushik Dutta <koushd@gmail.com>
parent a0a984ac
...@@ -1463,6 +1463,9 @@ def _parse_chat_message_content( ...@@ -1463,6 +1463,9 @@ def _parse_chat_message_content(
# Include reasoning if present for interleaved thinking. # Include reasoning if present for interleaved thinking.
if reasoning is not None: if reasoning is not None:
result_msg["reasoning"] = cast(str, reasoning) result_msg["reasoning"] = cast(str, reasoning)
result_msg["reasoning_content"] = cast(
str, reasoning
) # keep compatibility
elif role == "tool": elif role == "tool":
parsed_msg = _ToolParser(message) parsed_msg = _ToolParser(message)
if "tool_call_id" in parsed_msg: if "tool_call_id" in parsed_msg:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment