You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User-facing behavior change: the llamacpp provider now supports bearer authentication. Following inference-gateway/schemas#128 (fixes inference-gateway/schemas#127), setting LLAMACPP_API_KEY makes the gateway forward it as Authorization: Bearer <key> to the llama.cpp server. Previously the key was accepted as config but silently ignored, so authenticated llama.cpp servers (started with --api-key) returned 401 Invalid API Key.
The key remains optional: when LLAMACPP_API_KEY is empty or unset, no Authorization header is sent, so local/unauthenticated llama.cpp deployments are unaffected.
Affected pages
Provider configuration / supported providers docs for llama.cpp - document that LLAMACPP_API_KEY is now honored and is required when the llama.cpp server is started with --api-key.
Any environment-variable reference listing LLAMACPP_API_KEY.
Locate where LLAMACPP_API_KEY / llama.cpp auth is documented
Determine if change is generated (schema) or hand-authored prose
Adjust the docs
Validate locally (build / lint / prettier / test)
Commit and open PR
Summary
The provider docs are generated from the canonical inference-gateway/schemasopenapi.yaml, which now sets llama.cpp auth_type: bearer (was none, per schemas#128). The committed docs had drifted and still showed "Optional API key", so this is a regeneration plus a hand-authored note - not just prose.
rust-adk.md + typescript-adk.md "Switching providers and models" table: llama.cpp API-key cell now LLAMACPP_API_KEY
Removed the now-dead, inaccurate adkKeyNote override for llama.cpp in scripts/provider-overrides.json
Synced the offline regression fixture scripts/__fixtures__/openapi.sample.yaml to llama.cpp auth_type: bearer so bun test stays green
Added a note in the llama.cpp section of supported-providers.md: LLAMACPP_API_KEY is optional, is forwarded as Authorization: Bearer <key> when llama-server runs with --api-key, and is omitted otherwise (existing local deployments unaffected)
Validation (all green):bun test (11 pass), bun run format:check, bun run build, bun run lint:md.
configuration.md and sdks.md were intentionally not changed - their generated regions do not depend on auth_type.
Activity
edenreich commentedon Jul 19, 2026
@claude Can you adjust the docs?
inference-gateway-maintainer commentedon Jul 19, 2026
Claude finished @edenreich's task in 10m 4s —— View job •
docs/issue-436-20260719-1637• [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-436-20260719-1637?quick_pull=1&title=Issue%20%23436%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23436%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Task: Document llamacpp LLAMACPP_API_KEY bearer auth
LLAMACPP_API_KEY/ llama.cpp auth is documentedSummary
The provider docs are generated from the canonical
inference-gateway/schemasopenapi.yaml, which now sets llama.cppauth_type: bearer(wasnone, per schemas#128). The committed docs had drifted and still showed "Optional API key", so this is a regeneration plus a hand-authored note - not just prose.Changes (PR #437):
--schema-file):supported-providers.mdprovider matrix: llama.cpp AuthOptional API key->Bearer Tokenrust-adk.md+typescript-adk.md"Switching providers and models" table: llama.cpp API-key cell nowLLAMACPP_API_KEYadkKeyNoteoverride for llama.cpp inscripts/provider-overrides.jsonscripts/__fixtures__/openapi.sample.yamlto llama.cppauth_type: bearersobun teststays greensupported-providers.md:LLAMACPP_API_KEYis optional, is forwarded asAuthorization: Bearer <key>whenllama-serverruns with--api-key, and is omitted otherwise (existing local deployments unaffected)Validation (all green):
bun test(11 pass),bun run format:check,bun run build,bun run lint:md.configuration.mdandsdks.mdwere intentionally not changed - their generated regions do not depend onauth_type.PR: #437
docs/issue-436-20260719-1637inference-gateway-releaser commentedon Jul 22, 2026
🎉 This issue has been resolved in version 0.9.3 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