Repository navigation
feat(llm): add Atlas Cloud provider - #150
Merged
recabasic merged 2 commits intoOct 7, 2026
Merged
Conversation
Adds `atlascloud` as an LLM provider, following the cheaperinference / requesty shape for an OpenAI-compatible gateway: a 21-line module that points ChatOpenAI at https://api.atlascloud.ai/v1, configured with ATLASCLOUD_API_KEY / ATLASCLOUD_MODEL / ATLASCLOUD_BASE_URL. Atlas Cloud serves chat completions only and has no /v1/embeddings endpoint, so makeEmbeddings falls back to the OpenAI settings, which is what the other chat-only gateways here already do. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Signed-off-by: binyangzhu000-sudo <224954946+binyangzhu000-sudo@users.noreply.github.com>
deepseek-ai/DeepSeek-V3.1-Terminus answered when this PR was opened and now returns `400 not found` from the gateway, even though /v1/models still lists it. Switched the default to deepseek-ai/deepseek-v4-flash and the test's second model to zai-org/glm-5.3-flash, both re-checked against the live API just now. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Signed-off-by: binyangzhu000-sudo <224954946+binyangzhu000-sudo@users.noreply.github.com>
recabasic
approved these changes
Oct 7, 2026
2 of 17 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.
What this adds
atlascloudas an LLM provider for the Atlas Cloud gateway, following thecheaperinference/requestyshape — a 21-line module pointingChatOpenAIathttps://api.atlascloud.ai/v1:ATLASCLOUD_API_KEY''ATLASCLOUD_MODELdeepseek-ai/DeepSeek-V3.1-TerminusATLASCLOUD_BASE_URLhttps://api.atlascloud.ai/v1Disclosure: I work at Atlas Cloud. The model catalog at
https://api.atlascloud.ai/v1/modelsis public and needs no key.Embeddings
makeEmbeddingsfalls back to the OpenAI settings, and there is a comment saying why: Atlas Cloud serves chat completions only —POST /v1/embeddingsreturns404 page not found, which I checked rather than assumed. That is the same thingcheaperinference.tsdoes, and.env.examplenotes it next to the key.Testing
Provider tests: 6 files / 38 tests → 7 files / 42 tests, no failures. The new
__tests__/atlascloud.test.tsmirrorscheaperinference.test.tsand adds one case for temperature / max-token pass-through.Live round trip through the real provider and
config, not a mock:The second call also shows
ATLASCLOUD_MODELswitching models on the same key, which is the point of the gateway.Files
backend/src/utils/llm/models/atlascloud.ts(new) ·__tests__/atlascloud.test.ts(new) ·models/index.ts(import +case) ·config/env.ts(3 keys) ·.env.example(provider list + its own section) ·README.md(supported models line)package-lock.jsonis deliberately not in the diff —npm installtouched it locally, but nothing in this change adds a dependency.🤖 Generated with Claude Code