Skip to content

feat(providers): add Cheaper Inference gateway provider - #192

Open
aiapienthusiast wants to merge 1 commit into
SAIL-Research-Lab:mainfrom
aiapienthusiast:cheaperinference-provider
Open

aiapienthusiast wants to merge 1 commit into
SAIL-Research-Lab:mainfrom
aiapienthusiast:cheaperinference-provider

Conversation

@aiapienthusiast

Copy link
Copy Markdown

This PR adds Cheaper Inference as a provider.
It copies the pattern of the Requesty gateway entry.

Cheaper Inference is an OpenAI-compatible LLM gateway.
One API key gives access to models from several labs.

The entry sits next to requesty in PROVIDERS.
It uses the endpoint https://api.cheaperinference.com/v1.
The key comes from CHEAPERINFERENCE_API_KEY or /config cheaperinference_api_key.
The first segment of cheaperinference/<model> is the provider.
Everything after it is sent as the model ID.

Usage:

export CHEAPERINFERENCE_API_KEY=ci_live_...
cheetahclaws --model cheaperinference/gpt-5.4-mini
Details

Files: the cheaperinference entry in providers.py, the /model hint in config_cmd.py, a new test file, the README, the guide docs and the 7 i18n READMEs. This mirrors the OpenRouter and Requesty coverage.

Tests: tests/test_cheaperinference_provider.py (10 tests) pass. The existing OpenRouter and Requesty provider tests still pass.

Live check: gpt-5.4-mini returned a reply through stream("cheaperinference/gpt-5.4-mini", ...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant