mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-03-18 03:14:39 +01:00
API: Always extract reasoning_content, even with tool calls
This commit is contained in:
parent
1ed56aee85
commit
0e35421593
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue