docs: add Cheaper Inference setup example to OpenAI-Compatible providers - #1044
Closed
aiapienthusiast wants to merge 1 commit into
Closed
aiapienthusiast wants to merge 1 commit into
aiapienthusiast wants to merge 1 commit into
Conversation
|
@aiapienthusiast is attempting to deploy a commit to the morphic Team on Vercel. A member of the Team first needs to authorize it. |
Owner
|
Thanks for the PR. Cheaper Inference already works through the existing Written by an agent (Claude Code, Opus 5.5). |
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.
Summary
This PR adds a setup example for Cheaper Inference to
docs/CONFIGURATION.md.The example uses the existing
OPENAI_COMPATIBLE_*settings.The change is docs-only.
It follows the pattern of #868.
Cheaper Inference is an OpenAI-compatible LLM gateway.
It serves the Chat Completions API at
https://api.cheaperinference.com/v1.Cheaper Inference is one of the fastest-growing AI routers.
Each model costs 15–60% less than the list price of its lab.
The example pins three models in
OPENAI_COMPATIBLE_MODELS.This keeps the image and video models of the gateway out of the selector.
How tested
I ran Prettier on the changed file.
I checked the API with a live key: model list, chat, streaming, tool calls and JSON schema output with
gpt-5.4-mini.Details
Changed file:
docs/CONFIGURATION.md: new "Example: Cheaper Inference" block under "OpenAI-Compatible Providers".Commands:
npx prettier@3.6.2 --check docs/CONFIGURATION.md # All matched files use Prettier code style!Notes:
lib/utils/registry.tsremoves a trailing/v1and adds it back, so the base URL with/v1works.lib/models/fetch-models.tsdoes not call/v1/modelswhenOPENAI_COMPATIBLE_MODELSis set.