mirror of
https://git.openapi.site/https://github.com/desirecore/config-center.git
synced 2026-04-21 16:21:32 +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",
|
"provider": "zhipu",
|
||||||
"brandGroup": "zhipu",
|
"brandGroup": "zhipu",
|
||||||
"label": "智谱 Coding Plan",
|
"label": "智谱 Coding Plan",
|
||||||
"baseUrl": "https://open.bigmodel.cn/api/coding/paas/v4",
|
"baseUrl": "https://open.bigmodel.cn/api/anthropic",
|
||||||
"apiFormat": "openai-completions",
|
"apiFormat": "anthropic-messages",
|
||||||
"apiKeyRef": "",
|
"apiKeyRef": "",
|
||||||
"apiKeyVerified": false,
|
"apiKeyVerified": false,
|
||||||
"enabled": false,
|
"enabled": false,
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
"volcengine",
|
"volcengine",
|
||||||
"moonshot",
|
"moonshot",
|
||||||
"zhipu",
|
"zhipu",
|
||||||
|
"zhipu-embedding",
|
||||||
"baichuan",
|
"baichuan",
|
||||||
"lingyiwanwu",
|
"lingyiwanwu",
|
||||||
"minimax",
|
"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",
|
"id": "provider-zhipu-001",
|
||||||
"provider": "zhipu",
|
"provider": "zhipu",
|
||||||
"label": "智谱 GLM",
|
"label": "智谱 GLM",
|
||||||
"baseUrl": "https://open.bigmodel.cn/api/paas/v4",
|
"baseUrl": "https://open.bigmodel.cn/api/anthropic",
|
||||||
"apiFormat": "openai-completions",
|
"apiFormat": "anthropic-messages",
|
||||||
"apiKeyRef": "zhipu",
|
"apiKeyRef": "zhipu",
|
||||||
"apiKeyVerified": false,
|
"apiKeyVerified": false,
|
||||||
"enabled": false,
|
"enabled": false,
|
||||||
@@ -12,8 +12,7 @@
|
|||||||
"services": [
|
"services": [
|
||||||
"chat",
|
"chat",
|
||||||
"vision",
|
"vision",
|
||||||
"reasoning",
|
"reasoning"
|
||||||
"embedding"
|
|
||||||
],
|
],
|
||||||
"models": [
|
"models": [
|
||||||
{
|
{
|
||||||
@@ -119,20 +118,6 @@
|
|||||||
"inputPrice": 5,
|
"inputPrice": 5,
|
||||||
"outputPrice": 5,
|
"outputPrice": 5,
|
||||||
"extra": {}
|
"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",
|
"version": "1.0.0",
|
||||||
"presetDataVersion": 19,
|
"presetDataVersion": 20,
|
||||||
"updatedAt": "2026-04-18",
|
"updatedAt": "2026-04-19",
|
||||||
"description": "DesireCore 官方配置中心"
|
"description": "DesireCore 官方配置中心"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user