Repository navigation
feat(provider): add Cheaper Inference as a named compatible provider - #515
Open
aiapienthusiast wants to merge 1 commit into
Open
aiapienthusiast wants to merge 1 commit into
aiapienthusiast wants to merge 1 commit into
Conversation
This branch has not been deployed
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
Why
Issue
Scope
cheaperinference-provider.ts: preset with base URLhttps://api.cheaperinference.com/v1, fallback models, runtime model builder, and model list parser (text models only).store.ts: register the preset inCOMPATIBLE_PROVIDER_PRESETSand add its API-key auth method.provider-auth-curation.ts,utils/index.ts,provider-icon.tsx: display name and icon letters.provider-auth-modal.tsx: short copy, signup link, andci_live_...placeholder.Out of scope
Testing
Ran
bun test --isolate tests/cheaperinference-provider.test.ts tests/orcarouter-provider.test.ts tests/provider-engine-adapter.test.ts(apps/app)bun test --isolate tests/(apps/app)tsc -p tsconfig.json --noEmit(apps/app)node .codex/skills/ipollowork-maintainable-code/scripts/audit-changes.mjsResult
ok: true, no errors or warnings).apps/appsuite: 1400 pass, 18 fail. The same 18 tests fail onmainwithout this change.CI status
Manual verification
gpt-5.4-minireturned a reply through@ai-sdk/openai-compatible(the npm package the store writes to the OpenCode config).parseCheaperInferenceModelsreadGET /v1/models. All fallback model ids are in the live list.gpt-5.4-miniin the composer.Evidence
Contributor statement
CONTRIBUTING.md.Risk
Rollback