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,68 +1,50 @@
export default {
"id": "cline",
"alias": "cl",
id: "cline",
alias: "cl",
uiAlias: "cl",
display: {
"name": "Cline",
"icon": "smart_toy",
"color": "#5B9BD5",
"textIcon": "CL",
"website": "https://cline.bot",
"notice": {
"signupUrl": "https://cline.bot"
}
name: "Cline",
icon: "smart_toy",
color: "#5B9BD5",
textIcon: "CL",
website: "https://cline.bot",
notice: {
signupUrl: "https://cline.bot",
},
},
category: "oauth",
uiAlias: "cl",
"transport": {
"baseUrl": "https://api.cline.bot/api/v1/chat/completions",
"headers": {
transport: {
baseUrl: "https://api.cline.bot/api/v1/chat/completions",
headers: {
"HTTP-Referer": "https://cline.bot",
"X-Title": "Cline"
"X-Title": "Cline",
},
tokenUrl: "https://api.cline.bot/api/v1/auth/token",
refreshUrl: "https://api.cline.bot/api/v1/auth/refresh",
auth: {
combined: true,
header: "Authorization",
scheme: "bearer",
hooks: [
"clineHeaders",
],
},
"tokenUrl": "https://api.cline.bot/api/v1/auth/token",
"refreshUrl": "https://api.cline.bot/api/v1/auth/refresh",
auth: {"combined":true,"header":"Authorization","scheme":"bearer","hooks":["clineHeaders"]},
},
"oauth": {
"appBaseUrl": "https://app.cline.bot",
"apiBaseUrl": "https://api.cline.bot",
"authorizeUrl": "https://api.cline.bot/api/v1/auth/authorize",
"tokenExchangeUrl": "https://api.cline.bot/api/v1/auth/token",
"refreshUrl": "https://api.cline.bot/api/v1/auth/refresh"
},
"models": [
{
"id": "anthropic/claude-opus-4.7",
"name": "Claude Opus 4.7"
},
{
"id": "anthropic/claude-sonnet-4.6",
"name": "Claude Sonnet 4.6"
},
{
"id": "anthropic/claude-opus-4.6",
"name": "Claude Opus 4.6"
},
{
"id": "openai/gpt-5.3-codex",
"name": "GPT-5.3 Codex"
},
{
"id": "openai/gpt-5.4",
"name": "GPT-5.4"
},
{
"id": "google/gemini-3.1-pro-preview",
"name": "Gemini 3.1 Pro Preview"
},
{
"id": "google/gemini-3.1-flash-lite-preview",
"name": "Gemini 3.1 Flash Lite Preview"
},
{
"id": "kwaipilot/kat-coder-pro",
"name": "KAT Coder Pro"
}
models: [
{ id: "anthropic/claude-opus-4.7", name: "Claude Opus 4.7" },
{ id: "anthropic/claude-sonnet-4.6", name: "Claude Sonnet 4.6" },
{ id: "anthropic/claude-opus-4.6", name: "Claude Opus 4.6" },
{ id: "openai/gpt-5.3-codex", name: "GPT-5.3 Codex" },
{ id: "openai/gpt-5.4", name: "GPT-5.4" },
{ id: "google/gemini-3.1-pro-preview", name: "Gemini 3.1 Pro Preview" },
{ id: "google/gemini-3.1-flash-lite-preview", name: "Gemini 3.1 Flash Lite Preview" },
{ id: "kwaipilot/kat-coder-pro", name: "KAT Coder Pro" },
],
oauth: {
appBaseUrl: "https://app.cline.bot",
apiBaseUrl: "https://api.cline.bot",
authorizeUrl: "https://api.cline.bot/api/v1/auth/authorize",
tokenExchangeUrl: "https://api.cline.bot/api/v1/auth/token",
refreshUrl: "https://api.cline.bot/api/v1/auth/refresh",
},
};