Skip to content

feat: add nvidia provider to generated Provider enum #59

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).

The shared schema source, inference-gateway/schemas' openapi.yaml, already contains nvidia (the Provider enum + x-provider-configs, bearer auth). The Python SDK regenerates its Provider type from that spec, so this is a mechanical re-sync.

What needs to change

  • Run task oas-download to pull the latest openapi.yaml from inference-gateway/schemas (now includes nvidia).
  • Run task generate to regenerate the Provider enum + Literal in inference_gateway/models.py (currently stops before nvidia).
  • Verify tests, commit the regenerated file, and cut a release.

Context

Activity

  1. edenreich commented on Jul 5, 2026

    @edenreich
    Contributor

    @claude Can you work on this?

  2. added theissue type on Jul 5, 2026
  3. added
    enhancement
    on Jul 5, 2026
  4. moved this to Todo in 2026on Jul 5, 2026
  5. inference-gateway-maintainer commented on Jul 5, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 6m 39s —— View job • feat/issue-59-20260705-1537 • [Create PR ➔](https://github.com/inference-gateway/python-sdk/compare/main...feat/issue-59-20260705-1537?quick_pull=1&title=Issue%20%2359%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%2359%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Task: Add NVIDIA provider to generated Provider enum ✅

    • Gather context (read models.py, Taskfile, tests)
    • Install dev dependencies
    • Download latest OpenAPI spec (task oas-download)
    • Regenerate models (task generate)
    • Verify nvidia is present in the Provider enum + Literal (12 → 13 providers)
    • Run tests + lint
    • Add NVIDIA to README "Supported Providers" list
    • Commit changes
    • Open PR

    Summary

    Re-synced the OpenAPI spec from inference-gateway/schemas and regenerated inference_gateway/models.py. The Provider type now includes nvidia in both the RootModel[Literal[...]] and the root: Literal[...]:

                 "minimax",
                 "moonshot",
    +            "nvidia",

    Files changed:

    • inference_gateway/models.py — regenerated; nvidia added to the Provider enum/Literal.
    • openapi.yaml — refreshed spec snapshot (adds the nvidia provider config; also pulls in unrelated accumulated upstream additions — a /metrics OTLP endpoint and a couple of config env vars — none of which alter the generated models).
    • README.md — added NVIDIA ("nvidia") to the Supported Providers list.

    Verification:

    • pytest tests/ → 25 passed, 1 xfailed
    • black --check, isort --check-only, mypy → all clean
    • Runtime: Provider("nvidia") validates successfully (13 providers total)

    PR: #60 — feat: add nvidia provider to Provider enum

    A release still needs to be cut (via the Release workflow) once merged — this is a feat: commit, so it triggers a minor version bump. I also filed a docs tracking issue at inference-gateway/docs#324.

    --- · Branch: feat/issue-59-20260705-1537

  6. moved this from Todo to In progress in 2026on Jul 5, 2026
  7. added a commit that references this issue on Jul 5, 2026
    bf16285
  8. moved this from In progress to QA in 2026on Jul 5, 2026
  9. moved this from QA to Done in 2026on Jul 5, 2026
  10. inference-gateway-releaser commented on Jul 18, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.8.0 🎉

    The release is available on GitHub release

    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