Skip to content

feat: add Cheaper Inference provider preset - #184

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

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

Conversation

@aiapienthusiast

Copy link
Copy Markdown

This PR adds Cheaper Inference as a built-in aggregator preset.
It is shaped like the Opper and Atlas Cloud entries (#172, #177).

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

The preset is not marked as recommended.

Details
  • presets.ts: new cheaperinference preset after atlascloud, base https://api.cheaperinference.com/v1. Three endpoints: OpenAI Chat, OpenAI Responses, and Anthropic (the client adds /v1/messages). GET /v1/models needs a key, so the model list is enabled but not marked public. Suggested models are bare IDs: gpt-5.4-mini, claude-sonnet-5, deepseek-v4-flash.
  • baseurl.ts: Cheaper Inference added to the /v1 row of the doc table.
  • presets.test.ts: pinned the Anthropic URL row.
  • preset-brands.test.ts: lobehub has no icon for it, so it falls back to initials like API Route. The count, the no-icon comment and the list are updated.

Verification: probed. Without a key, POST /v1/chat/completions, /v1/responses and /v1/messages return 401, and a fake path under /v1 returns 404. With a key the model list loads and a short chat request to gpt-5.4-mini returns a reply.

npm run typecheck:node, npm run typecheck:web and the presets/preset-brands vitest suites pass.

Keys: https://cheaperinference.com/signup
Docs: https://cheaperinference.com/docs

Add Cheaper Inference as a built-in aggregator preset, shaped like the Opper and Atlas Cloud entries.

presets.ts: new cheaperinference preset after atlascloud, base https://api.cheaperinference.com/v1, with OpenAI Chat, OpenAI Responses and Anthropic endpoints. The model list needs a key, so it is not marked public. Suggested models are bare IDs.

baseurl.ts: Cheaper Inference added to the /v1 row of the doc table.

presets.test.ts: pinned the Anthropic URL row.

preset-brands.test.ts: lobehub has no icon for it, so it falls back to initials. The count, the comment and the no-icon list are updated.
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