- translator/index.js: replace require() with static side-effect imports (ESM-safe), lazy-init registry maps to survive circular import order - openai-responses->openai: map max_output_tokens -> max_tokens (avoid leaking field upstream) - gemini/antigravity -> openai: derive deterministic tool_call id from name so functionCall/functionResponse pair correctly (fixes provider tool-pairing 400s) - add offline unit tests (finish-reason, usage, session-manager, ollama malformed args, const guard) - add real-creds integration tests (provider-cases + all-formats matrix: 6 inbound formats x 4 scenarios) Includes co-located provider registry refactor (pricing/capabilities/media providers) and sessionManager updates. Co-authored-by: Cursor <cursoragent@cursor.com>
39 lines
1.3 KiB
JavaScript
39 lines
1.3 KiB
JavaScript
export default {
|
|
id: "nvidia",
|
|
priority: 20,
|
|
hasFree: true,
|
|
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",
|
|
},
|
|
},
|
|
category: "freeTier",
|
|
transport: {
|
|
baseUrl: "https://integrate.api.nvidia.com/v1/chat/completions",
|
|
validateUrl: "https://integrate.api.nvidia.com/v1/models",
|
|
},
|
|
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",
|
|
},
|
|
embeddingConfig: { baseUrl: "https://integrate.api.nvidia.com/v1/embeddings", authType: "apikey", authHeader: "bearer" },
|
|
};
|