Skip to content

feat(provider): add Cheaper Inference as a named compatible provider - #515

Open
aiapienthusiast wants to merge 1 commit into
Devin-AXIS:ipollowork-multi-enginefrom
aiapienthusiast:cheaperinference-provider
Open

aiapienthusiast wants to merge 1 commit into
Devin-AXIS:ipollowork-multi-enginefrom
aiapienthusiast:cheaperinference-provider

Conversation

@aiapienthusiast

Copy link
Copy Markdown

Summary

Why

  • Users can connect Cheaper Inference with an API key.
  • They do not need to enter a base URL and model list by hand.

Issue

Scope

  • cheaperinference-provider.ts: preset with base URL https://api.cheaperinference.com/v1, fallback models, runtime model builder, and model list parser (text models only).
  • store.ts: register the preset in COMPATIBLE_PROVIDER_PRESETS and 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, and ci_live_... placeholder.
  • Tests: preset unit tests and a store-level connection test, same as feat(provider): add OrcaRouter as a named compatible provider #387.

Out of scope

  • No change to other providers, engines, or the OpenCode boundary.
  • No new dependencies.

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.mjs

Result

  • pass: targeted tests 57/57, typecheck, audit (ok: true, no errors or warnings).
  • full apps/app suite: 1400 pass, 18 fail. The same 18 tests fail on main without this change.
  • if fail, exact files/errors: none from this change.

CI status

  • pass: not run yet (fork PR).
  • code-related failures: none known.
  • external/env/auth blockers: none known.

Manual verification

  1. Live check: the preset base URL and gpt-5.4-mini returned a reply through @ai-sdk/openai-compatible (the npm package the store writes to the OpenCode config).
  2. Live check: parseCheaperInferenceModels read GET /v1/models. All fallback model ids are in the live list.
  3. In the app: open Providers, choose Cheaper Inference, paste a key, and select gpt-5.4-mini in the composer.

Evidence

  • No video or fraimz run. I did not run the Electron desktop app in my environment. The store-level test covers the connect flow.

Contributor statement

  • I have the right to submit this contribution under CONTRIBUTING.md.
  • I preserved third-party copyright and license notices, or this change does not add third-party material.

Risk

  • Low. The change adds one preset. It does not change existing providers.

Rollback

  • Revert this commit.

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.

[Feature]: Add Cheaper Inference as a named compatible provider

1 participant