Skip to content

feat: add nvidia provider support #751

Closed

Description

@inference-gateway-maintainer

Summary

NVIDIA (NVIDIA NIM / the build.nvidia.com hosted API catalog, base URL https://integrate.api.nvidia.com/v1) was added as a first-class provider to the Inference Gateway in inference-gateway/inference-gateway#415 (closes inference-gateway/inference-gateway#401).

Unlike the SDKs, the CLI does not vendor openapi.yaml. It picks up the Provider enum transitively through the Go SDK, but keeps its own hand-maintained provider tables that the schema regen does not reach.

What needs to change

  • cmd/env.go - add NVIDIA_API_KEY (and NVIDIA_API_URL) to the envVars list; otherwise infer config init-env / the generated .env.example silently omit NVIDIA. (required)
  • .env.example - add the NVIDIA_* keys to match. (required)
  • config/model_context.go - add a context-window entry for the nemotron* family (NVIDIA's flagship; llama/deepseek/mistral/qwen already match generic patterns). (recommended)
  • config/pricing.go - optional NVIDIA DefaultModelPricing rows; the build.nvidia.com catalog is largely free/credit-based, so this may legitimately be left empty. (optional)
  • After the Go SDK releases with nvidia (inference-gateway/sdk), bump github.com/inference-gateway/sdk so the enum-level nvidia flows in.

Priority / dependencies

The SDK bump is blocked on the Go SDK first releasing with nvidia. The hand-maintained edits (cmd/env.go, .env.example, config/model_context.go) can land independently.

Context

Activity

  1. edenreich commented on Jul 5, 2026

    @edenreich
    Contributor

    @infer sdk is already released with the new version - can you work on this?

  2. added theissue type on Jul 5, 2026
  3. added
    enhancement
    on Jul 5, 2026
  4. inference-gateway-maintainer commented on Jul 5, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Model: ollama_cloud/deepseek-v4-flash · View Job

    Todos

    • Read current state of relevant files (cmd/env.go, .env.example, config/model_context.go, config/pricing.go)
    • Check Go SDK for nvidia provider support
    • Bump github.com/inference-gateway/sdk to v1.19.0
    • Add NVIDIA_API_KEY and NVIDIA_API_URL to cmd/env.go
    • Add NVIDIA_* keys to .env.example
    • Add nemotron context-window entry to config/model_context.go
    • Verify changes compile and tests pass

    Pull Request

    #753

    ✅ Infer Result: Success

    Everything is done. The draft PR #753 is open with all required changes.

    Model: ollama_cloud/deepseek-v4-flash · Exit Code: 0 · Duration: 3m 52s

    Tokens: 2,193,191 in · 8,252 out · 2,201,443 total (47 requests)

    Tool calls: 51 total · 96% success rate

    ⚠️ 2 failed tool call(s)
    • Bash: exit status 1: Unknown JSON field: "prs"
      Available fields:
      apiUrl
      assets
      author
      body
      createdAt
      databaseId
      id
      isDraft
      isImmutable
      isPrerelease
      name
      publishedAt
      tagName
      tarballUrl
      targetCommitish
      uploadUrl
      url
      zipballUrl
    • Grep: access to path '/home/runner/go/pkg/mod/github.com/inference-gateway/[email protected]/types.go' is not allowed

    Triggered by edenreich · Infer Action

  5. moved this from Todo to Done in 2026on Jul 5, 2026
  6. inference-gateway-releaser commented on Jul 6, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.133.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementreleased

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions