9router/open-sse/utils
Claude Code c785051360 fix(claude): forced tool_choice 400 on cc/ OAuth route
convertOpenAIToolChoice mapped {type:"function"} verbatim and cloakClaudeTools
left tool_choice.name unsuffixed, both rejected by Claude on the cc/ path.
Map forced-function to {type:"tool",name}, allowlist Claude-valid types, and
suffix tool_choice.name when it targets a renamed client tool.

Fixes #1592

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-06 12:54:01 +07:00
..
bypassHandler.js feat(chat): Enhance bypass handling and introduce CC filter naming feature 2026-03-13 09:41:40 +07:00
claudeCloaking.js fix(claude): forced tool_choice 400 on cc/ OAuth route 2026-06-06 12:54:01 +07:00
claudeHeaderCache.js Fix : Updated Anthropic-Beta header. 2026-04-05 07:46:26 +07:00
clientDetector.js feat: add DeepSeek TUI as CLI tool in dashboard (#1088) 2026-05-13 22:40:42 +07:00
cursorChecksum.js fix: update Cursor client version to 3.1.0 for Composer 2 compatibility (#525) 2026-04-08 15:37:51 +07:00
cursorProtobuf.js fix: force Agent mode in Cursor protobuf when User-Agent contains Claude Code (closes #643) (#692) 2026-04-22 10:24:58 +07:00
debugLog.js Fix codex 2026-05-26 11:35:39 +07:00
error.js - Updated markAccountUnavailable function to accept resetsAtMs for precise cooldown management. 2026-04-24 11:36:16 +07:00
ollamaTransform.js Feat : Auto restart after crash 2026-03-14 09:37:29 +07:00
proxyFetch.js Fix Bug 2026-05-26 23:09:19 +07:00
reasoningContentInjector.js fix(minimax): echo reasoning_content on follow-up turns to avoid 400 2026-06-06 12:25:12 +07:00
requestLogger.js Feat : Auto restart after crash 2026-03-14 09:37:29 +07:00
sessionManager.js Feat : Auto restart after crash 2026-03-14 09:37:29 +07:00
stream.js # v0.4.62 (2026-05-26) 2026-05-26 13:15:59 +07:00
streamHandler.js Fix codex 2026-05-26 11:35:39 +07:00
streamHelpers.js feat(ollama): Enhance Ollama support by adding new models, updating API format handling, and integrating translation functionality. 2026-03-12 15:24:10 +07:00
toolDeduper.js # v0.4.30 (2026-05-11) 2026-05-12 09:19:50 +07:00
usageTracking.js Fix issue with Ollama usage not being tracked and shown in 9router UI (#1102) 2026-05-14 09:58:18 +07:00