API: Always extract reasoning_content, even with tool calls

This commit is contained in:
oobabooga 2026-03-12 18:52:41 -07:00
parent 1ed56aee85
commit 0e35421593

View file

@ -554,7 +554,7 @@ def chat_completions_common(body: dict, is_legacy: bool = False, stream=False, p
else:
yield chunk
else:
reasoning, content = extract_reasoning(answer) if not tool_calls else (None, answer)
reasoning, content = extract_reasoning(answer)
message = {
"role": "assistant",
"refusal": None,