/** Default model IDs for each known provider */
export const defaultModelPerProvider = {
    "amazon-bedrock": "us.anthropic.claude-opus-4-6-v1",
    anthropic: "claude-opus-4-8",
    openai: "gpt-5.5",
    "azure-openai-responses": "gpt-5.4",
    "openai-codex": "gpt-5.5",
    deepseek: "deepseek-v4-pro",
    google: "gemini-3.1-pro-preview",
    "google-vertex": "gemini-3.1-pro-preview",
    "github-copilot": "gpt-5.4",
    cursor: "composer-2",
    openrouter: "moonshotai/kimi-k2.6",
    "vercel-ai-gateway": "zai/glm-5.1",
    xai: "grok-4.20-0309-reasoning",
    groq: "openai/gpt-oss-120b",
    cerebras: "zai-glm-4.7",
    "ant-ling": "Ring-2.6-1T",
    zai: "glm-5.1",
    mistral: "devstral-medium-latest",
    minimax: "MiniMax-M2.7",
    "minimax-cn": "MiniMax-M2.7",
    moonshotai: "kimi-k2.6",
    "moonshotai-cn": "kimi-k2.6",
    huggingface: "moonshotai/Kimi-K2.6",
    fireworks: "accounts/fireworks/models/kimi-k2p6",
    together: "moonshotai/Kimi-K2.6",
    opencode: "kimi-k2.6",
    "opencode-go": "kimi-k2.6",
    "kimi-coding": "kimi-for-coding",
    "cloudflare-workers-ai": "@cf/moonshotai/kimi-k2.6",
    "cloudflare-ai-gateway": "workers-ai/@cf/moonshotai/kimi-k2.6",
    xiaomi: "mimo-v2.5-pro",
    "xiaomi-token-plan-cn": "mimo-v2.5-pro",
    "xiaomi-token-plan-ams": "mimo-v2.5-pro",
    "xiaomi-token-plan-sgp": "mimo-v2.5-pro",
};
export function findPreferredAvailableModel(availableModels) {
    for (const [provider, defaultId] of Object.entries(defaultModelPerProvider)) {
        const match = availableModels.find((m) => m.provider === provider && m.id === defaultId);
        if (match) {
            return match;
        }
    }
    return availableModels[0];
}
//# sourceMappingURL=model-resolver-defaults.js.map