Merge pull request #14 from desirecore/feat/dashscope-token-plan

feat(dashscope): 新增 Token Plan + 更新 Coding Plan + 补充 qwen-image 模型
This commit is contained in:
2026-05-07 20:51:50 +08:00
committed by GitHub
5 changed files with 443 additions and 13 deletions

View File

@@ -1,8 +1,9 @@
{
"description": "Coding Plan 预设加载顺序索引",
"description": "Coding Plan / Token Plan 预设加载顺序索引",
"order": [
"zhipu-coding",
"dashscope-coding",
"dashscope-token-plan",
"volcengine-coding",
"minimax-coding",
"moonshot-coding",

View File

@@ -2,7 +2,7 @@
"id": "provider-dashscope-coding-001",
"provider": "dashscope",
"brandGroup": "dashscope",
"label": "百炼 Token (Coding) Plan",
"label": "百炼 Coding Plan",
"baseUrl": "https://coding.dashscope.aliyuncs.com/v1",
"apiFormat": "openai-completions",
"apiKeyRef": "",
@@ -22,15 +22,54 @@
}
},
"models": [
{
"modelName": "qwen3.6-plus",
"displayName": "Qwen3.6 Plus (Coding)",
"serviceType": [
"chat"
],
"description": "百炼 Coding Plan通义千问 3.6 Plus 旗舰模型1M 上下文",
"contextWindow": 1000000,
"maxOutputTokens": 65536,
"capabilities": [
"chat",
"reasoning",
"code",
"vision",
"tool_use",
"agent",
"long_context"
],
"source": "preset"
},
{
"modelName": "qwen3.5-plus",
"displayName": "Qwen3.5 Plus (Coding)",
"serviceType": [
"chat"
],
"description": "百炼 Coding Plan通义千问 3.5 Plus1M 上下文",
"contextWindow": 1000000,
"maxOutputTokens": 65536,
"capabilities": [
"chat",
"reasoning",
"code",
"vision",
"tool_use",
"long_context"
],
"source": "preset"
},
{
"modelName": "qwen3-coder-plus",
"displayName": "Qwen3 Coder Plus (Coding)",
"serviceType": [
"chat"
],
"description": "阿里云百炼 Coding PlanQwen3 编程增强版",
"contextWindow": 131072,
"maxOutputTokens": 16384,
"description": "百炼 Coding PlanQwen3 编程增强版1M 上下文",
"contextWindow": 1000000,
"maxOutputTokens": 65536,
"capabilities": [
"chat",
"reasoning",
@@ -40,14 +79,31 @@
"source": "preset"
},
{
"modelName": "qwen3-max",
"modelName": "qwen3-coder-next",
"displayName": "Qwen3 Coder Next (Coding)",
"serviceType": [
"chat"
],
"description": "百炼 Coding PlanQwen3 编程下一代实验模型262K 上下文",
"contextWindow": 262144,
"maxOutputTokens": 65536,
"capabilities": [
"chat",
"reasoning",
"code",
"tool_use"
],
"source": "preset"
},
{
"modelName": "qwen3-max-2026-01-23",
"displayName": "Qwen3 Max (Coding)",
"serviceType": [
"chat"
],
"description": "阿里云百炼 Coding PlanQwen3 Max 旗舰模型",
"contextWindow": 131072,
"maxOutputTokens": 16384,
"description": "百炼 Coding PlanQwen3 Max 旗舰模型262K 上下文",
"contextWindow": 262144,
"maxOutputTokens": 65536,
"capabilities": [
"chat",
"reasoning",
@@ -58,6 +114,78 @@
"vision"
],
"source": "preset"
},
{
"modelName": "kimi-k2.5",
"displayName": "Kimi K2.5 (Coding)",
"serviceType": [
"chat"
],
"description": "百炼 Coding Plan月之暗面 Kimi K2.5262K 上下文",
"contextWindow": 262144,
"maxOutputTokens": 32768,
"capabilities": [
"chat",
"reasoning",
"code",
"tool_use",
"agent",
"vision",
"long_context"
],
"source": "preset"
},
{
"modelName": "glm-5",
"displayName": "GLM-5 (Coding)",
"serviceType": [
"chat"
],
"description": "百炼 Coding Plan智谱 GLM-5200K 上下文",
"contextWindow": 202752,
"maxOutputTokens": 128000,
"capabilities": [
"chat",
"reasoning",
"code",
"tool_use",
"agent"
],
"source": "preset"
},
{
"modelName": "glm-4.7",
"displayName": "GLM-4.7 (Coding)",
"serviceType": [
"chat"
],
"description": "百炼 Coding Plan智谱 GLM-4.7200K 上下文",
"contextWindow": 202752,
"maxOutputTokens": 128000,
"capabilities": [
"chat",
"reasoning",
"code"
],
"source": "preset"
},
{
"modelName": "MiniMax-M2.5",
"displayName": "MiniMax M2.5 (Coding)",
"serviceType": [
"chat"
],
"description": "百炼 Coding PlanMiniMax M2.5196K 上下文",
"contextWindow": 196608,
"maxOutputTokens": 8192,
"capabilities": [
"chat",
"reasoning",
"code",
"tool_use",
"long_context"
],
"source": "preset"
}
]
}

