Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
fix: omit synthesized reasoning items in Chat→Responses translation (#224)
diegosouzapw2d977a3c4d2f
diff --git a/open-sse/translator/request/openai-responses.ts b/open-sse/translator/request/openai-responses.tsindex 2091bf9f1a..c623086316 100644--- a/open-sse/translator/request/openai-responses.ts+++ b/open-sse/translator/request/openai-responses.ts@@ -275,30 +275,11 @@ export function openaiToOpenAIResponsesRequest(// Convert assistant messagesif (role === "assistant") {- // Add reasoning content before assistant output- if (msg.reasoning_content) {- input.push({- type: "reasoning",- id: `reasoning_${input.length}`,- summary: [{ type: "summary_text", text: toString(msg.reasoning_content) }],- });- }+ // Skip reasoning_content — OpenAI Responses API requires server-generated+ // rs_* IDs for reasoning items. Synthesizing client-side IDs (e.g. reasoning_N)+ // causes 400 errors from Responses-compatible upstreams. (#224)- // Handle thinking blocks in array content- if (Array.isArray(msg.content)) {- for (const blockValue of msg.content) {- const block = toRecord(blockValue);- if (block.type === "thinking" || block.type === "redacted_thinking") {- input.push({- type: "reasoning",- id: `reasoning_${input.length}`,- summary: [- { type: "summary_text", text: toString(block.thinking || block.data, "...") },- ],- });- }- }- }+ // Skip thinking blocks in array content — same rs_* ID constraint applies// Build assistant output contentconst outputContent: unknown[] = [];