export const PROVIDERS = [
    {
        id: 'glm',
        name: 'GLM (智谱)',
        baseUrl: 'https://open.bigmodel.cn/api/anthropic',
        authType: 'auth_token',
        multiSlot: true,
        defaultModel: 'glm-4.6',
        modelCatalog: ['glm-4.6', 'glm-4.5', 'glm-4.5-air', 'glm-4-flash'],
        supportedTools: ['clavue', 'claude-code'],
        description: '智谱 AI - GLM 4.6/4.5，国内可直连',
        hint: '国内常用，glm-4.6 性价比高',
        region: 'cn',
        docsUrl: 'https://open.bigmodel.cn/dev/api',
    },
    {
        id: 'kimi',
        name: 'Kimi (月之暗面)',
        baseUrl: 'https://api.moonshot.cn/anthropic',
        authType: 'auth_token',
        multiSlot: true,
        defaultModel: 'kimi-k2-turbo-preview',
        modelCatalog: ['kimi-k2-turbo-preview', 'kimi-k2-0905-preview', 'moonshot-v1-128k', 'moonshot-v1-32k'],
        supportedTools: ['clavue', 'claude-code'],
        description: 'Moonshot - Kimi K2，长上下文优秀',
        hint: 'Moonshot kimi-k2，128k 长上下文',
        region: 'cn',
        docsUrl: 'https://platform.moonshot.cn/docs',
    },
    {
        id: 'minimax',
        name: 'MiniMax (海螺)',
        baseUrl: 'https://api.minimaxi.com/anthropic',
        authType: 'auth_token',
        multiSlot: true,
        defaultModel: 'MiniMax-M2',
        modelCatalog: ['MiniMax-M2', 'MiniMax-M1'],
        supportedTools: ['clavue', 'claude-code'],
        description: 'MiniMax - M2 模型',
        region: 'cn',
    },
    {
        id: 'deepseek',
        name: 'DeepSeek',
        baseUrl: 'https://api.deepseek.com/anthropic',
        authType: 'auth_token',
        multiSlot: true,
        defaultModel: 'deepseek-chat',
        modelCatalog: ['deepseek-chat', 'deepseek-reasoner'],
        supportedTools: ['clavue', 'claude-code'],
        description: 'DeepSeek - v3/r1，便宜',
        hint: 'deepseek-v3，便宜',
        region: 'cn',
        docsUrl: 'https://platform.deepseek.com/api-docs',
    },
    {
        id: 'anthropic',
        name: 'Anthropic 官方',
        baseUrl: 'https://api.anthropic.com',
        authType: 'auth_token',
        multiSlot: true,
        modelCatalog: [
            'claude-opus-4-6',
            'claude-sonnet-4-6',
            'claude-haiku-4-5-20251001',
        ],
        supportedTools: ['clavue', 'claude-code'],
        description: '官方 API（需海外网络）',
        hint: '官方端点，需要 anthropic 账号',
        region: 'global',
        docsUrl: 'https://docs.anthropic.com',
    },
    {
        id: 'openrouter',
        name: 'OpenRouter',
        baseUrl: 'https://openrouter.ai/api/v1',
        authType: 'auth_token',
        multiSlot: true,
        supportedTools: ['clavue', 'claude-code'],
        description: 'OpenRouter - 聚合多家模型，按 token 计费',
        hint: '聚合多家 model，按 token 计费',
        region: 'global',
        docsUrl: 'https://openrouter.ai/docs',
    },
    {
        id: 'gpt-gateway',
        name: 'GPT 网关 (OpenAI 兼容)',
        baseUrl: '',
        authType: 'auth_token',
        multiSlot: true,
        defaultModel: 'gpt-5.5',
        fastModel: 'gpt-5.3-codex',
        sonnetModel: 'gpt-5.5',
        opusModel: 'gpt-5.5',
        modelCatalog: ['gpt-5.5', 'gpt-5.5-pro', 'gpt-5.3-codex', 'gpt-4o', 'gpt-4o-mini'],
        supportedTools: ['clavue', 'claude-code'],
        description: 'GPT/Codex 类网关 — 分别配 Main/Haiku/Sonnet/Opus 槽位',
        region: 'global',
    },
    {
        id: 'custom',
        name: '自定义网关',
        baseUrl: '',
        authType: 'auth_token',
        multiSlot: true,
        supportedTools: ['clavue', 'claude-code', 'codex'],
        description: '手动输入 baseUrl + key，分别配 Main/Haiku/Sonnet/Opus 槽位',
        hint: '手动填 baseUrl + key',
        region: 'global',
    },
];
export function findProvider(id) {
    return PROVIDERS.find(p => p.id === id);
}
export function listProvidersFor(tool) {
    return PROVIDERS.filter(p => p.supportedTools.includes(tool));
}
//# sourceMappingURL=providers.js.map