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 { opencode_zenProvider } from "../../open-sse/config/providers/registry/opencode/zen/index.ts";
// #10867: Muse Spark is served by OpenCode Zen only on the OpenAI Responses API
// (/responses), not /chat/completions. Without targetFormat:"openai-responses"
// these models fall through to the default chat/completions pass-through and the
// upstream returns null/empty content.
test("muse-spark-1.2 and muse-spark-1.2-contributor-free route to the Responses API", () => {
for (const id of ["muse-spark-1.2", "muse-spark-1.2-contributor-free"]) {
const model = opencode_zenProvider.models.find((m) => m.id === id);
assert.ok(model, `${id} should be registered in the opencode-zen provider`);
assert.equal(
model?.targetFormat,
"openai-responses",
`${id} must target the Responses API, not the default chat/completions pass-through`
);
assert.equal(model?.supportsReasoning, true);
}
});