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
import { test } from "node:test";
import assert from "node:assert/strict";
import { getClaudeCodeDefaultModels } from "../../open-sse/config/providerRegistry.ts";
test("getClaudeCodeDefaultModels returns expected default models", () => {
const models = getClaudeCodeDefaultModels();
// They should be non-empty strings because providerRegistry is populated statically
assert.ok(typeof models.fable === "string");
assert.ok(typeof models.opus === "string");
assert.ok(typeof models.sonnet === "string");
assert.ok(typeof models.haiku === "string");
// Check that the returned IDs match the expected patterns
if (models.fable) {
assert.match(models.fable, /fable/i);
}
if (models.opus) {
assert.match(models.opus, /opus/i);
}
if (models.sonnet) {
assert.match(models.sonnet, /sonnet/i);
}
if (models.haiku) {
assert.match(models.haiku, /haiku/i);
}
});