fix: stream(legacy): include delta.reasoning alongside reasoning_summary
In legacy/current compatibility mode, stream both `delta.reasoning_summary` and `delta.reasoning` (string) for reasoning deltas. This ensures clients that expect `choices[0].delta.reasoning` as a string (e.g., OpenCode) render reasoning without schema errors. Change made only to legacy to avoid breakage with other software
This commit is contained in:
@@ -409,7 +409,7 @@ def sse_translate_chat(
|
||||
"choices": [
|
||||
{
|
||||
"index": 0,
|
||||
"delta": {"reasoning_summary": delta_txt},
|
||||
"delta": {"reasoning_summary": delta_txt, "reasoning": delta_txt},
|
||||
"finish_reason": None,
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user