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:
2026-02-22 14:24:55 +08:00
parent fe26a6ff58
commit 7ff488641f
16 changed files with 2070 additions and 1 deletions

View File

@@ -0,0 +1,37 @@
{
"id": "provider-local-whisper",
"provider": "local-whisper",
"label": "本地 Whisper",
"baseUrl": "http://localhost:8080",
"apiFormat": "openai-completions",
"apiKeyRef": "",
"apiKeyVerified": false,
"enabled": false,
"status": "unconfigured",
"services": [
"asr"
],
"models": [
{
"modelName": "whisper-large-v3",
"displayName": "Whisper Large V3",
"serviceType": "asr",
"description": "本地部署的 Whisper 大模型",
"capabilities": [
"asr",
"multilingual"
],
"extra": {
"maxAudioLength": 7200,
"supportedInputFormats": [
"wav",
"mp3",
"flac",
"ogg",
"webm"
],
"streamingSupported": true
}
}
]
}