Skip to content

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

1.7 KB
Raw Blame
import test from "node:test";
import assert from "node:assert/strict";

import { REGISTRY } from "@omniroute/open-sse/config/providers/index.ts";

const { getResolvedModelCapabilities } = await import("../../src/lib/modelCapabilities.ts");

// Kiro's first OpenAI-family models, announced 2026-07-14
// (kiro.dev/changelog/models): GPT-5.6 Sol / Terra / Luna, with a 128k
// max-output budget on the Kiro backend. Their context window went from 272k
// to 1M on 2026-09-14
// (https://kiro.dev/changelog/models/gpt-5-6-1m-context-window/).
const GPT_5_6_KIRO_MODELS = ["gpt-5.6-sol", "gpt-5.6-terra", "gpt-5.6-luna"] as const;

test("kiro registry exposes the GPT-5.6 Sol/Terra/Luna model ids", () => {
  const ids = new Set((REGISTRY.kiro?.models || []).map((m) => m.id));
  for (const id of GPT_5_6_KIRO_MODELS) {
    assert.ok(ids.has(id), `kiro registry must expose "${id}"`);
  }
});

test("kiro GPT-5.6 models resolve the 1M context window", () => {
  for (const model of GPT_5_6_KIRO_MODELS) {
    const caps = getResolvedModelCapabilities({ provider: "kiro", model });
    assert.equal(caps.contextWindow, 1000000, `${model} must resolve a 1M context window`);
  }
});

test("kiro GPT-5.6 models resolve a 128k max output budget", () => {
  for (const model of GPT_5_6_KIRO_MODELS) {
    const caps = getResolvedModelCapabilities({ provider: "kiro", model });
    assert.equal(caps.maxOutputTokens, 128000, `${model} must resolve a 128k max output`);
  }
});

test("kiro GPT-5.6 models resolve through the 'kr' provider alias too", () => {
  for (const model of GPT_5_6_KIRO_MODELS) {
    const caps = getResolvedModelCapabilities({ provider: "kr", model });
    assert.equal(caps.contextWindow, 1000000, `${model} must resolve via the 'kr' alias`);
  }
});