// Manually-maintained model definitions for providers NOT tracked by models.dev.
//
// The auto-generated file (models.generated.ts) is rebuilt from the models.dev
// third-party catalog. Providers that use proprietary endpoints and are not
// listed on models.dev must be defined here so they survive regeneration.
//
// See: https://github.com/defconxt/NERF/issues/2339
//
// To add a custom provider:
//   1. Add its model definitions below following the existing pattern.
//   2. Add its API key mapping to env-api-keys.ts.
//   3. Add its provider name to KnownProvider in types.ts (if not already there).
export const CUSTOM_MODELS = {
    // ─── Alibaba Coding Plan ─────────────────────────────────────────────
    // Direct Alibaba DashScope Coding Plan endpoint (OpenAI-compatible).
    // NOT the same as alibaba/* models on OpenRouter — different endpoint & auth.
    // Original PR: #295 | Fixes: #1003, #1055, #1057
    "alibaba-coding-plan": {
        "qwen3.5-plus": {
            id: "qwen3.5-plus",
            name: "Qwen3.5 Plus",
            api: "openai-completions",
            provider: "alibaba-coding-plan",
            baseUrl: "https://coding-intl.dashscope.aliyuncs.com/v1",
            reasoning: true,
            input: ["text"],
            cost: {
                input: 0,
                output: 0,
                cacheRead: 0,
                cacheWrite: 0,
            },
            contextWindow: 983616,
            maxTokens: 65536,
            compat: { thinkingFormat: "qwen", supportsDeveloperRole: false },
        },
        "qwen3-max-2026-01-23": {
            id: "qwen3-max-2026-01-23",
            name: "Qwen3 Max 2026-01-23",
            api: "openai-completions",
            provider: "alibaba-coding-plan",
            baseUrl: "https://coding-intl.dashscope.aliyuncs.com/v1",
            reasoning: true,
            input: ["text"],
            cost: {
                input: 0,
                output: 0,
                cacheRead: 0,
                cacheWrite: 0,
            },
            contextWindow: 258048,
            maxTokens: 32768,
            compat: { thinkingFormat: "qwen", supportsDeveloperRole: false },
        },
        "qwen3-coder-next": {
            id: "qwen3-coder-next",
            name: "Qwen3 Coder Next",
            api: "openai-completions",
            provider: "alibaba-coding-plan",
            baseUrl: "https://coding-intl.dashscope.aliyuncs.com/v1",
            reasoning: false,
            input: ["text"],
            cost: {
                input: 0,
                output: 0,
                cacheRead: 0,
                cacheWrite: 0,
            },
            contextWindow: 204800,
            maxTokens: 65536,
            compat: { supportsDeveloperRole: false },
        },
        "qwen3-coder-plus": {
            id: "qwen3-coder-plus",
            name: "Qwen3 Coder Plus",
            api: "openai-completions",
            provider: "alibaba-coding-plan",
            baseUrl: "https://coding-intl.dashscope.aliyuncs.com/v1",
            reasoning: false,
            input: ["text"],
            cost: {
                input: 0,
                output: 0,
                cacheRead: 0,
                cacheWrite: 0,
            },
            contextWindow: 997952,
            maxTokens: 65536,
            compat: { supportsDeveloperRole: false },
        },
        "MiniMax-M2.5": {
            id: "MiniMax-M2.5",
            name: "MiniMax M2.5",
            api: "openai-completions",
            provider: "alibaba-coding-plan",
            baseUrl: "https://coding-intl.dashscope.aliyuncs.com/v1",
            reasoning: true,
            input: ["text"],
            cost: {
                input: 0,
                output: 0,
                cacheRead: 0,
                cacheWrite: 0,
            },
            contextWindow: 196608,
            maxTokens: 65536,
            compat: {
                supportsStore: false,
                supportsDeveloperRole: false,
                supportsReasoningEffort: true,
                maxTokensField: "max_tokens",
            },
        },
        "glm-5": {
            id: "glm-5",
            name: "GLM-5",
            api: "openai-completions",
            provider: "alibaba-coding-plan",
            baseUrl: "https://coding-intl.dashscope.aliyuncs.com/v1",
            reasoning: true,
            input: ["text"],
            cost: {
                input: 0,
                output: 0,
                cacheRead: 0,
                cacheWrite: 0,
            },
            contextWindow: 202752,
            maxTokens: 16384,
            compat: { thinkingFormat: "qwen", supportsDeveloperRole: false },
        },
        "glm-4.7": {
            id: "glm-4.7",
            name: "GLM-4.7",
            api: "openai-completions",
            provider: "alibaba-coding-plan",
            baseUrl: "https://coding-intl.dashscope.aliyuncs.com/v1",
            reasoning: true,
            input: ["text"],
            cost: {
                input: 0,
                output: 0,
                cacheRead: 0,
                cacheWrite: 0,
            },
            contextWindow: 169984,
            maxTokens: 16384,
            compat: { thinkingFormat: "qwen", supportsDeveloperRole: false },
        },
        "kimi-k2.5": {
            id: "kimi-k2.5",
            name: "Kimi K2.5",
            api: "openai-completions",
            provider: "alibaba-coding-plan",
            baseUrl: "https://coding-intl.dashscope.aliyuncs.com/v1",
            reasoning: true,
            input: ["text"],
            cost: {
                input: 0,
                output: 0,
                cacheRead: 0,
                cacheWrite: 0,
            },
            contextWindow: 258048,
            maxTokens: 32768,
            compat: { thinkingFormat: "zai", supportsDeveloperRole: false },
        },
    },
    // ─── Z.AI (GLM-5.1) ────────────────────────────────────────────────
    // GLM-5.1 is the latest GLM model from Zhipu AI, not yet in models.dev.
    // Uses the Z.AI Coding Plan endpoint (OpenAI-compatible).
    // Ref: https://docs.z.ai/devpack/using5.1
    "zai": {
        "glm-5.1": {
            id: "glm-5.1",
            name: "GLM-5.1",
            api: "openai-completions",
            provider: "zai",
            baseUrl: "https://api.z.ai/api/coding/paas/v4",
            reasoning: true,
            input: ["text"],
            cost: {
                input: 1,
                output: 3.2,
                cacheRead: 0.2,
                cacheWrite: 0,
            },
            contextWindow: 204800,
            maxTokens: 131072,
            compat: { thinkingFormat: "zai", supportsDeveloperRole: false },
        },
    },
};
//# sourceMappingURL=models.custom.js.map