mirror of
https://git.openapi.site/https://github.com/desirecore/config-center.git
synced 2026-04-21 17:42:06 +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:
@@ -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": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user