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: disable proxy_ tool prefix for all Claude-target passthrough (#618)
diegosouzapw926fd8abf4a1
diff --git a/open-sse/handlers/chatCore.ts b/open-sse/handlers/chatCore.tsindex 7f542124e3..7a58219aba 100644--- a/open-sse/handlers/chatCore.ts+++ b/open-sse/handlers/chatCore.ts@@ -426,10 +426,12 @@ export async function handleChatCore({} else {translatedBody = { ...body };- // Issue #199: Disable tool name prefix when routing Claude-format requests- // to non-Claude backends (prefix causes tool name mismatches)- const claudeProviders = ["claude", "anthropic"];- if (targetFormat === FORMATS.CLAUDE && !claudeProviders.includes(provider?.toLowerCase?.())) {+ // Issue #199 + #618: Always disable tool name prefix in Claude passthrough.+ // The proxy_ prefix was designed for OpenAI→Claude translation to avoid+ // conflicts with Claude OAuth tools, but in the passthrough path the tools+ // are already in Claude format. Applying the prefix turns "Bash" into+ // "proxy_Bash", which Claude rejects ("No such tool available: proxy_Bash").+ if (targetFormat === FORMATS.CLAUDE) {translatedBody._disableToolPrefix = true;}