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(github): route claude-opus-4.6 via chat completions (#2821)
GreatLiub741bd6b2365
diff --git a/open-sse/config/providerRegistry.ts b/open-sse/config/providerRegistry.tsindex fb45ea9b6e..c7ba2fbded 100644--- a/open-sse/config/providerRegistry.ts+++ b/open-sse/config/providerRegistry.ts@@ -951,7 +951,6 @@ export const REGISTRY: Record<string, RegistryEntry> = {{id: "claude-opus-4.6",name: "Claude Opus 4.6",- targetFormat: "openai-responses",contextLength: 1000000,maxOutputTokens: 128000,},diff --git a/tests/unit/executor-github.test.ts b/tests/unit/executor-github.test.tsindex 930cd5f613..7a11ad023e 100644--- a/tests/unit/executor-github.test.ts+++ b/tests/unit/executor-github.test.ts@@ -25,6 +25,12 @@ test("GithubExecutor.buildUrl routes response-format models to /responses", () =}});+test("GithubExecutor.buildUrl keeps GitHub Claude Opus 4.6 on /chat/completions", () => {+ const executor = new GithubExecutor();+ const url = executor.buildUrl("claude-opus-4.6", true);+ assert.equal(url, "https://api.githubcopilot.com/chat/completions");+});+test("GithubExecutor.transformRequest injects JSON response instructions for Claude and strips reasoning fields", () => {const executor = new GithubExecutor();const body = {diff --git a/tests/unit/provider-models-config.test.ts b/tests/unit/provider-models-config.test.tsindex 961e660e5e..5628140cbb 100644--- a/tests/unit/provider-models-config.test.ts+++ b/tests/unit/provider-models-config.test.ts@@ -68,9 +68,11 @@ test("GitHub Copilot registry reflects the current supported model lineup", () =assert.ok(ids.has("gpt-5.4"));assert.ok(ids.has("gpt-5.4-mini"));assert.ok(ids.has("claude-opus-4.7"));+ assert.ok(ids.has("claude-opus-4.6"));assert.ok(ids.has("claude-sonnet-4.6"));assert.ok(ids.has("gemini-3-flash-preview"));assert.equal(getModelTargetFormat("gh", "gpt-5.3-codex"), "openai-responses");+ assert.equal(getModelTargetFormat("gh", "claude-opus-4.6"), null);assert.equal(ids.has("gpt-5.1"), false);assert.equal(ids.has("gpt-5.1-codex"), false);assert.equal(ids.has("claude-opus-4.1"), false);