Skip to content

feat: add llamacpp provider support - #161

Merged
edenreich merged 1 commit into
mainfrom
feat/issue-160-20260718-2333
Jul 19, 2026
Merged

edenreich merged 1 commit into
mainfrom
feat/issue-160-20260718-2333

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Summary

Adds llamacpp (llama.cpp's OpenAI-compatible llama-server) to the operator's supported provider list, regenerated from the canonical inference-gateway/schemas Provider enum (v0.6.1+), which now includes llamacpp (keyless: auth_type: none, default http://llamacpp:8080/v1).

Changes

  • internal/providers/zz_generated_providers.go: add "llamacpp" to SupportedProviders (alphabetically, between groq and minimax) to match the live schema's components.schemas.Provider.enum.
  • internal/providers/providers_test.go: add IsSupported cases for llamacpp and the capitalized Llamacpp form used in Gateway CRs.

Effect

  • A Gateway CR with providers: [{ name: Llamacpp, ... }] now passes the reconcile-time providers.IsSupported check (gateway_controller.go:247) and reconciles. No CRD change is needed - provider names are validated at runtime, not via a kubebuilder enum marker.
  • The shared-types drift guard TestSupportedProvidersMatchSchema confirms parity against the live schema in CI.

Verification

  • The change is a data addition matching the schema; the sorted operator list now exactly equals the schema main enum (15 entries, only llamacpp added).
  • TestIsSupported (including the new llamacpp cases) and TestSupportedProvidersHasNoDuplicates pass locally. The network-backed drift test runs in CI (offline in this sandbox).

Downstream

  • Once this is released, the gateway's k8s hybrid example (examples/kubernetes/hybrid/gateway.yaml) can uncomment its Llamacpp provider block.

Closes #160

@inference-gateway-maintainer
inference-gateway-maintainer Bot requested a review from a team as a code owner July 18, 2026 23:40
@edenreich
edenreich merged commit 732158d into main Jul 19, 2026
1 check passed
@edenreich
edenreich deleted the feat/issue-160-20260718-2333 branch July 19, 2026 09:41
inference-gateway-releaser Bot added a commit that referenced this pull request Jul 19, 2026
## [0.19.0](v0.18.0...v0.19.0) (2026-07-19)

### ✨ Features

* add llamacpp provider support ([#161](#161)) ([732158d](732158d))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.19.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

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add llamacpp provider support

1 participant