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:
124608760andClaude Opus 4.6 committed 2026-04-24 19:53:57 +08:00
1 parent 7159e1cf59
commit cc2fb7b9a5
8 files changed
+256 -111

No files matched your search

+2 -2
View File
@@ -20,7 +20,6 @@
"serviceType": ["embedding"],
"description": "智谱嵌入模型v3,支持自定义维度;模型上下文窗口 8K,单条输入最多 3072 tokens。走 OpenAI 兼容 /embeddings 端点(Anthropic 协议不提供 embeddings)",
"contextWindow": 8192,
"maxOutputTokens": 0,
"capabilities": [
"text_embedding",
"semantic_search",
@@ -28,7 +27,8 @@
"custom_dimensions"
],
"inputPrice": 0.5,
"defaultTemperature": 1,
"defaultTemperature": null,
"defaultTopP": null,
"extra": {
"maxInputTokensPerItem": 3072,
"maxBatchItems": 64,