View File

@@ -0,0 +1,208 @@
{
"id": "provider-dashscope-token-plan-001",
"provider": "dashscope",
"brandGroup": "dashscope",
"label": "百炼 Token Plan",
"baseUrl": "https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1",
"mediaBaseUrl": "https://dashscope.aliyuncs.com/api/v1",
"apiFormat": "openai-completions",
"apiKeyRef": "",
"apiKeyVerified": false,
"enabled": false,
"status": "unconfigured",
"accessMode": "token-plan",
"services": [
"chat",
"reasoning",
"image_gen"
],
"tokenPlan": {
"quotas": {},
"usageTracking": {
"method": "credits",
"consoleUrl": "https://bailian.console.aliyun.com/"
}
},
"models": [
{
"modelName": "qwen3.6-plus",
"displayName": "Qwen3.6 Plus (Token Plan)",
"serviceType": [
"chat"
],
"description": "百炼 Token Plan通义千问 3.6 Plus 旗舰模型1M 上下文",
"contextWindow": 1000000,
"maxOutputTokens": 65536,
"capabilities": [
"chat",
"reasoning",
"code",
"vision",
"tool_use",
"agent",
"long_context"
],
"source": "preset"
},
{
"modelName": "glm-5",
"displayName": "GLM-5 (Token Plan)",
"serviceType": [
"chat"
],
"description": "百炼 Token Plan智谱 GLM-5200K 上下文",
"contextWindow": 202752,
"maxOutputTokens": 128000,
"capabilities": [
"chat",
"reasoning",
"code",
"tool_use",
"agent"
],
"source": "preset"
},
{
"modelName": "MiniMax-M2.5",
"displayName": "MiniMax M2.5 (Token Plan)",
"serviceType": [
"chat"
],
"description": "百炼 Token PlanMiniMax M2.5196K 上下文",
"contextWindow": 196608,
"maxOutputTokens": 8192,
"capabilities": [
"chat",
"reasoning",
"code",
"tool_use",
"long_context"
],
"source": "preset"
},
{
"modelName": "deepseek-v3.2",
"displayName": "DeepSeek V3.2 (Token Plan)",
"serviceType": [
"chat"
],
"description": "百炼 Token PlanDeepSeek V3.2",
"contextWindow": 131072,
"maxOutputTokens": 32768,
"capabilities": [
"chat",
"reasoning",
"code",
"tool_use"
],
"source": "preset"
},
{
"modelName": "wan2.7-image-pro",
"displayName": "通义万相 2.7 Pro (Token Plan)",
"serviceType": [
"image_gen"
],
"description": "百炼 Token Plan万相旗舰文生图支持 4K 分辨率",
"capabilities": [
"image_generation",
"chinese_optimized",
"high_quality"
],
"extra": {
"endpoint": "/services/aigc/image-generation/generation",
"asyncHeader": "X-DashScope-Async",
"taskQueryEndpoint": "/tasks",
"supportedImageSizes": [
"768*768",
"1024*1024",
"1280*1280",
"1024*1792",
"1792*1024",
"2048*2048",
"4096*4096"
],
"maxN": 4
},
"source": "preset"
},
{
"modelName": "wan2.7-image",
"displayName": "通义万相 2.7 (Token Plan)",
"serviceType": [
"image_gen"
],
"description": "百炼 Token Plan万相标准文生图",
"capabilities": [
"image_generation",
"chinese_optimized"
],
"extra": {
"endpoint": "/services/aigc/image-generation/generation",
"asyncHeader": "X-DashScope-Async",
"taskQueryEndpoint": "/tasks",
"supportedImageSizes": [
"768*768",
"1024*1024",
"1280*1280",
"1024*1792",
"1792*1024"
],
"maxN": 4
},
"source": "preset"
},
{
"modelName": "qwen-image-2.0-pro",
"displayName": "千问图像 2.0 Pro (Token Plan)",
"serviceType": [
"image_gen"
],
"description": "百炼 Token Plan千问图像生成 2.0 Pro 旗舰版",
"capabilities": [
"image_generation",
"chinese_optimized",
"high_quality"
],
"extra": {
"endpoint": "/services/aigc/image-generation/generation",
"asyncHeader": "X-DashScope-Async",
"taskQueryEndpoint": "/tasks",
"supportedImageSizes": [
"512*512",
"1024*1024",
"1280*1280",
"1664*928",
"928*1664"
],
"maxN": 4
},
"source": "preset"
},
{
"modelName": "qwen-image-2.0",
"displayName": "千问图像 2.0 (Token Plan)",
"serviceType": [
"image_gen"
],
"description": "百炼 Token Plan千问图像生成 2.0 标准版",
"capabilities": [
"image_generation",
"chinese_optimized"
],
"extra": {
"endpoint": "/services/aigc/image-generation/generation",
"asyncHeader": "X-DashScope-Async",
"taskQueryEndpoint": "/tasks",
"supportedImageSizes": [
"512*512",
"1024*1024",
"1280*1280",
"2048*2048"
],
"maxN": 4
},
"source": "preset"
}
]
}

