Skip to content

feat: add Cheaper Inference provider to catalog - #772

Open
aiapienthusiast wants to merge 1 commit into
huggingface:mainfrom
aiapienthusiast:cheaperinference-provider
Open

aiapienthusiast wants to merge 1 commit into
huggingface:mainfrom
aiapienthusiast:cheaperinference-provider

Conversation

@aiapienthusiast

Copy link
Copy Markdown

Adds Cheaper Inference to the built-in provider catalog.
The change is data only, like the NVIDIA NIM entry in #314.

Cheaper Inference is an OpenAI-compatible LLM gateway.

Motivation

Users can pick it from /login instead of a custom provider setup.

Behavior

  • New cheaperinference provider, kind openai-compatible, API openai-completions.
  • Base URL: https://api.cheaperinference.com/v1.
  • Key: CHEAPER_INFERENCE_API_KEY or /login cheaperinference.
  • Models: gpt-5.4-mini (default), gpt-5.4, claude-sonnet-5, gemini-3.1-pro, deepseek-v4-flash.
tau --provider cheaperinference -m gpt-5.4-mini

Notes

  • Model IDs, context windows, output limits and image input come from the live GET /v1/models response.
  • The entry declares no thinking levels and no reasoning flag. I did not verify effort mapping per model, so I did not guess it.
  • The entry has no cost rows. Some models use tiered prices, so Tau shows no cost for this provider.
  • No compat flags. The default request shape works.
Details

Files:

  • src/tau_coding/data/catalog.toml: new [[providers]] entry at the end.
  • tests/test_provider_catalog.py: provider order and a golden-entry test.
  • tests/test_provider_config.py: provider order.
  • website/content/guides/providers-and-models.md: /login line and built-in list.

Checks:

  • uv run pytest tests/test_provider_catalog.py tests/test_provider_config.py -q: 116 passed.
  • uv run pytest --ignore=tests/test_tui_app.py: 1632 passed, 1 failed (test_oauth_providers.py::test_device_poll_slow_down_and_cancel, fails on main too).
  • uv run pytest tests/test_tui_app.py -k "login or provider or catalog or model": 46 passed.
  • uv run ruff check ., uv run ruff format --check (changed tests), uv run mypy: pass.

Live check:

  • tau -p --provider cheaperinference -m gpt-5.4-mini "Reply with the single word: pong" returned pong.
  • A prompt that asks for echo tau-ci-ok made a bash tool call and returned tau-ci-ok.

This branch has not been deployed

No deployments
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