mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
Fix codex
This commit is contained in:
@@ -568,10 +568,17 @@ export function openaiResponsesToOpenAIResponse(chunk, state) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Reasoning events (convert to content or skip)
|
||||
// Reasoning summary delta → emit as reasoning_content for client thinking display
|
||||
if (eventType === "response.reasoning_summary_text.delta") {
|
||||
// Optionally include reasoning as content, or skip
|
||||
return null;
|
||||
const delta = data.delta || "";
|
||||
if (!delta) return null;
|
||||
return {
|
||||
id: state.chatId,
|
||||
object: "chat.completion.chunk",
|
||||
created: state.created,
|
||||
model: state.model || "unknown",
|
||||
choices: [{ index: 0, delta: { reasoning_content: delta }, finish_reason: null }]
|
||||
};
|
||||
}
|
||||
|
||||
// Ignore other events
|
||||
|
||||
Reference in New Issue
Block a user