diff --git a/compute/coding-plans/zhipu-coding.json b/compute/coding-plans/zhipu-coding.json index 0153b48..f008e68 100644 --- a/compute/coding-plans/zhipu-coding.json +++ b/compute/coding-plans/zhipu-coding.json @@ -3,8 +3,8 @@ "provider": "zhipu", "brandGroup": "zhipu", "label": "智谱 Coding Plan", - "baseUrl": "https://open.bigmodel.cn/api/coding/paas/v4", - "apiFormat": "openai-completions", + "baseUrl": "https://open.bigmodel.cn/api/anthropic", + "apiFormat": "anthropic-messages", "apiKeyRef": "", "apiKeyVerified": false, "enabled": false, diff --git a/compute/providers/_index.json b/compute/providers/_index.json index 8cf4dec..590b087 100644 --- a/compute/providers/_index.json +++ b/compute/providers/_index.json @@ -8,6 +8,7 @@ "volcengine", "moonshot", "zhipu", + "zhipu-embedding", "baichuan", "lingyiwanwu", "minimax", diff --git a/compute/providers/zhipu-embedding.json b/compute/providers/zhipu-embedding.json new file mode 100644 index 0000000..76151c8 --- /dev/null +++ b/compute/providers/zhipu-embedding.json @@ -0,0 +1,32 @@ +{ + "id": "provider-zhipu-embedding-001", + "provider": "zhipu-embedding", + "brandGroup": "zhipu", + "label": "智谱 Embedding", + "baseUrl": "https://open.bigmodel.cn/api/paas/v4", + "apiFormat": "openai-completions", + "apiKeyRef": "zhipu", + "apiKeyVerified": false, + "enabled": false, + "status": "unconfigured", + "priceCurrency": "CNY", + "services": [ + "embedding" + ], + "models": [ + { + "modelName": "embedding-3", + "displayName": "智谱 embedding-3", + "serviceType": ["embedding"], + "description": "智谱嵌入模型v3,支持自定义维度,单条最大3072 tokens。走 OpenAI 兼容 /embeddings 端点(Anthropic 协议不提供 embeddings)", + "contextWindow": 3072, + "capabilities": [ + "text_embedding", + "semantic_search", + "rag" + ], + "inputPrice": 0.5, + "extra": {} + } + ] +} diff --git a/compute/providers/zhipu.json b/compute/providers/zhipu.json index ad258a2..2598255 100644 --- a/compute/providers/zhipu.json +++ b/compute/providers/zhipu.json @@ -2,8 +2,8 @@ "id": "provider-zhipu-001", "provider": "zhipu", "label": "智谱 GLM", - "baseUrl": "https://open.bigmodel.cn/api/paas/v4", - "apiFormat": "openai-completions", + "baseUrl": "https://open.bigmodel.cn/api/anthropic", + "apiFormat": "anthropic-messages", "apiKeyRef": "zhipu", "apiKeyVerified": false, "enabled": false, @@ -12,8 +12,7 @@ "services": [ "chat", "vision", - "reasoning", - "embedding" + "reasoning" ], "models": [ { @@ -119,20 +118,6 @@ "inputPrice": 5, "outputPrice": 5, "extra": {} - }, - { - "modelName": "embedding-3", - "displayName": "智谱 embedding-3", - "serviceType": ["embedding"], - "description": "智谱嵌入模型v3,支持自定义维度,单条最大3072 tokens", - "contextWindow": 3072, - "capabilities": [ - "text_embedding", - "semantic_search", - "rag" - ], - "inputPrice": 0.5, - "extra": {} } ] } diff --git a/manifest.json b/manifest.json index f17b835..d46d89c 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "version": "1.0.0", - "presetDataVersion": 19, - "updatedAt": "2026-04-18", + "presetDataVersion": 20, + "updatedAt": "2026-04-19", "description": "DesireCore 官方配置中心" }