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

@@ -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,