[feat] Add NVIDIA NIM as a built-in provider template

Open Beginner friendly
#1,349 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
72/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
json
Domain
api

Research direction

The change belongs in config/provider-templates.json and config/provider-templates-cn.json. Open both files, find the OpenRouter entry, and check that the proposed NVIDIA NIM object matches its shape before inserting it right after. Done when both files contain the entry with the given key, title, baseURL, apiKeyUrl, icon and enabled fields, and the file still parses as valid JSON. The issue has no assignee yet and the maintainer has not answered whether a pull request would be accepted, so confirm that first.

Written by the indexing model from the issue text.

Description

描述你的建议 / Proposal

NVIDIA NIM (https://build.nvidia.com/) hosts many open models behind an OpenAI-compatible API at https://integrate.api.nvidia.com/v1. Today NIM users have to create a custom provider by hand (see #974 and #851). OpenRouter, DeepSeek, Grok and others already ship as entries in config/provider-templates.json and config/provider-templates-cn.json.

Proposed change: add one entry to both template files, right after the OpenRouter entry and in the same form:

{
  "key": "nvidia",
  "title": "NVIDIA NIM",
  "baseURL": "https://integrate.api.nvidia.com/v1",
  "apiKeyUrl": "https://build.nvidia.com/",
  "icon": "https://cdn.jsdelivr.net/npm/@lobehub/[email protected]/icons/nvidia-color.svg",
  "enabled": true
}

Like OpenRouter, no default model is pre-filled; users pick from /models. The base URL stays editable, so self-hosted NIM keeps working. No TypeScript or Rust change is needed, since requests go through the existing Rust request path.

Would you accept a pull request with this change?

Dominant language
TypeScript
Stars
12.9k
Forks
975
Avg merge
20h 27m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from codexu/note-gen

All issues in codexu/note-gen

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.