|
@@ -1,128 +0,0 @@
|
|
|
-/**
|
|
|
|
|
- * 通义千问(百炼 OpenAI 兼容接入)
|
|
|
|
|
- *
|
|
|
|
|
- * - 控制台:https://bailian.console.aliyun.com/
|
|
|
|
|
- * - 模型文档:https://help.aliyun.com/zh/model-studio/getting-started/models
|
|
|
|
|
- * - OpenAI 兼容 API:https://help.aliyun.com/zh/model-studio/developer-reference/use-openai-sdk
|
|
|
|
|
- *
|
|
|
|
|
- * 和 bailian endpoint 同源(同一套百炼后端),区别在 api 协议:
|
|
|
|
|
- * - qwen:openai-completions(/compatible-mode/v1)
|
|
|
|
|
- * - bailian:anthropic-messages(/apps/anthropic)
|
|
|
|
|
- */
|
|
|
|
|
-import type { InkosEndpoint } from "../types.js";
|
|
|
|
|
-
|
|
|
|
|
-export const QWEN: InkosEndpoint = {
|
|
|
|
|
- id: "qwen",
|
|
|
|
|
- label: "通义千问",
|
|
|
|
|
- api: "openai-completions",
|
|
|
|
|
- baseUrl: "https://dashscope.aliyuncs.com/compatible-mode/v1",
|
|
|
|
|
- checkModel: "qwen-flash",
|
|
|
|
|
- temperatureRange: [0, 2],
|
|
|
|
|
- defaultTemperature: 0.7,
|
|
|
|
|
- writingTemperature: 1,
|
|
|
|
|
- models: [
|
|
|
|
|
- // --- Qwen3.6 系列(2026-04 发布) ---
|
|
|
|
|
- { id: "qwen3.6-max-preview", maxOutput: 65536, contextWindowTokens: 262144, enabled: true, releasedAt: "2026-04-21" },
|
|
|
|
|
- { id: "qwen3.6-plus", maxOutput: 65536, contextWindowTokens: 1000000, enabled: true, releasedAt: "2026-04-09" },
|
|
|
|
|
- { id: "qwen3.6-flash", maxOutput: 65536, contextWindowTokens: 1000000, enabled: true, releasedAt: "2026-04-17" },
|
|
|
|
|
- { id: "qwen3.6-27b", maxOutput: 65536, contextWindowTokens: 262144, releasedAt: "2026-04-23" },
|
|
|
|
|
- { id: "qwen3.6-35b-a3b", maxOutput: 65536, contextWindowTokens: 262144, releasedAt: "2026-04-17" },
|
|
|
|
|
- // --- 第三方代理 ---
|
|
|
|
|
- { id: "kimi-k2.6", maxOutput: 32768, contextWindowTokens: 262144, enabled: true, releasedAt: "2026-04-21" },
|
|
|
|
|
- { id: "kimi-k2.5", maxOutput: 32768, contextWindowTokens: 262144 },
|
|
|
|
|
- { id: "glm-5.1", maxOutput: 16384, contextWindowTokens: 202752, enabled: true, releasedAt: "2026-04-23" },
|
|
|
|
|
- { id: "MiniMax-M2.5", maxOutput: 32768, contextWindowTokens: 196608 },
|
|
|
|
|
- { id: "MiniMax-M2.1", maxOutput: 32768, contextWindowTokens: 204800 },
|
|
|
|
|
- { id: "qwen3-vl-plus", maxOutput: 32768, contextWindowTokens: 262144, releasedAt: "2025-09-23" },
|
|
|
|
|
- { id: "qwen3-vl-flash", maxOutput: 32768, contextWindowTokens: 262144 },
|
|
|
|
|
- { id: "deepseek-v3.2", maxOutput: 65536, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "deepseek-v3.2-exp", maxOutput: 65536, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "deepseek-v3.1", maxOutput: 65536, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "kimi-k2-thinking", maxOutput: 16384, contextWindowTokens: 262144, releasedAt: "2025-11-10" },
|
|
|
|
|
- { id: "Moonshot-Kimi-K2-Instruct", maxOutput: 8192, contextWindowTokens: 131072, releasedAt: "2025-07-17" },
|
|
|
|
|
- { id: "glm-5", maxOutput: 16384, contextWindowTokens: 202752 },
|
|
|
|
|
- { id: "glm-4.7", maxOutput: 16384, contextWindowTokens: 202752 },
|
|
|
|
|
- { id: "glm-4.6", maxOutput: 16384, contextWindowTokens: 202752 },
|
|
|
|
|
- { id: "glm-4.5", maxOutput: 16384, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "glm-4.5-air", maxOutput: 16384, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "qwen3-coder-next", maxOutput: 65536, contextWindowTokens: 262144 },
|
|
|
|
|
- { id: "qwen3-coder-plus", maxOutput: 65536, contextWindowTokens: 1000000 },
|
|
|
|
|
- { id: "qwen3-coder-flash", maxOutput: 65536, contextWindowTokens: 1000000 },
|
|
|
|
|
- { id: "qwen3-coder-480b-a35b-instruct", maxOutput: 65536, contextWindowTokens: 262144 },
|
|
|
|
|
- { id: "qwen3-coder-30b-a3b-instruct", maxOutput: 65536, contextWindowTokens: 262144 },
|
|
|
|
|
- { id: "qwen3.5-397b-a17b", maxOutput: 65536, contextWindowTokens: 262144, releasedAt: "2026-02-16" },
|
|
|
|
|
- { id: "qwen3.5-122b-a10b", maxOutput: 65536, contextWindowTokens: 262144, releasedAt: "2026-02-24" },
|
|
|
|
|
- { id: "qwen3.5-27b", maxOutput: 65536, contextWindowTokens: 262144, releasedAt: "2026-02-24" },
|
|
|
|
|
- { id: "qwen3.5-35b-a3b", maxOutput: 65536, contextWindowTokens: 262144, releasedAt: "2026-02-24" },
|
|
|
|
|
- { id: "qwen3-235b-a22b-thinking-2507", maxOutput: 32768, contextWindowTokens: 131072, releasedAt: "2025-07-25" },
|
|
|
|
|
- { id: "qwen3-235b-a22b-instruct-2507", maxOutput: 32768, contextWindowTokens: 131072, releasedAt: "2025-07-22" },
|
|
|
|
|
- { id: "qwen3-30b-a3b-thinking-2507", maxOutput: 32768, contextWindowTokens: 131072, releasedAt: "2025-07-30" },
|
|
|
|
|
- { id: "qwen3-30b-a3b-instruct-2507", maxOutput: 32768, contextWindowTokens: 131072, releasedAt: "2025-07-29" },
|
|
|
|
|
- { id: "qwen3-next-80b-a3b-thinking", maxOutput: 32768, contextWindowTokens: 131072, releasedAt: "2025-09-12" },
|
|
|
|
|
- { id: "qwen3-next-80b-a3b-instruct", maxOutput: 32768, contextWindowTokens: 131072, releasedAt: "2025-09-12" },
|
|
|
|
|
- { id: "qwen3-235b-a22b", maxOutput: 8192, contextWindowTokens: 131072, releasedAt: "2025-04-28" },
|
|
|
|
|
- { id: "qwen3-32b", maxOutput: 8192, contextWindowTokens: 131072, releasedAt: "2025-04-28" },
|
|
|
|
|
- { id: "qwen3-30b-a3b", maxOutput: 8192, contextWindowTokens: 131072, releasedAt: "2025-04-28" },
|
|
|
|
|
- { id: "qwen3-14b", maxOutput: 8192, contextWindowTokens: 131072, releasedAt: "2025-04-28" },
|
|
|
|
|
- { id: "qwen3-8b", maxOutput: 8192, contextWindowTokens: 131072, releasedAt: "2025-04-28" },
|
|
|
|
|
- { id: "qwen3-4b", maxOutput: 8192, contextWindowTokens: 131072, releasedAt: "2025-04-28" },
|
|
|
|
|
- { id: "qwen3-1.7b", maxOutput: 8192, contextWindowTokens: 32768, releasedAt: "2025-04-28" },
|
|
|
|
|
- { id: "qwen3-0.6b", maxOutput: 8192, contextWindowTokens: 32768, releasedAt: "2025-04-28" },
|
|
|
|
|
- { id: "qwq-plus", maxOutput: 8192, contextWindowTokens: 131072, releasedAt: "2025-03-05" },
|
|
|
|
|
- { id: "qwen3.5-flash", maxOutput: 65536, contextWindowTokens: 1000000, enabled: true, releasedAt: "2026-02-24" },
|
|
|
|
|
- { id: "qwen-flash", maxOutput: 32768, contextWindowTokens: 1000000, releasedAt: "2025-07-28" },
|
|
|
|
|
- { id: "qwen-turbo", maxOutput: 8192, contextWindowTokens: 1000000, releasedAt: "2025-07-15" },
|
|
|
|
|
- { id: "qwen3.5-plus", maxOutput: 65536, contextWindowTokens: 1000000, enabled: true, releasedAt: "2026-02-15" },
|
|
|
|
|
- { id: "qwen-plus", maxOutput: 32768, contextWindowTokens: 1000000 },
|
|
|
|
|
- { id: "qwen3-max", maxOutput: 65536, contextWindowTokens: 262144, enabled: true, releasedAt: "2026-01-23" },
|
|
|
|
|
- { id: "qwen3-max-preview", maxOutput: 65536, contextWindowTokens: 262144, releasedAt: "2025-10-30" },
|
|
|
|
|
- { id: "qwen-max", maxOutput: 8192, contextWindowTokens: 32768 },
|
|
|
|
|
- { id: "qwen-long", maxOutput: 32768, contextWindowTokens: 10000000 },
|
|
|
|
|
- { id: "qwen3.5-omni-plus", maxOutput: 65536, contextWindowTokens: 262144, releasedAt: "2026-03-30" },
|
|
|
|
|
- { id: "qwen3.5-omni-flash", maxOutput: 65536, contextWindowTokens: 262144, releasedAt: "2026-03-30" },
|
|
|
|
|
- { id: "qwen3-omni-flash", maxOutput: 16384, contextWindowTokens: 65536, releasedAt: "2025-12-04" },
|
|
|
|
|
- { id: "qwen-omni-turbo", maxOutput: 2048, contextWindowTokens: 32768 },
|
|
|
|
|
- { id: "qwen2.5-omni-7b", maxOutput: 2048, contextWindowTokens: 32768 },
|
|
|
|
|
- { id: "qwen-vl-plus", maxOutput: 8192, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "qwen-vl-max", maxOutput: 8192, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "qwen-vl-ocr", maxOutput: 4096, contextWindowTokens: 34096 },
|
|
|
|
|
- { id: "qwen3-vl-30b-a3b-thinking", maxOutput: 32768, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "qwen3-vl-30b-a3b-instruct", maxOutput: 32768, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "qwen3-vl-8b-thinking", maxOutput: 32768, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "qwen3-vl-8b-instruct", maxOutput: 32768, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "qwen3-vl-235b-a22b-thinking", maxOutput: 32768, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "qwen3-vl-235b-a22b-instruct", maxOutput: 32768, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "qwen3-vl-32b-thinking", maxOutput: 32768, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "qwen3-vl-32b-instruct", maxOutput: 32768, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "qwen-math-turbo", maxOutput: 3072, contextWindowTokens: 4096 },
|
|
|
|
|
- { id: "qwen-math-plus", maxOutput: 3072, contextWindowTokens: 4096 },
|
|
|
|
|
- { id: "qwen-coder-turbo", maxOutput: 8192, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "qwen-coder-plus", maxOutput: 8192, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "qwq-32b", maxOutput: 8192, contextWindowTokens: 131072, releasedAt: "2025-03-06" },
|
|
|
|
|
- { id: "qwq-32b-preview", maxOutput: 16384, contextWindowTokens: 32768, releasedAt: "2024-11-28" },
|
|
|
|
|
- { id: "qvq-max", maxOutput: 8192, contextWindowTokens: 131072, releasedAt: "2025-05-15" },
|
|
|
|
|
- { id: "qvq-plus", maxOutput: 8192, contextWindowTokens: 131072, releasedAt: "2025-05-15" },
|
|
|
|
|
- { id: "qvq-72b-preview", maxOutput: 16384, contextWindowTokens: 32768, releasedAt: "2024-12-25" },
|
|
|
|
|
- { id: "qwen2.5-7b-instruct", maxOutput: 8192, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "qwen2.5-14b-instruct", maxOutput: 8192, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "qwen2.5-32b-instruct", maxOutput: 8192, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "qwen2.5-72b-instruct", maxOutput: 8192, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "qwen2.5-14b-instruct-1m", maxOutput: 8192, contextWindowTokens: 1000000, releasedAt: "2025-01-27" },
|
|
|
|
|
- { id: "qwen2.5-math-7b-instruct", maxOutput: 3072, contextWindowTokens: 4096 },
|
|
|
|
|
- { id: "qwen2.5-math-72b-instruct", maxOutput: 3072, contextWindowTokens: 4096, releasedAt: "2025-07-23" },
|
|
|
|
|
- { id: "qwen2.5-coder-7b-instruct", maxOutput: 8192, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "qwen2.5-coder-14b-instruct", maxOutput: 8192, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "qwen2.5-coder-32b-instruct", maxOutput: 8192, contextWindowTokens: 131072 },
|
|
|
|
|
- { id: "qwen2.5-vl-72b-instruct", maxOutput: 8192, contextWindowTokens: 131072, releasedAt: "2025-01-27" },
|
|
|
|
|
- { id: "qwen2.5-vl-32b-instruct", maxOutput: 8192, contextWindowTokens: 131072, releasedAt: "2025-03-24" },
|
|
|
|
|
- { id: "qwen2.5-vl-7b-instruct", maxOutput: 8192, contextWindowTokens: 131072, releasedAt: "2025-01-27" },
|
|
|
|
|
- { id: "deepseek-r1-0528", maxOutput: 16384, contextWindowTokens: 131072, releasedAt: "2025-05-28" },
|
|
|
|
|
- { id: "deepseek-v3", maxOutput: 8192, contextWindowTokens: 65536, releasedAt: "2025-01-27" },
|
|
|
|
|
- { id: "deepseek-r1-distill-qwen-1.5b", maxOutput: 16384, contextWindowTokens: 32768 },
|
|
|
|
|
- { id: "deepseek-r1-distill-qwen-7b", maxOutput: 16384, contextWindowTokens: 32768 },
|
|
|
|
|
- { id: "deepseek-r1-distill-qwen-14b", maxOutput: 16384, contextWindowTokens: 32768 },
|
|
|
|
|
- { id: "deepseek-r1-distill-qwen-32b", maxOutput: 16384, contextWindowTokens: 32768 },
|
|
|
|
|
- { id: "deepseek-r1-distill-llama-8b", maxOutput: 16384, contextWindowTokens: 32768 },
|
|
|
|
|
- { id: "deepseek-r1-distill-llama-70b", maxOutput: 16384, contextWindowTokens: 32768 },
|
|
|
|
|
- ],
|
|
|
|
|
-};
|
|
|