/**
 * 硅基流动 (SiliconCloud / SiliconFlow)
 *
 * - 官网：https://www.siliconflow.com/
 * - 控制台 / API key：https://cloud.siliconflow.cn/account/ak
 * - 模型广场：https://cloud.siliconflow.cn/models
 * - API 文档：https://docs.siliconflow.cn/
 *
 * 聚合平台，代理 Qwen / DeepSeek / GLM / Kimi / 百川 / 昆仑万维等多家开源 + 托管模型，
 * 新模型上架频繁，bank 只维护文本 chat 主流，元数据以 live /models probe 为准。
 */
import type { InkosEndpoint } from "../types.js";

export const SILICONCLOUD: InkosEndpoint = {
  id: "siliconcloud",
  label: "硅基流动",
  group: "aggregator",
  api: "openai-completions",
  baseUrl: "https://api.siliconflow.cn/v1",
  checkModel: "Qwen/Qwen2.5-7B-Instruct",
  temperatureRange: [0, 2],
  defaultTemperature: 0.7,
  writingTemperature: 1,
  models: [
    // --- 2026-04 新上 ---
    { id: "Pro/moonshotai/Kimi-K2.6", maxOutput: 4096, contextWindowTokens: 262144, enabled: true, releasedAt: "2026-04-21", temperature: 1 },
    { id: "Pro/zai-org/GLM-5", maxOutput: 4096, contextWindowTokens: 198000 },
    { id: "Pro/zai-org/GLM-4.7", maxOutput: 4096, contextWindowTokens: 200000 },
    { id: "Qwen/Qwen3.6-35B-A3B", maxOutput: 4096, contextWindowTokens: 262144, enabled: true, releasedAt: "2026-04-17" },
    { id: "Qwen/Qwen3.6-27B", maxOutput: 4096, contextWindowTokens: 262144, enabled: true, releasedAt: "2026-04-23" },
    // ---
    { id: "Qwen/Qwen3.5-397B-A17B", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-02-16" },
    { id: "Qwen/Qwen3.5-122B-A10B", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-02-26" },
    { id: "Qwen/Qwen3.5-35B-A3B", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-02-25" },
    { id: "Qwen/Qwen3.5-27B", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-02-25" },
    { id: "Qwen/Qwen3.5-9B", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-03-03" },
    { id: "Qwen/Qwen3.5-4B", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-03-03" },
    { id: "Pro/MiniMaxAI/MiniMax-M2.5", maxOutput: 4096, contextWindowTokens: 192000, releasedAt: "2026-02-13" },
    { id: "Pro/zai-org/glm-5", maxOutput: 4096, contextWindowTokens: 198000, releasedAt: "2026-02-12" },
    { id: "Pro/zai-org/GLM-5.1", maxOutput: 4096, contextWindowTokens: 198000, releasedAt: "2026-04-08" },
    { id: "zai-org/GLM-4.6V", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-12-08" },
    { id: "deepseek-ai/DeepSeek-V3.2", maxOutput: 4096, contextWindowTokens: 163840, enabled: true, releasedAt: "2025-12-01" },
    { id: "Pro/deepseek-ai/DeepSeek-V3.2", maxOutput: 4096, contextWindowTokens: 163840, releasedAt: "2025-12-01" },
    { id: "Pro/moonshotai/Kimi-K2.5", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-01-27", temperature: 1 },
    { id: "qwen/qwen3.5-397b-a17b", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-03-03" },
    { id: "qwen/qwen3.5-122b-a10b", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-03-03" },
    { id: "qwen/qwen3.5-35b-a3b", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-03-03" },
    { id: "qwen/qwen3.5-27b", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-03-03" },
    { id: "qwen/qwen3.5-9b", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-03-03" },
    { id: "qwen/qwen3.5-4b", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-03-03" },
    { id: "Pro/zai-org/glm-4.7", maxOutput: 4096, contextWindowTokens: 200000, releasedAt: "2025-12-22" },
    { id: "moonshotai/Kimi-K2-Thinking", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-11-07", temperature: 1 },
    { id: "Pro/moonshotai/Kimi-K2-Thinking", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-11-07", temperature: 1 },
    { id: "MiniMaxAI/MiniMax-M2", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-10-28" },
    { id: "Qwen/Qwen3-VL-32B-Instruct", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-10-21" },
    { id: "Qwen/Qwen3-VL-32B-Thinking", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-10-21" },
    { id: "deepseek-ai/DeepSeek-OCR", maxOutput: 4096, contextWindowTokens: 8192, releasedAt: "2025-10-20" },
    { id: "Qwen/Qwen3-Omni-30B-A3B-Instruct", maxOutput: 4096, contextWindowTokens: 65536, releasedAt: "2025-09-22" },
    { id: "Qwen/Qwen3-Omni-30B-A3B-Thinking", maxOutput: 4096, contextWindowTokens: 65536, releasedAt: "2025-09-22" },
    { id: "Qwen/Qwen3-Omni-30B-A3B-Captioner", maxOutput: 4096, contextWindowTokens: 65536, releasedAt: "2025-09-22" },
    { id: "tencent/Hunyuan-MT-7B", maxOutput: 4096, contextWindowTokens: 32768, releasedAt: "2025-09-01" },
    { id: "Kwaipilot/KAT-Dev", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-09-27" },
    { id: "zai-org/GLM-4.6", maxOutput: 4096, contextWindowTokens: 198000, releasedAt: "2025-09-30" },
    { id: "Qwen/Qwen3-VL-30B-A3B-Instruct", maxOutput: 4096, contextWindowTokens: 256000 },
    { id: "Qwen/Qwen3-VL-30B-A3B-Thinking", maxOutput: 4096, contextWindowTokens: 256000 },
    { id: "Qwen/Qwen3-VL-235B-A22B-Instruct", maxOutput: 4096, contextWindowTokens: 256000 },
    { id: "Qwen/Qwen3-VL-235B-A22B-Thinking", maxOutput: 4096, contextWindowTokens: 256000 },
    { id: "deepseek-ai/DeepSeek-V3.1-Terminus", maxOutput: 4096, contextWindowTokens: 163840 },
    { id: "Pro/deepseek-ai/DeepSeek-V3.1-Terminus", maxOutput: 4096, contextWindowTokens: 163840 },
    { id: "Qwen/Qwen3-VL-8B-Instruct", maxOutput: 4096, contextWindowTokens: 256000, releasedAt: "2025-10-15" },
    { id: "Qwen/Qwen3-VL-8B-Thinking", maxOutput: 4096, contextWindowTokens: 256000, releasedAt: "2025-10-15" },
    { id: "inclusionAI/Ring-flash-2.0", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-09-19" },
    { id: "inclusionAI/Ling-flash-2.0", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-09-17" },
    { id: "inclusionAI/Ling-mini-2.0", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-09-09" },
    { id: "ByteDance-Seed/Seed-OSS-36B-Instruct", maxOutput: 4096, contextWindowTokens: 256000, releasedAt: "2025-08-20" },
    { id: "stepfun-ai/step3", maxOutput: 4096, contextWindowTokens: 65536, releasedAt: "2025-07-31" },
    { id: "Qwen/Qwen3-Coder-480B-A35B-Instruct", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-07-23" },
    { id: "Qwen/Qwen3-Coder-30B-A3B-Instruct", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-07-31" },
    { id: "zai-org/GLM-4.5V", maxOutput: 4096, contextWindowTokens: 65536, releasedAt: "2025-08-11" },
    { id: "zai-org/GLM-4.5-Air", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-07-28" },
    { id: "ascend-tribe/pangu-pro-moe", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-06-17" },
    { id: "baidu/ERNIE-4.5-300B-A47B", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-06-30" },
    { id: "moonshotai/Kimi-K2-Instruct-0905", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-09-05" },
    { id: "Pro/moonshotai/Kimi-K2-Instruct-0905", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-09-05" },
    { id: "moonshotai/Kimi-Dev-72B", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-06-17" },
    { id: "tencent/Hunyuan-A13B-Instruct", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-06-27" },
    { id: "MiniMaxAI/MiniMax-M1-80k", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-06-16" },
    { id: "Tongyi-Zhiwen/QwenLong-L1-32B", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-05-26" },
    { id: "Qwen/Qwen3-235B-A22B-Thinking-2507", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-07-25" },
    { id: "Qwen/Qwen3-235B-A22B-Instruct-2507", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-07-21" },
    { id: "Qwen/Qwen3-30B-A3B-Thinking-2507", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-07-30" },
    { id: "Qwen/Qwen3-30B-A3B-Instruct-2507", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-07-29" },
    { id: "Qwen/Qwen3-32B", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-04-28" },
    { id: "Qwen/Qwen3-14B", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-04-28" },
    { id: "Qwen/Qwen3-8B", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-04-28" },
    { id: "THUDM/GLM-4.1V-9B-Thinking", maxOutput: 4096, contextWindowTokens: 65536, releasedAt: "2025-07-02" },
    { id: "Pro/THUDM/GLM-4.1V-9B-Thinking", maxOutput: 4096, contextWindowTokens: 65536, releasedAt: "2025-07-02" },
    { id: "THUDM/GLM-Z1-32B-0414", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-04-14" },
    { id: "THUDM/GLM-Z1-9B-0414", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-04-14" },
    { id: "THUDM/GLM-4-32B-0414", maxOutput: 4096, contextWindowTokens: 32768, releasedAt: "2025-04-14" },
    { id: "THUDM/GLM-4-9B-0414", maxOutput: 4096, contextWindowTokens: 32768, releasedAt: "2025-04-14" },
    { id: "deepseek-ai/DeepSeek-R1-0528-Qwen3-8B", maxOutput: 4096, contextWindowTokens: 131072 },
    { id: "deepseek-ai/DeepSeek-R1", maxOutput: 4096, contextWindowTokens: 98304 },
    { id: "deepseek-ai/DeepSeek-V3", maxOutput: 4096, contextWindowTokens: 65536 },
    { id: "Pro/deepseek-ai/DeepSeek-R1", maxOutput: 4096, contextWindowTokens: 98304 },
    { id: "Pro/deepseek-ai/DeepSeek-V3", maxOutput: 4096, contextWindowTokens: 65536 },
    { id: "deepseek-ai/DeepSeek-R1-Distill-Qwen-32B", maxOutput: 4096, contextWindowTokens: 131072 },
    { id: "deepseek-ai/DeepSeek-R1-Distill-Qwen-14B", maxOutput: 4096, contextWindowTokens: 131072 },
    { id: "deepseek-ai/DeepSeek-R1-Distill-Qwen-7B", maxOutput: 4096, contextWindowTokens: 131072 },
    { id: "Pro/deepseek-ai/DeepSeek-R1-Distill-Qwen-7B", maxOutput: 4096, contextWindowTokens: 131072 },
    { id: "deepseek-ai/DeepSeek-V2.5", maxOutput: 4096, contextWindowTokens: 32768 },
    { id: "Qwen/QVQ-72B-Preview", maxOutput: 4096, contextWindowTokens: 32768 },
    { id: "Qwen/QwQ-32B", maxOutput: 4096, contextWindowTokens: 131072 },
    { id: "Qwen/Qwen2.5-7B-Instruct", maxOutput: 4096, contextWindowTokens: 32768 },
    { id: "Pro/Qwen/Qwen2.5-7B-Instruct", maxOutput: 4096, contextWindowTokens: 32768 },
    { id: "Qwen/Qwen2.5-14B-Instruct", maxOutput: 4096, contextWindowTokens: 32768 },
    { id: "Qwen/Qwen2.5-32B-Instruct", maxOutput: 4096, contextWindowTokens: 32768 },
    { id: "Qwen/Qwen2.5-72B-Instruct", maxOutput: 4096, contextWindowTokens: 32768 },
    { id: "Qwen/Qwen2.5-72B-Instruct-128K", maxOutput: 4096, contextWindowTokens: 131072 },
    { id: "Qwen/Qwen2.5-Coder-32B-Instruct", maxOutput: 4096, contextWindowTokens: 32768 },
    { id: "Qwen/Qwen2-VL-72B-Instruct", maxOutput: 4096, contextWindowTokens: 32768 },
    { id: "Qwen/Qwen2.5-VL-32B-Instruct", maxOutput: 4096, contextWindowTokens: 131072 },
    { id: "Qwen/Qwen2.5-VL-72B-Instruct", maxOutput: 4096, contextWindowTokens: 131072 },
    { id: "internlm/internlm2_5-7b-chat", maxOutput: 4096, contextWindowTokens: 32768 },
  ],
};
