Repository navigation
feat(providers): add Cheaper Inference as an OpenAI-compatible gateway - #1016
Open
aiapienthusiast wants to merge 1 commit into
Open
aiapienthusiast wants to merge 1 commit into
aiapienthusiast wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds Cheaper Inference as an OpenAI-compatible gateway provider.
It uses the same pattern as #990 (Eden AI).
Cheaper Inference is an OpenAI-compatible LLM gateway.
One API key gives access to models from several labs.
Usage:
Or set
CHEAPER_INFERENCE_API_KEY.Model ids have no lab prefix.
Example model ref:
cheaperinference/gpt-5.4-mini.Details
Files:
src/providers/factory.zig:compat_providersentry with base URLhttps://api.cheaperinference.com/v1, plus tests.src/providers/api_key.zig: env candidatesCHEAPER_INFERENCE_API_KEY,CHEAPERINFERENCE_API_KEY, plus a test.src/provider_names.zig: aliasescheaper-inferenceandcheaper_inference, plus tests.src/onboard.zig:known_providersentry, default modelgpt-5.4-mini.src/model_refs.zig: known provider namespace.src/integrations.zig: integrations list entry.README.md,config.example.json,docs/enanddocs/zh(architecture.md,configuration.md): provider lists and config example.Each entry goes after Eden AI.
#990 also added a
models_dev_providersrow.This PR does not add that row, because I could not confirm a models.dev entry for this provider.
Onboarding then uses the default model.
Validation
zig build test --summary all(Zig 0.16.0): 13/13 steps succeeded, 7400/7414 tests passed (14 skipped).zig fmt --check src/: pass.git diff --check: pass.Live check:
nullclaw agent -mwithcheaperinference/gpt-5.4-minireturned a reply.Notes