Skip to content

feat: add llamacpp provider support - #151

Merged
edenreich merged 1 commit into
mainfrom
feat/issue-150-20260718-2111
Jul 18, 2026
Merged

edenreich merged 1 commit into
mainfrom
feat/issue-150-20260718-2111

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Summary

Regenerate src/types/generated/index.ts from inference-gateway/schemas main using the canonical task oas-download && task generate-types flow. This adds the llamacpp provider requested in #150.

The local openapi.yaml was several schema releases behind, so a faithful regen (required by the "working tree clean after regen" criterion and the repo rule that generated types must track upstream, never be hand-patched) also pulls in the changes that shipped alongside llamacpp in the v0.6.x line:

  • Provider.llamacpp (keyless, default URL http://llamacpp:8080/v1)
  • Provider.zai
  • Responses API types (CreateResponseRequest, Response, ResponseStreamEvent, and related schemas)
  • x-enum-varnames that rename several enum members to PascalCase

Compatibility note (enum member renames)

Upstream added x-enum-varnames, so these exported enum members are renamed. The string values are unchanged, so runtime behavior is identical - only the TypeScript identifiers change:

  • MessageRole: system|user|assistant|tool -> System|User|Assistant|Tool
  • FinishReason: stop|length|tool_calls|content_filter|function_call -> Stop|Length|ToolCalls|ContentFilter|FunctionCall
  • CreateChatCompletionRequestReasoning_effort: minimal|low|medium|high -> Minimal|Low|Medium|High

The README examples already use the PascalCase form, so this brings the generated types in line with the documented usage. Provider members stay lowercase (upstream did not add varnames there), so the new provider is accessed as Provider.llamacpp.

Acceptance criteria

  • Provider enum includes llamacpp
  • Tests pass (23/23), build clean, eslint clean
  • Working tree clean after regen (re-running the regen is a no-op)
  • Released (handled by semantic-release on merge to main)

Downstream impact

  • Consumers such as inference-gateway/typescript-adk can use Provider.llamacpp after the release.
  • TS consumers that reference the old lowercase MessageRole / FinishReason / reasoning_effort members will need to update to the PascalCase names above. The SDK is pre-1.0, so this ships as a minor release; flagging here so the change is communicated.

Closes #150

Regenerate src/types/generated from inference-gateway/schemas main.
Adds llamacpp (keyless, http://llamacpp:8080/v1) to the Provider enum.
The local schema was several releases behind, so the regen also adds the
zai provider and Responses API types, and applies x-enum-varnames that
rename MessageRole/FinishReason/reasoning_effort members to PascalCase
(matching the README examples). Tests updated accordingly.
@edenreich
edenreich merged commit 480a5df into main Jul 18, 2026
1 check passed
@edenreich
edenreich deleted the feat/issue-150-20260718-2111 branch July 18, 2026 21:30
inference-gateway-releaser Bot added a commit that referenced this pull request Jul 18, 2026
## [0.12.0](v0.11.0...v0.12.0) (2026-07-18)

### ✨ Features

* add llamacpp provider support ([#151](#151)) ([480a5df](480a5df))

### 👷 CI

* **claude:** centralize claude.yml via reusable workflow ([#145](#145)) ([8c5b5db](8c5b5db))
* **deps-dev:** bump the npm group with 4 updates ([#143](#143)) ([193f693](193f693))
* **deps-dev:** bump the npm group with 4 updates (revert typescript to ^6.0.3) ([#148](#148)) ([7eb3cc1](7eb3cc1))
* **deps:** bump actions/setup-node in the github-actions group ([#147](#147)) ([e8e63cb](e8e63cb))
* **deps:** bump inference-gateway/.github/.github/workflows/claude.yml ([#142](#142)) ([e26de89](e26de89))
* **infer:** centralize infer.yml via reusable workflow ([#140](#140)) ([a611a54](a611a54))
* **infer:** centralize infer.yml via reusable workflow ([#141](#141)) ([f308645](f308645))
* **release:** update semantic release and plugins to latest versions with local installation ([1a70b70](1a70b70))
* restrict default workflow token permissions to contents: read ([#139](#139)) ([2285723](2285723))

### 🔧 Miscellaneous

* **deps:** bump claude-code 2.1.177 -> 2.1.197, claude-code-action v1.0.161 -> v1.0.165 ([#133](#133)) ([c217b4f](c217b4f))
* **deps:** bump claude-code 2.1.197 -> 2.1.201 ([#134](#134)) ([212450d](212450d))
* **deps:** bump claude-code-action v1.0.168 -> v1.0.169 ([#144](#144)) ([78500f4](78500f4))
* **deps:** bump infer CLI v0.130.1 -> v0.133.0, infer-action v0.24.0 -> v0.26.0 ([#135](#135)) ([a1b5f3e](a1b5f3e))
* **deps:** bump infer CLI v0.133.0 -> v0.133.1, infer-action v0.26.0 -> v0.27.1 ([#136](#136)) ([6d09b1d](6d09b1d))
* **deps:** bump infer CLI v0.133.1 -> v0.137.0, infer-action v0.27.1 -> v0.29.0 ([#137](#137)) ([3fedb5a](3fedb5a))
* **deps:** bump infer CLI v0.137.0 -> v0.138.0, infer-action v0.29.0 -> v0.30.1 ([#138](#138)) ([5ab09cb](5ab09cb))
* **deps:** bump infer CLI v0.138.0 -> v0.141.0 ([#146](#146)) ([87703a0](87703a0))
* **deps:** bump infer CLI v0.141.0 -> v0.147.1 ([#149](#149)) ([96f6705](96f6705))
* **release:** update GitHub App credentials to use RELEASER_APP_ID and RELEASER_APP_PRIVATE_KEY ([c0b5235](c0b5235))
* remove deprecated configuration and shortcut files ([b44f38a](b44f38a))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

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

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