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: resolve test suite regressions from registry cleanup
diegosouzapwb048d62ad0dd
diff --git a/tests/unit/bailian-coding-plan-provider.test.ts b/tests/unit/bailian-coding-plan-provider.test.tsindex a6b3b02723..161cc0ae36 100644--- a/tests/unit/bailian-coding-plan-provider.test.ts+++ b/tests/unit/bailian-coding-plan-provider.test.ts@@ -274,7 +274,7 @@ test("getStaticModelsForProvider returns local image catalogs for image-only proassert.ok(models, "xAI should expose local image models");assert.deepEqual(models.map((model) => model.id),- ["grok-imagine-image"]+ ["grok-imagine-image-pro", "grok-imagine-image"]);});diff --git a/tests/unit/provider-models-config.test.ts b/tests/unit/provider-models-config.test.tsindex 8e2c478271..7908d199a3 100644--- a/tests/unit/provider-models-config.test.ts+++ b/tests/unit/provider-models-config.test.ts@@ -57,7 +57,6 @@ test("GitHub Copilot registry reflects the current supported model lineup", () =assert.ok(ids.has("gpt-5.3-codex"));assert.ok(ids.has("gpt-5.4"));assert.ok(ids.has("gpt-5.4-mini"));- assert.ok(ids.has("gpt-5.4-nano"));assert.ok(ids.has("claude-opus-4.7"));assert.ok(ids.has("claude-sonnet-4.6"));assert.ok(ids.has("gemini-3-flash-preview"));diff --git a/tests/unit/services-branch-hardening.test.ts b/tests/unit/services-branch-hardening.test.tsindex a6384e42de..daaef9a576 100644--- a/tests/unit/services-branch-hardening.test.ts+++ b/tests/unit/services-branch-hardening.test.ts@@ -335,7 +335,7 @@ test("model helpers cover malformed input, alias maps, wildcard aliases, ambiguiassert.equal(wildcardAlias.model, "claude-sonnet-4-5-20250929");assert.equal(wildcardAlias.wildcardPattern, "claude-sonnet-*");- const ambiguous = await modelService.getModelInfoCore("gpt-5.2-codex", {});+ const ambiguous = await modelService.getModelInfoCore("claude-haiku-4.5", {});assert.equal(ambiguous.provider, null);assert.equal(ambiguous.errorType, "ambiguous_model");assert.ok(ambiguous.errorMessage.includes("provider/model"));diff --git a/tests/unit/t12-pricing-updates.test.ts b/tests/unit/t12-pricing-updates.test.tsindex 1b7b17cad4..0415ba4237 100644--- a/tests/unit/t12-pricing-updates.test.ts+++ b/tests/unit/t12-pricing-updates.test.ts@@ -7,12 +7,6 @@ import { REGISTRY } from "../../open-sse/config/providerRegistry.ts";test("T12: pricing table includes MiniMax, GLM, Kimi and gpt-5.4 mini entries", () => {const pricing = getDefaultPricing();- assert.ok(pricing.cx["gpt-5.5"], "missing cx/gpt-5.5");- assert.ok(pricing.cx["gpt-5.5-xhigh"], "missing cx/gpt-5.5-xhigh");- assert.equal(pricing.cx["gpt-5.5"].input, 5.0);- assert.equal(pricing.cx["gpt-5.5"].cached, 0.5);- assert.equal(pricing.cx["gpt-5.5"].output, 30.0);-assert.ok(pricing.cx["gpt-5.4"], "missing cx/gpt-5.4");assert.ok(pricing.cx["gpt-5.4-mini"], "missing cx/gpt-5.4-mini");@@ -35,14 +29,11 @@ test("T12: pricing table includes MiniMax, GLM, Kimi and gpt-5.4 mini entries",assert.ok(pricing.kimi["kimi-for-coding"], "missing kimi/kimi-for-coding");});-test("T12: codex catalog includes GPT 5.5 entries", () => {+test("T12: codex catalog includes GPT 5.5 variations", () => {const codexModels = new Map(REGISTRY.codex.models.map((m) => [m.id, m]));- assert.ok(codexModels.has("gpt-5.5"), "missing codex/gpt-5.5");assert.ok(codexModels.has("gpt-5.5-medium"), "missing codex/gpt-5.5-medium");- assert.equal(codexModels.get("gpt-5.5")?.name, "GPT 5.5");+ assert.ok(codexModels.has("gpt-5.5-xhigh"), "missing codex/gpt-5.5-xhigh");assert.equal(codexModels.get("gpt-5.5-medium")?.name, "GPT 5.5 (Medium)");- assert.equal(codexModels.get("gpt-5.5")?.contextLength, 1050000);- assert.equal(codexModels.get("gpt-5.5")?.supportsXHighEffort, true);assert.equal(codexModels.get("gpt-5.5-medium")?.targetFormat, "openai-responses");assert.equal(codexModels.get("gpt-5.5-xhigh")?.targetFormat, "openai-responses");});