Repository navigation
feat: add Cheaper Inference as an LLM provider - #66
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 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.
This PR adds Cheaper Inference as an LLM provider preset in
llm_client.py.It uses the same pattern as #39 (OrcaRouter).
Cheaper Inference is an OpenAI-compatible LLM gateway.
One API key gives access to models from several labs.
Usage:
You can also set
CHEAPER_INFERENCE_API_KEYinstead of the TOML key.Details
Files:
src/standard/llm_client.py: newcheaperinferenceentry inPROVIDER_DEFAULTS(base URLhttps://api.cheaperinference.com/v1, default modelgpt-5.4-mini) and theCHEAPER_INFERENCE_API_KEYenv mapping.tests/test_llm_client.py: provider defaults test and env key test.config/config.example.toml,README.md,README-zh.md,docs/configuration.md,docs/api-reference.md,docs/pipeline.md: config example and provider lists.Tests:
python -m pytest -qpasses on Python 3.10 and 3.12 (42 passed).Live check:
gpt-5.4-minireturned a reply throughresolve_llm_config()andchat_completions()with the default temperature 1.3.Docs: https://cheaperinference.com/docs
Models: https://cheaperinference.com/markets