Repository navigation
feat: add Cheaper Inference provider - #14
Merged
Merged
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.
Adds Cheaper Inference as an LLM provider.
It uses the same pattern as #8 (Atlas Cloud).
Cheaper Inference is an OpenAI-compatible LLM gateway.
One API key gives access to models from several labs.
ChatCheaperInferenceextendsChatOpenAIand only sets the base URL, the API key env var and the provider name.Changes
windows_use/providers/cheaper_inference/— newChatCheaperInferenceclass.https://api.cheaperinference.com/v1.CHEAPER_INFERENCE_API_KEY. Optional base URL override:CHEAPER_INFERENCE_API_BASE.gpt-5.4-mini.windows_use/providers/__init__.py— exportChatCheaperInference.windows_use/cli/registry.py— provider, models, API key flag and display name.windows_use/cli/setup.py—create_llmbranch and env var map entry.README.md— provider table row and a short usage example.tests/unit/providers/test_cheaper_inference.py— client defaults and CLI registry entries.Testing
pytest tests/unit/providers tests/unit/test_openai_events.py tests/unit/test_llm_events.py— 11 passed.ruff checkandruff format --checkon the changed files — pass.create_llm("cheaper_inference", "gpt-5.4-mini")returnsChatCheaperInferencewith the expected base URL.__init__imports that need Windows (comtypes) were stubbed. The full suite was not run.