Repository navigation
feat(llm): add Atlas Cloud service - #65
Open
binyangzhu000-sudo wants to merge 1 commit into
Open
binyangzhu000-sudo wants to merge 1 commit into
binyangzhu000-sudo wants to merge 1 commit into
Conversation
Atlas Cloud is an OpenAI-compatible gateway, so the service follows the Nebius shape: an AiLLM over createOpenAI with the gateway base URL. Context windows and per-million-token costs come from the gateway's public catalog rather than being estimated. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Signed-off-by: binyangzhu000-sudo <224954946+binyangzhu000-sudo@users.noreply.github.com>
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
Adds Atlas Cloud as an LLM service. It is an OpenAI-compatible gateway serving DeepSeek, GLM and Kimi models behind one endpoint, so the service follows the Nebius shape: an
AiLLMovercreateOpenAIwith the gateway base URL.src/llm/services/atlascloud.ts— service + 3 registered modelssrc/llm/llmFactory.ts— registry entryshared/user/user.model.ts,shared/user/user.schema.ts—atlasCloudKeyKey resolution matches the existing services:
currentUser()?.llmConfig.atlasCloudKeyfalling back toATLASCLOUD_API_KEY.Disclosure: I work at Atlas Cloud.
How I verified it
Costs and context windows are from the source, checked by script. Every
costPerMilTokens(...)andmaxInputTokenswas compared field-by-field against the gateway's public catalog (GET https://api.atlascloud.ai/v1/models) — zero mismatches:deepseek-ai/DeepSeek-V3.1-Terminuszai-org/glm-4.7moonshotai/kimi-k2.6All three answer. Each was called live against
https://api.atlascloud.ai/v1with the same shapeprovider()builds. (glm-4.7returned 200 with empty content on a 5-token cap — it is a reasoning model and spends the budget onreasoning_content— not an error.)Test plan
npx tsc --noEmit— 4 errors, identical to the clean tree (verified withgit stash -u), 0 mentioning atlascloud🤖 Generated with Claude Code