mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:20:43 +00:00
fix(deepseek): backfill v4 assistant reasoning replay
This commit is contained in:
@@ -55,6 +55,7 @@ describe("venice provider plugin", () => {
|
||||
},
|
||||
],
|
||||
},
|
||||
{ role: "assistant", content: "done" },
|
||||
],
|
||||
};
|
||||
(options as { onPayload?: (payload: Record<string, unknown>) => void })?.onPayload?.(payload);
|
||||
@@ -87,6 +88,11 @@ describe("venice provider plugin", () => {
|
||||
],
|
||||
reasoning_content: "",
|
||||
},
|
||||
{
|
||||
role: "assistant",
|
||||
content: "done",
|
||||
reasoning_content: "",
|
||||
},
|
||||
],
|
||||
},
|
||||
]);
|
||||
|
||||
@@ -18,7 +18,7 @@ function ensureVeniceDeepSeekV4Replay(payload: Record<string, unknown>): void {
|
||||
continue;
|
||||
}
|
||||
const record = message as Record<string, unknown>;
|
||||
if (record.role === "assistant" && Array.isArray(record.tool_calls)) {
|
||||
if (record.role === "assistant") {
|
||||
record.reasoning_content ??= "";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user