mirror of
https://git.openapi.site/https://github.com/desirecore/config-center.git
synced 2026-04-21 13:41:39 +08:00
feat(zhipu): switch to anthropic-messages endpoint and split embedding provider
- zhipu (chat/reasoning/vision): baseUrl -> /api/anthropic, apiFormat -> anthropic-messages 启用 Anthropic 协议的 thinking 字段以支持 GLM 深度思考流式输出 - zhipu-embedding (new): 独立承载 embedding-3, 保留 /api/paas/v4 + openai-completions Anthropic 协议不提供 /embeddings 端点 - zhipu-coding (Coding Plan): baseUrl -> /api/anthropic, apiFormat -> anthropic-messages 与非套餐端点共用同一协议, 计费维度由 API Key 区分 - bump presetDataVersion 17 -> 18
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"volcengine",
|
||||
"moonshot",
|
||||
"zhipu",
|
||||
"zhipu-embedding",
|
||||
"baichuan",
|
||||
"lingyiwanwu",
|
||||
"minimax",
|
||||
|
||||
32
compute/providers/zhipu-embedding.json
Normal file
32
compute/providers/zhipu-embedding.json
Normal file
@@ -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": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"version": "1.0.0",
|
||||
"presetDataVersion": 19,
|
||||
"updatedAt": "2026-04-18",
|
||||
"presetDataVersion": 20,
|
||||
"updatedAt": "2026-04-19",
|
||||
"description": "DesireCore 官方配置中心"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user