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

@@ -295,13 +295,13 @@
],
"description": "轻量文本向量化模型1536 维",
"contextWindow": 8192,
"maxOutputTokens": 0,
"capabilities": [
"text_embedding",
"semantic_search"
],
"inputPrice": 0.02,
"defaultTemperature": 1,
"defaultTemperature": null,
"defaultTopP": null,
"extra": {}
},
{
@@ -312,13 +312,13 @@
],
"description": "高精度文本向量化模型3072 维",
"contextWindow": 8192,
"maxOutputTokens": 0,
"capabilities": [
"text_embedding",
"semantic_search"
],
"inputPrice": 0.13,
"defaultTemperature": 1,
"defaultTemperature": null,
"defaultTopP": null,
"extra": {}
},
{
@@ -328,13 +328,12 @@
"tts"
],
"description": "标准语音合成",
"contextWindow": 0,
"maxOutputTokens": 0,
"capabilities": [
"tts"
],
"inputPrice": 15,
"defaultTemperature": 1,
"defaultTemperature": null,
"defaultTopP": null,
"extra": {
"voices": [
"alloy",
@@ -359,13 +358,12 @@
"tts"
],
"description": "高清语音合成",
"contextWindow": 0,
"maxOutputTokens": 0,
"capabilities": [
"tts"
],
"inputPrice": 30,
"defaultTemperature": 1,
"defaultTemperature": null,
"defaultTopP": null,
"extra": {
"voices": [
"alloy",
@@ -390,14 +388,13 @@
"asr"
],
"description": "通用语音识别",
"contextWindow": 0,
"maxOutputTokens": 0,
"capabilities": [
"asr",
"multilingual"
],
"inputPrice": 0.006,
"defaultTemperature": 1,
"defaultTemperature": null,
"defaultTopP": null,
"extra": {
"maxAudioLength": 600,
"supportedInputFormats": [
@@ -507,13 +504,12 @@
"image_gen"
],
"description": "高质量文生图模型",
"contextWindow": 0,
"maxOutputTokens": 0,
"capabilities": [
"image_generation",
"text_rendering"
],
"defaultTemperature": 1,
"defaultTemperature": null,
"defaultTopP": null,
"extra": {
"supportedImageSizes": [
"1024x1024",
@@ -544,7 +540,8 @@
],
"inputPrice": 4,
"outputPrice": 16,
"defaultTemperature": 1,
"defaultTemperature": 0.7,
"defaultTopP": null,
"extra": {
"supportedModes": [
"speech-to-speech",
@@ -569,7 +566,8 @@
],
"inputPrice": 5,
"outputPrice": 20,
"defaultTemperature": 1,
"defaultTemperature": 0.7,
"defaultTopP": null,
"extra": {
"supportedModes": [
"speech-to-speech",