Skip to content

[FEATURE] add llamacpp provider support #74

Description

Summary

inference-gateway/inference-gateway added a new first-class provider, llamacpp (llama.cpp's OpenAI-compatible llama-server), in inference-gateway/inference-gateway#448. The canonical Provider enum in inference-gateway/schemas v0.6.1 now includes llamacpp (keyless: auth_type: none, default URL http://llamacpp:8080/v1).

What to change

  • Regenerate inference_gateway/models.py: the Taskfile's OPENAPI_URL points at inference-gateway/schemas main (already at v0.6.1), so a regen adds LLAMACPP to the Provider enum.
  • Publish a release to PyPI so consumers can use Provider.LLAMACPP.

Acceptance criteria

  • Provider enum includes LLAMACPP
  • Tests pass, working tree clean after regen
  • Released

Refs

Activity

  1. changed the title [-]feat: add llamacpp provider support[/-] [+][FEATURE] add llamacpp provider support[/+] on Jul 18, 2026
  2. edenreich commented on Jul 18, 2026

    @edenreich
    Contributor

    @claude Can you work on this? use /ponytail:ponytail

  3. added
    enhancement
    on Jul 18, 2026
  4. inference-gateway-maintainer commented on Jul 18, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 14m 50s —— View job


    Task: add llamacpp provider support

    • Gather context (Provider enum + generation pipeline)
    • Track issue on Roadmap board (In progress -> QA)
    • Add llamacpp to the Provider enum in models.py
    • Add regression test + verify diff is clean
    • Commit & open PR
    • File follow-ups for the out-of-scope spec drift

    What I did

    Added llamacpp to the Provider enum in inference_gateway/models.py, in the exact position it holds in inference-gateway/schemas v0.6.1 (groq -> llamacpp -> openai), so Provider("llamacpp") now validates. Added a matching assertion to test_provider_values.

    PR: #75

                 "groq",
    +            "llamacpp",
                 "openai",

    Why a surgical edit instead of task generate

    The issue expected a regen to only add llamacpp, but the spec on main has drifted well past that. Versus the SDK's current models.py, v0.6.1 also adds a second provider zai and an entire Responses API (POST /responses + ~30 new schemas that client.py has no methods for). A full task generate would pull all of that in - out of scope for "add llamacpp".

    On top of that, this sandbox has no outbound network and no datamodel-codegen (pip and HTTP are blocked), so a faithful full regen couldn't run here anyway. I made the two-line enum edit by hand to match codegen output exactly, and left the throwaway openapi.yaml snapshot untouched. Filed the drift as follow-ups so it isn't lost:

    Verification

    pytest/pydantic aren't installable in this sandbox, so I couldn't run the suite here. Both files pass python -m py_compile; the change is mechanical and the added test asserts Provider("llamacpp").root == "llamacpp". CI (which installs deps) will run the full suite on the PR.

    Not done

  5. moved this from Todo to In progress in 2026on Jul 18, 2026
  6. moved this from In progress to QA in 2026on Jul 18, 2026
  7. moved this from QA to Done in 2026on Jul 18, 2026
  8. 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