Repository navigation
feat: add Cheaper Inference memory provider preset - #420
Merged
EyJunge1 merged 3 commits intoOct 21, 2026
Merged
Conversation
Collaborator
|
Reviewed the preset wiring against Pushed a maintainer update onto this branch:
Focused provider/config tests + typecheck passed locally after the merge. |
2 of 6 tasks
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
Add a
cheaper-inferencememory provider preset.It follows the
atlas-cloudpreset from #360.Cheaper Inference is an OpenAI-compatible LLM gateway.
The preset reuses the OpenAI Chat Completions provider.
It only sets the endpoint, the default model, and the session provider tag.
A minimal config needs only the provider and an API key:
memoryApiUrldefaults tohttps://api.cheaperinference.com/v1.memoryModeldefaults togpt-5.4-mini.If
memoryApiKeyis not set,CHEAPER_INFERENCE_API_KEYfrom the environment is used.Details
src/services/ai/providers/cheaper-inference.ts: new provider class, same shape asatlas-cloud.ts.ai-provider-factory.ts,provider-config.ts,session-types.ts,types/index.ts,config.ts: wire the new id likeatlas-cloud.config.ts: env key fallback and preset status handling, same asatlas-cloud.opencode-mem.example.jsonc, config template,README.mdand the 5 translated READMEs: preset docs and data-transfer note.tests/cheaper-inference-provider.test.ts, plus cases inai-provider-config.test.tsandconfig-resolution.test.ts.gpt-5.4-minireturned asave_memoriestool call throughCheaperInferenceProvider.executeToolCall.Test plan
Checklist
main(do not open PRs from commits already onmain)bun testpasses (or N/A)bun run typecheckpasses (or N/A)bun run checkpasses (format + lint + typecheck; or N/A)