9router/open-sse
luoyide 542a088c04 feat(github): route Claude models through Copilot's native /v1/messages
GitHub Copilot's /chat/completions and /responses endpoints never surface
prompt-cache token counts for Claude models. Route Claude models (detected
by name pattern) to Copilot's Anthropic-native /v1/messages shim via a new
executeWithMessagesEndpoint(), translating OpenAI-shape requests to Claude
natively so cache_control gets injected and cached_tokens surface.

Also fixes translateRequest()'s internal _toolNameMap being sent upstream,
which made Anthropic's strict schema reject tool-call requests with a 400 —
now stripped and threaded through response state. Removes the now-dead
response_format Claude JSON-mode workaround.
2026-07-15 17:34:08 +07:00
..
config fix(gemini): support native TTS generateContent endpoint 2026-06-26 10:50:13 +07:00
executors feat(github): route Claude models through Copilot's native /v1/messages 2026-07-15 17:34:08 +07:00
handlers feat(usage): track cached tokens + correct input/output/cache cost (#2209) 2026-07-03 15:18:27 +07:00
providers feat(github): route Claude models through Copilot's native /v1/messages 2026-07-15 17:34:08 +07:00
rtk fix(headroom): skip unsafe responses tool history (#2132) 2026-06-29 15:59:21 +07:00
services feat(codex): show reset credit expiry details (#2290) 2026-07-03 15:07:45 +07:00
shared refactor(open-sse): registry consolidation + DRY media/oauth/adhoc cleanup 2026-06-14 13:15:48 +07:00
transformer fix(codex): harden streaming timeouts + Responses terminal events 2026-06-06 16:07:43 +07:00
translator feat(translator): drop temperature for all Claude models 2026-07-15 17:08:41 +07:00
utils feat(usage): track cached tokens + correct input/output/cache cost (#2209) 2026-07-03 15:18:27 +07:00
.npmignore Update jsconfig.json and package.json to correct open-sse path references from relative to local directory. 2026-01-05 10:37:09 +07:00
AGENTS.md feat(headroom): add proxy lifecycle management + dashboard UI 2026-06-20 10:09:50 +07:00
index.js refactor(open-sse): translator DRY + schema enums, bug fixes, dead code cleanup 2026-06-14 18:49:38 +07:00