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
refactor: trim function name consistently in Responses-to-Chat direction
Prakersh Maheshwarief623c9bb5d1
diff --git a/open-sse/translator/request/openai-responses.ts b/open-sse/translator/request/openai-responses.tsindex fdb0e29db9..e10a294aad 100644--- a/open-sse/translator/request/openai-responses.ts+++ b/open-sse/translator/request/openai-responses.ts@@ -121,8 +121,8 @@ export function openaiResponsesToOpenAIRequest(if (itemType === "function_call") {// Skip tool calls with empty names to avoid infinite placeholder_tool loops- const fnName = toString(item.name);- if (!fnName || !fnName.trim()) {+ const fnName = toString(item.name).trim();+ if (!fnName) {continue;}