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:
@@ -1,49 +1,36 @@
|
||||
|
||||
export default {
|
||||
"id": "nvidia",
|
||||
"alias": "nvidia",
|
||||
id: "nvidia",
|
||||
alias: "nvidia",
|
||||
display: {
|
||||
"name": "NVIDIA NIM",
|
||||
"icon": "developer_board",
|
||||
"color": "#76B900",
|
||||
"textIcon": "NV",
|
||||
"website": "https://developer.nvidia.com/nim",
|
||||
"notice": {
|
||||
"text": "Free access for NVIDIA Developer Program members (prototyping & testing).",
|
||||
"apiKeyUrl": "https://build.nvidia.com/settings/api-keys"
|
||||
}
|
||||
name: "NVIDIA NIM",
|
||||
icon: "developer_board",
|
||||
color: "#76B900",
|
||||
textIcon: "NV",
|
||||
website: "https://developer.nvidia.com/nim",
|
||||
notice: {
|
||||
text: "Free access for NVIDIA Developer Program members (prototyping & testing).",
|
||||
apiKeyUrl: "https://build.nvidia.com/settings/api-keys",
|
||||
},
|
||||
},
|
||||
category: "freeTier",
|
||||
"transport": {
|
||||
"baseUrl": "https://integrate.api.nvidia.com/v1/chat/completions",
|
||||
"validateUrl": "https://integrate.api.nvidia.com/v1/models"
|
||||
transport: {
|
||||
baseUrl: "https://integrate.api.nvidia.com/v1/chat/completions",
|
||||
validateUrl: "https://integrate.api.nvidia.com/v1/models",
|
||||
},
|
||||
media: {
|
||||
serviceKinds: ["llm", "tts", "embedding"],
|
||||
ttsConfig: { baseUrl: "https://integrate.api.nvidia.com/v1/audio/speech", authType: "apikey", authHeader: "bearer", format: "nvidia-tts", models: [{ id: "fastpitch", name: "FastPitch" }, { id: "tacotron2", name: "Tacotron2" }] },
|
||||
embeddingConfig: { baseUrl: "https://integrate.api.nvidia.com/v1/embeddings", authType: "apikey", authHeader: "bearer", models: [{ id: "nvidia/nv-embedqa-e5-v5", name: "NV EmbedQA E5 v5", dimensions: 1024 }] }
|
||||
models: [
|
||||
{ id: "minimaxai/minimax-m2.7", name: "Minimax M2.7" },
|
||||
{ id: "z-ai/glm4.7", name: "GLM 4.7" },
|
||||
{ id: "nvidia/nv-embedqa-e5-v5", name: "NV EmbedQA E5 v5", kind: "embedding" },
|
||||
{ id: "nvidia/parakeet-ctc-1.1b-asr", name: "Parakeet CTC 1.1B", params: ["language"], kind: "stt" },
|
||||
{ id: "fastpitch", name: "FastPitch", kind: "tts" },
|
||||
{ id: "tacotron2", name: "Tacotron2", kind: "tts" },
|
||||
],
|
||||
serviceKinds: ["llm","tts","embedding"],
|
||||
ttsConfig: {
|
||||
baseUrl: "https://integrate.api.nvidia.com/v1/audio/speech",
|
||||
authType: "apikey",
|
||||
authHeader: "bearer",
|
||||
format: "nvidia-tts",
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"id": "minimaxai/minimax-m2.7",
|
||||
"name": "Minimax M2.7"
|
||||
},
|
||||
{
|
||||
"id": "z-ai/glm4.7",
|
||||
"name": "GLM 4.7"
|
||||
},
|
||||
{
|
||||
"id": "nvidia/nv-embedqa-e5-v5",
|
||||
"name": "NV EmbedQA E5 v5",
|
||||
"type": "embedding"
|
||||
},
|
||||
{
|
||||
"id": "nvidia/parakeet-ctc-1.1b-asr",
|
||||
"name": "Parakeet CTC 1.1B",
|
||||
"type": "stt",
|
||||
"params": [
|
||||
"language"
|
||||
]
|
||||
}
|
||||
]
|
||||
embeddingConfig: { baseUrl: "https://integrate.api.nvidia.com/v1/embeddings", authType: "apikey", authHeader: "bearer" },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user