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:
123
compute/providers/moonshot.json
Normal file
123
compute/providers/moonshot.json
Normal file
@@ -0,0 +1,123 @@
|
||||
{
|
||||
"id": "provider-moonshot-001",
|
||||
"provider": "moonshot",
|
||||
"label": "月之暗面",
|
||||
"baseUrl": "https://api.moonshot.cn/v1",
|
||||
"apiFormat": "openai-completions",
|
||||
"apiKeyRef": "moonshot",
|
||||
"apiKeyVerified": false,
|
||||
"enabled": false,
|
||||
"status": "unconfigured",
|
||||
"services": [
|
||||
"chat",
|
||||
"reasoning"
|
||||
],
|
||||
"defaultTemperature": 0.7,
|
||||
"defaultTopP": 0.9,
|
||||
"models": [
|
||||
{
|
||||
"modelName": "kimi-k2.5",
|
||||
"apiModelId": "kimi-2.5",
|
||||
"displayName": "Kimi K2.5",
|
||||
"serviceType": "chat",
|
||||
"description": "月之暗面Kimi K2.5,2026年1月发布的开源新一代模型",
|
||||
"contextWindow": 256000,
|
||||
"maxOutputTokens": 16384,
|
||||
"capabilities": [
|
||||
"chat",
|
||||
"reasoning",
|
||||
"code",
|
||||
"tool_use",
|
||||
"agent",
|
||||
"long_context"
|
||||
],
|
||||
"inputPrice": 2,
|
||||
"outputPrice": 8,
|
||||
"extra": {}
|
||||
},
|
||||
{
|
||||
"modelName": "kimi-k2",
|
||||
"displayName": "Kimi K2",
|
||||
"serviceType": "chat",
|
||||
"description": "月之暗面Kimi K2,万亿参数MoE模型(320B激活),128K上下文,专为智能体设计",
|
||||
"contextWindow": 128000,
|
||||
"maxOutputTokens": 8192,
|
||||
"capabilities": [
|
||||
"chat",
|
||||
"reasoning",
|
||||
"code",
|
||||
"tool_use",
|
||||
"agent",
|
||||
"long_context"
|
||||
],
|
||||
"inputPrice": 4,
|
||||
"outputPrice": 16,
|
||||
"extra": {}
|
||||
},
|
||||
{
|
||||
"modelName": "kimi-k2-thinking",
|
||||
"displayName": "Kimi K2 思考版",
|
||||
"serviceType": "reasoning",
|
||||
"description": "月之暗面Kimi K2思考版,256K上下文,深度推理能力",
|
||||
"contextWindow": 256000,
|
||||
"maxOutputTokens": 16384,
|
||||
"capabilities": [
|
||||
"reasoning",
|
||||
"math",
|
||||
"code",
|
||||
"deep_thinking",
|
||||
"long_context"
|
||||
],
|
||||
"inputPrice": 7.5,
|
||||
"outputPrice": 30,
|
||||
"extra": {}
|
||||
},
|
||||
{
|
||||
"modelName": "moonshot-v1-8k",
|
||||
"displayName": "Moonshot V1 8K",
|
||||
"serviceType": "chat",
|
||||
"description": "月之暗面标准模型,8K上下文",
|
||||
"contextWindow": 8192,
|
||||
"maxOutputTokens": 4096,
|
||||
"capabilities": [
|
||||
"chat",
|
||||
"code"
|
||||
],
|
||||
"inputPrice": 2,
|
||||
"outputPrice": 2,
|
||||
"extra": {}
|
||||
},
|
||||
{
|
||||
"modelName": "moonshot-v1-32k",
|
||||
"displayName": "Moonshot V1 32K",
|
||||
"serviceType": "chat",
|
||||
"description": "月之暗面标准模型,32K上下文",
|
||||
"contextWindow": 32768,
|
||||
"maxOutputTokens": 4096,
|
||||
"capabilities": [
|
||||
"chat",
|
||||
"code",
|
||||
"long_context"
|
||||
],
|
||||
"inputPrice": 5,
|
||||
"outputPrice": 5,
|
||||
"extra": {}
|
||||
},
|
||||
{
|
||||
"modelName": "moonshot-v1-128k",
|
||||
"displayName": "Moonshot V1 128K",
|
||||
"serviceType": "chat",
|
||||
"description": "月之暗面标准模型,128K上下文",
|
||||
"contextWindow": 131072,
|
||||
"maxOutputTokens": 4096,
|
||||
"capabilities": [
|
||||
"chat",
|
||||
"code",
|
||||
"long_context"
|
||||
],
|
||||
"inputPrice": 10,
|
||||
"outputPrice": 10,
|
||||
"extra": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user