refactor(registry): B2 migrate to LiteLLM-style schema — unified models[] with kind field

- 71 registry files: flat `media.*Config.models` → `models[]` with `kind` field
- `media` wrapper removed → serviceKinds, *Config fields promoted top-level
- `type` field renamed to `kind` (llm/image/tts/stt/embedding/embedding/video/music)
- providers/index.js: PROVIDER_MEDIA now built from flat top-level media fields
- shared/constants/providers.js: buildProviderEntry reads flat top-level media fields
- route /v1/models: modelKind() uses kind||type; removed subConfig merge block
- models/info route: removed sub-config fallback lookup (all models in PROVIDER_MODELS)
- ttsProviders/index.js: synthesizeViaConfig reads tts models from PROVIDER_MODELS
- test-models route, helpers.js, validate route: kind||type compat
- Baselines: PROVIDERS 62/62 ✅, Alias 90/90 ✅

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
decolua
2026-06-14 14:32:59 +07:00
parent e53ce79abb
commit dd1e0f9bcc
82 changed files with 2518 additions and 3651 deletions

View File

@@ -1,91 +1,41 @@
export default {
"id": "blackbox",
"alias": "blackbox",
id: "blackbox",
alias: "blackbox",
aliases: [
"bb",
],
uiAlias: "bb",
display: {
"name": "Blackbox AI",
"icon": "smart_toy",
"color": "#5B5FEF",
"textIcon": "BB",
"website": "https://blackbox.ai",
"notice": {
"apiKeyUrl": "https://www.blackbox.ai/api-management"
}
name: "Blackbox AI",
icon: "smart_toy",
color: "#5B5FEF",
textIcon: "BB",
website: "https://blackbox.ai",
notice: {
apiKeyUrl: "https://www.blackbox.ai/api-management",
},
},
category: "apikey",
uiAlias: "bb",
aliases: ["bb"],
"transport": {
"baseUrl": "https://api.blackbox.ai/chat/completions"
transport: {
baseUrl: "https://api.blackbox.ai/chat/completions",
},
"models": [
{
"id": "gpt-4o",
"name": "GPT-4o"
},
{
"id": "gpt-4o-mini",
"name": "GPT-4o mini"
},
{
"id": "claude-sonnet-4.6",
"name": "Claude Sonnet 4.6"
},
{
"id": "claude-sonnet-4.5",
"name": "Claude Sonnet 4.5"
},
{
"id": "claude-opus-4.6",
"name": "Claude Opus 4.6"
},
{
"id": "claude-sonnet-4-6",
"name": "Claude Sonnet 4.6 (Legacy)"
},
{
"id": "claude-opus-4-6",
"name": "Claude Opus 4.6 (Legacy)"
},
{
"id": "deepseek-chat",
"name": "DeepSeek Chat"
},
{
"id": "deepseek-v3-671b",
"name": "DeepSeek V3 671B"
},
{
"id": "deepseek-r1",
"name": "DeepSeek R1"
},
{
"id": "o1",
"name": "OpenAI o1"
},
{
"id": "o3-mini",
"name": "OpenAI o3-mini"
},
{
"id": "gemini-2.5-flash",
"name": "Gemini 2.5 Flash"
},
{
"id": "gemini-3-flash-preview",
"name": "Gemini 3 Flash Preview"
},
{
"id": "qwen3-coder-plus",
"name": "Qwen3 Coder Plus"
},
{
"id": "qwen3-max",
"name": "Qwen3 Max"
},
{
"id": "qwen3-vl-plus",
"name": "Qwen3 VL Plus"
}
]
models: [
{ id: "gpt-4o", name: "GPT-4o" },
{ id: "gpt-4o-mini", name: "GPT-4o mini" },
{ id: "claude-sonnet-4.6", name: "Claude Sonnet 4.6" },
{ id: "claude-sonnet-4.5", name: "Claude Sonnet 4.5" },
{ id: "claude-opus-4.6", name: "Claude Opus 4.6" },
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6 (Legacy)" },
{ id: "claude-opus-4-6", name: "Claude Opus 4.6 (Legacy)" },
{ id: "deepseek-chat", name: "DeepSeek Chat" },
{ id: "deepseek-v3-671b", name: "DeepSeek V3 671B" },
{ id: "deepseek-r1", name: "DeepSeek R1" },
{ id: "o1", name: "OpenAI o1" },
{ id: "o3-mini", name: "OpenAI o3-mini" },
{ id: "gemini-2.5-flash", name: "Gemini 2.5 Flash" },
{ id: "gemini-3-flash-preview", name: "Gemini 3 Flash Preview" },
{ id: "qwen3-coder-plus", name: "Qwen3 Coder Plus" },
{ id: "qwen3-max", name: "Qwen3 Max" },
{ id: "qwen3-vl-plus", name: "Qwen3 VL Plus" },
],
};