mirror of
https://git.openapi.site/https://github.com/desirecore/config-center.git
synced 2026-02-28 13:38:31 +08:00
feat: 拆分 providers.json 为按 Provider 独立文件
将 compute/providers.json(54KB, 14 providers, 99 models)拆分为
compute/providers/ 目录下的独立 JSON 文件,便于维护和按需更新。
新增文件:
- compute/providers/_index.json — 加载顺序索引(保证 digest 确定性)
- compute/providers/{provider}.json × 14 — 各 provider 独立配置
保留 compute/providers.json 供旧客户端向后兼容(过渡期)。
presetDataVersion: 2 → 3
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
109
compute/providers/anthropic.json
Normal file
109
compute/providers/anthropic.json
Normal file
@@ -0,0 +1,109 @@
|
||||
{
|
||||
"id": "provider-anthropic-001",
|
||||
"provider": "anthropic",
|
||||
"label": "Anthropic",
|
||||
"baseUrl": "https://api.anthropic.com/v1",
|
||||
"apiFormat": "anthropic-messages",
|
||||
"apiKeyRef": "anthropic",
|
||||
"apiKeyVerified": false,
|
||||
"enabled": false,
|
||||
"status": "unconfigured",
|
||||
"services": [
|
||||
"chat",
|
||||
"computer_use"
|
||||
],
|
||||
"defaultTemperature": 1,
|
||||
"defaultTopP": 1,
|
||||
"models": [
|
||||
{
|
||||
"modelName": "claude-opus-4.6",
|
||||
"displayName": "Claude Opus 4.6",
|
||||
"serviceType": "chat",
|
||||
"description": "Anthropic 最新旗舰 Opus 模型,最强能力",
|
||||
"contextWindow": 200000,
|
||||
"maxOutputTokens": 32000,
|
||||
"capabilities": [
|
||||
"chat",
|
||||
"reasoning",
|
||||
"code",
|
||||
"vision",
|
||||
"tool_use"
|
||||
],
|
||||
"inputPrice": 5,
|
||||
"outputPrice": 25,
|
||||
"extra": {}
|
||||
},
|
||||
{
|
||||
"modelName": "claude-opus-4.5",
|
||||
"displayName": "Claude Opus 4.5",
|
||||
"serviceType": "chat",
|
||||
"description": "Anthropic Opus 4.5,顶级推理能力",
|
||||
"contextWindow": 200000,
|
||||
"maxOutputTokens": 32000,
|
||||
"capabilities": [
|
||||
"chat",
|
||||
"reasoning",
|
||||
"code",
|
||||
"vision",
|
||||
"tool_use"
|
||||
],
|
||||
"inputPrice": 5,
|
||||
"outputPrice": 25,
|
||||
"extra": {}
|
||||
},
|
||||
{
|
||||
"modelName": "claude-sonnet-4.5",
|
||||
"displayName": "Claude Sonnet 4.5",
|
||||
"serviceType": "chat",
|
||||
"description": "Anthropic Sonnet 4.5,高性能性价比",
|
||||
"contextWindow": 200000,
|
||||
"maxOutputTokens": 64000,
|
||||
"capabilities": [
|
||||
"chat",
|
||||
"reasoning",
|
||||
"code",
|
||||
"vision",
|
||||
"tool_use"
|
||||
],
|
||||
"inputPrice": 3,
|
||||
"outputPrice": 15,
|
||||
"extra": {}
|
||||
},
|
||||
{
|
||||
"modelName": "claude-sonnet-4",
|
||||
"displayName": "Claude Sonnet 4",
|
||||
"serviceType": "chat",
|
||||
"description": "Anthropic Sonnet 4 旗舰模型",
|
||||
"contextWindow": 200000,
|
||||
"maxOutputTokens": 64000,
|
||||
"capabilities": [
|
||||
"chat",
|
||||
"reasoning",
|
||||
"code",
|
||||
"vision",
|
||||
"tool_use"
|
||||
],
|
||||
"inputPrice": 3,
|
||||
"outputPrice": 15,
|
||||
"extra": {}
|
||||
},
|
||||
{
|
||||
"modelName": "claude-sonnet-4.5-computer",
|
||||
"displayName": "Claude Sonnet 4.5 Computer Use",
|
||||
"serviceType": "computer_use",
|
||||
"description": "Anthropic 最佳 Computer Use 模型",
|
||||
"contextWindow": 200000,
|
||||
"maxOutputTokens": 64000,
|
||||
"capabilities": [
|
||||
"chat",
|
||||
"vision",
|
||||
"computer_use",
|
||||
"tool_use",
|
||||
"reasoning"
|
||||
],
|
||||
"inputPrice": 3,
|
||||
"outputPrice": 15,
|
||||
"extra": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user