fix: remove irrelevant text-model fields from non-text providers

Remove contextWindow: 0 and maxOutputTokens: 0 from non-text models
(tts, asr, image_gen, video_gen, voice_clone, translation, etc.) and
maxOutputTokens: 0 from embedding/rerank models across kling,
local-whisper, stability, openai, dashscope, google, volcengine,
and zhipu-embedding configs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-24 19:53:57 +08:00
parent 7159e1cf59
commit cc2fb7b9a5
8 changed files with 256 additions and 111 deletions

View File

@@ -23,6 +23,88 @@
"translation"
],
"models": [
{
"modelName": "qwen3.6-plus",
"displayName": "阿里云 Qwen3.6-Plus",
"serviceType": [
"chat",
"vision"
],
"description": "通义千问3.6 Plus支持文本/图像/视频输入100万上下文支持内置工具和 Function Calling",
"contextWindow": 1000000,
"maxOutputTokens": 65536,
"capabilities": [
"chat",
"reasoning",
"code",
"multilingual",
"long_context",
"tool_use",
"agent",
"vision"
],
"inputPrice": 2,
"outputPrice": 12,
"defaultTemperature": 0.6,
"defaultTopP": 0.95,
"extra": {
"pricingTiers": [
{
"maxInputTokens": 256000,
"inputPrice": 2,
"outputPrice": 12,
"thinkingOutputPrice": 12
},
{
"maxInputTokens": 1000000,
"inputPrice": 8,
"outputPrice": 48,
"thinkingOutputPrice": 48
}
],
"thinkingMaxTokens": 81920
}
},
{
"modelName": "qwen3.6-flash",
"displayName": "阿里云 Qwen3.6-Flash",
"serviceType": [
"chat",
"vision"
],
"description": "通义千问3.6 Flash高性价比多模态模型100万上下文支持内置工具和 Function Calling",
"contextWindow": 1000000,
"maxOutputTokens": 65536,
"capabilities": [
"chat",
"reasoning",
"code",
"multilingual",
"long_context",
"tool_use",
"vision",
"fast"
],
"inputPrice": 1.2,
"outputPrice": 7.2,
"defaultTemperature": 0.6,
"defaultTopP": 0.95,
"extra": {
"pricingTiers": [
{
"maxInputTokens": 256000,
"inputPrice": 1.2,
"outputPrice": 7.2
},
{
"maxInputTokens": 1000000,
"inputPrice": 4.8,
"outputPrice": 28.8
}
],
"thinkingMaxTokens": 131072
}
},
{
"modelName": "qwen3.5-plus",
"displayName": "阿里云 Qwen3.5-Plus",
@@ -44,8 +126,8 @@
],
"inputPrice": 0.8,
"outputPrice": 4.8,
"defaultTemperature": 0.7,
"defaultTopP": 0.8,
"defaultTemperature": 0.6,
"defaultTopP": 0.95,
"extra": {
"pricingTiers": [
{
@@ -106,8 +188,8 @@
],
"inputPrice": 0.8,
"outputPrice": 2,
"defaultTemperature": 0.6,
"defaultTopP": 0.8,
"defaultTemperature": null,
"defaultTopP": null,
"extra": {
"pricingTiers": [
{
@@ -149,8 +231,8 @@
],
"inputPrice": 0.367,
"outputPrice": 1.468,
"defaultTemperature": 0.7,
"defaultTopP": 0.8,
"defaultTemperature": null,
"defaultTopP": null,
"extra": {
"thinkingContextWindow": 131072,
"thinkingOutputPrice": 3.67,
@@ -173,7 +255,7 @@
],
"inputPrice": 0.5,
"outputPrice": 2,
"defaultTemperature": 0.7,
"defaultTemperature": 1,
"defaultTopP": 0.8,
"extra": {}
},
@@ -198,8 +280,8 @@
],
"inputPrice": 2.5,
"outputPrice": 10,
"defaultTemperature": 0.7,
"defaultTopP": 0.8,
"defaultTemperature": null,
"defaultTopP": null,
"extra": {}
},
{
@@ -221,6 +303,7 @@
"inputPrice": 1.5,
"outputPrice": 6,
"defaultTemperature": 0.7,
"defaultTopP": 0.8,
"extra": {}
},
{
@@ -241,6 +324,7 @@
"inputPrice": 0.8,
"outputPrice": 3,
"defaultTemperature": 0.7,
"defaultTopP": 0.8,
"extra": {}
},
{
@@ -257,8 +341,8 @@
"chinese_optimized"
],
"inputPrice": 0.7,
"maxOutputTokens": 0,
"defaultTemperature": 1,
"defaultTemperature": null,
"defaultTopP": null,
"extra": {}
},
{
@@ -275,8 +359,8 @@
"rag"
],
"inputPrice": 0.5,
"maxOutputTokens": 0,
"defaultTemperature": 1,
"defaultTemperature": null,
"defaultTopP": null,
"extra": {}
},
{
@@ -287,14 +371,14 @@
],
"description": "检索重排序,支持 100+ 语种",
"contextWindow": 120000,
"maxOutputTokens": 0,
"capabilities": [
"rerank",
"semantic_reranking",
"multilingual"
],
"inputPrice": 1,
"defaultTemperature": 1,
"defaultTemperature": null,
"defaultTopP": null,
"extra": {}
},
{
@@ -304,14 +388,13 @@
"tts"
],
"description": "通义语音合成,支持中英文",
"contextWindow": 0,
"maxOutputTokens": 0,
"capabilities": [
"tts",
"multilingual",
"chinese_optimized"
],
"defaultTemperature": 1,
"defaultTemperature": null,
"defaultTopP": null,
"extra": {
"voices": [
"longxiaochun",
@@ -333,13 +416,12 @@
"asr"
],
"description": "通义语音识别",
"contextWindow": 0,
"maxOutputTokens": 0,
"capabilities": [
"asr",
"chinese_optimized"
],
"defaultTemperature": 1,
"defaultTemperature": null,
"defaultTopP": null,
"extra": {
"maxAudioLength": 3600,
"supportedInputFormats": [
@@ -358,13 +440,12 @@
"image_gen"
],
"description": "通义万相文生图",
"contextWindow": 0,
"maxOutputTokens": 0,
"capabilities": [
"image_generation",
"chinese_optimized"
],
"defaultTemperature": 1,
"defaultTemperature": null,
"defaultTopP": null,
"extra": {
"supportedImageSizes": [
"1024x1024",
@@ -386,13 +467,12 @@
"video_gen"
],
"description": "通义万相文生视频",
"contextWindow": 0,
"maxOutputTokens": 0,
"capabilities": [
"video_generation",
"chinese_optimized"
],
"defaultTemperature": 1,
"defaultTemperature": null,
"defaultTopP": null,
"extra": {
"maxVideoDuration": 10,
"supportedResolutions": [
@@ -408,14 +488,13 @@
"voice_clone"
],
"description": "通义声音复刻,少量样本即可克隆",
"contextWindow": 0,
"maxOutputTokens": 0,
"capabilities": [
"voice_clone",
"chinese_optimized",
"few_shot"
],
"defaultTemperature": 1,
"defaultTemperature": null,
"defaultTopP": null,
"extra": {
"maxCloneSamples": 5,
"minCloneDuration": 3
@@ -438,7 +517,8 @@
"multimodal",
"tool_use"
],
"defaultTemperature": 0.7,
"defaultTemperature": null,
"defaultTopP": 0.01,
"extra": {}
},
{
@@ -455,7 +535,8 @@
"multilingual",
"chinese_optimized"
],
"defaultTemperature": 0.7,
"defaultTemperature": null,
"defaultTopP": null,
"extra": {}
}
]