/** CAPI 1.05M long-context tier shared by the tiered OpenAI gpt-5.x models. */
const OPENAI_LONG_TIER = {
    contextWindow: 272_000,
    contextWindowOptions: [272_000, 1_050_000],
    maxInputTokens: 922_000,
    maxTokens: 128_000,
};
/** CAPI 1M long-context tier shared by tiered Anthropic/Google models. */
const BRANDED_1M_TIER = {
    contextWindow: 200_000,
    contextWindowOptions: [200_000, 1_000_000],
    maxInputTokens: 936_000,
    maxTokens: 64_000,
};
const STATIC_COPILOT_MODEL_FALLBACKS = new Map([
    // OpenAI: bundled metadata claims a 400k base window; CAPI's default tier is
    // 272k, with a 1.05M long tier (922k input cap) on gpt-5.5/gpt-5.4.
    ["gpt-5.5", OPENAI_LONG_TIER],
    ["gpt-5.4", OPENAI_LONG_TIER],
    ["gpt-5.4-mini", { contextWindow: 272_000, maxTokens: 128_000 }],
    ["gpt-5.3-codex", { contextWindow: 272_000, maxTokens: 128_000 }],
    // Bundled metadata claims 264k; CAPI enforces 128k.
    ["gpt-5-mini", { contextWindow: 128_000, maxTokens: 64_000 }],
    ["gpt-4.1", { contextWindow: 128_000, maxTokens: 16_384 }],
    // Anthropic: CAPI's default tier is 200k with a 1M long tier (936k input
    // cap). Bundled claude-opus-4.6/claude-sonnet-4.6 wrongly claim the branded
    // 1M window as the base tier, and bundled opus-4.6/4.7 output caps are half
    // of CAPI's real 64k.
    ["claude-opus-4.6", BRANDED_1M_TIER],
    ["claude-opus-4.7", BRANDED_1M_TIER],
    ["claude-opus-4.8", BRANDED_1M_TIER],
    ["claude-sonnet-4.6", BRANDED_1M_TIER],
    // Bundled metadata claims 200k; CAPI enforces smaller default windows, with
    // no long tier.
    ["claude-haiku-4.5", { contextWindow: 136_000, maxTokens: 64_000 }],
    ["claude-sonnet-4.5", { contextWindow: 168_000, maxTokens: 32_000 }],
    // Google: the pro/3.5 models share the branded 1M tier structure.
    ["gemini-3.1-pro-preview", BRANDED_1M_TIER],
    ["gemini-3.5-flash", BRANDED_1M_TIER],
    ["gemini-2.5-pro", { contextWindow: 128_000, maxTokens: 64_000 }],
    ["gemini-3-flash-preview", { contextWindow: 128_000, maxTokens: 64_000 }],
]);
/**
 * Look up the static CAPI-derived limits for a bundled Copilot model. Returns
 * undefined for models with no CAPI catalog presence to snapshot.
 */
export function getStaticCopilotModelFallback(modelId) {
    return STATIC_COPILOT_MODEL_FALLBACKS.get(modelId);
}
//# sourceMappingURL=copilot-model-static-fallbacks.js.map