View File

@@ -562,6 +562,56 @@
"supportsNegativePrompt": true
}
},
{
"modelName": "qwen-image-2.0-pro",
"displayName": "千问图像 2.0 Pro",
"serviceType": [
"image_gen"
],
"description": "千问图像生成 2.0 Pro 旗舰版,高画质多风格",
"capabilities": [
"image_generation",
"chinese_optimized",
"high_quality"
],
"extra": {
"endpoint": "/services/aigc/image-generation/generation",
"asyncHeader": "X-DashScope-Async",
"taskQueryEndpoint": "/tasks",
"supportedImageSizes": [
"512*512",
"1024*1024",
"1280*1280",
"1664*928",
"928*1664"
],
"maxN": 4
}
},
{
"modelName": "qwen-image-2.0",
"displayName": "千问图像 2.0",
"serviceType": [
"image_gen"
],
"description": "千问图像生成 2.0 标准版",
"capabilities": [
"image_generation",
"chinese_optimized"
],
"extra": {
"endpoint": "/services/aigc/image-generation/generation",
"asyncHeader": "X-DashScope-Async",
"taskQueryEndpoint": "/tasks",
"supportedImageSizes": [
"512*512",
"1024*1024",
"1280*1280",
"2048*2048"
],
"maxN": 4
}
},
{
"modelName": "wan2.6-t2v",
"displayName": "通义万相 2.6 文生视频",

View File

@@ -74,8 +74,8 @@
},
"accessMode": {
"type": "string",
"enum": ["api", "coding-plan"],
"description": "接入模式api按量付费coding-plan编程订阅套餐"
"enum": ["api", "coding-plan", "token-plan"],
"description": "接入模式api按量付费coding-plan编程订阅套餐或 token-planToken 团队版订阅)"
},
"brandGroup": {
"type": "string",
@@ -83,7 +83,7 @@
},
"codingPlan": {
"type": "object",
"description": "Coding Plan 专属配置(仅当 accessMode = coding-plan 时有效)",
"description": "Coding Plan / Token Plan 专属配置(仅当 accessMode = coding-plan 或 token-plan 时有效)",
"properties": {
"planTier": { "type": "string" },
"planLabel": { "type": "string" },
@@ -102,7 +102,50 @@
"properties": {
"method": {
"type": "string",
"enum": ["rest-api", "response-header", "manual", "none"]
"enum": ["rest-api", "response-header", "manual", "credits", "none"]
},
"endpoint": { "type": "string" },
"headerKeys": {
"type": "object",
"properties": {
"remaining": { "type": "string" },
"limit": { "type": "string" },
"reset": { "type": "string" }
},
"additionalProperties": false
},
"consoleUrl": { "type": "string" }
},
"additionalProperties": false
},
"modelIdOverride": { "type": "string" },
"maxConcurrent": { "type": "number", "minimum": 1 },
"expiresAt": { "type": "string", "format": "date-time" }
},
"additionalProperties": false
},
"tokenPlan": {
"type": "object",
"description": "Token Plan 团队版专属配置(仅当 accessMode = token-plan 时有效)",
"properties": {
"planTier": { "type": "string" },
"planLabel": { "type": "string" },
"quotas": {
"type": "object",
"properties": {
"per5h": { "type": "number", "minimum": 0 },
"perWeek": { "type": "number", "minimum": 0 },
"perMonth": { "type": "number", "minimum": 0 },
"per7d": { "type": "number", "minimum": 0 }
},
"additionalProperties": false
},
"usageTracking": {
"type": "object",
"properties": {
"method": {
"type": "string",
"enum": ["rest-api", "response-header", "manual", "credits", "none"]
},
"endpoint": { "type": "string" },
"headerKeys": {