feat(llms): add Atlas Cloud as an OpenAI-compatible LLM backend#1962
Open
lucaszhu-hue wants to merge 1 commit into
Open
feat(llms): add Atlas Cloud as an OpenAI-compatible LLM backend#1962lucaszhu-hue wants to merge 1 commit into
lucaszhu-hue wants to merge 1 commit into
Conversation
Add an `atlascloud` backend that talks to the Atlas Cloud OpenAI-compatible Chat Completions API (https://api.atlascloud.ai/v1), following the existing pattern used for `deepseek`, `qwen` and `minimax`: - AtlasCloudLLMConfig (subclass of OpenAILLMConfig) defaulting api_base to the Atlas Cloud endpoint - AtlasCloudLLM (subclass of OpenAILLM) - register `atlascloud` in both LLMConfigFactory and LLMFactory - document the backend in the EN/CN model_backend guides Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.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 a first-class
atlascloudLLM backend, alongside the existingopenai,qwen,deepseek, andminimaxproviders.Atlas Cloud exposes an OpenAI-compatible Chat Completions API, so this follows the exact same pattern already used for DeepSeek / Qwen / MiniMax:
AtlasCloudLLMConfig— subclass ofOpenAILLMConfig, defaultingapi_basetohttps://api.atlascloud.ai/v1AtlasCloudLLM— subclass ofOpenAILLM"atlascloud"in bothLLMConfigFactoryandLLMFactorymodel_backendguidesWhy
It lets MemOS users point the existing LLM machinery at Atlas Cloud's hosted open models (DeepSeek, Qwen, Kimi, GLM, Llama, etc.) with a one-line
backend=swap, no code changes elsewhere.Usage
api_basedefaults tohttps://api.atlascloud.ai/v1and can be overridden like any other OpenAI-compatible backend.Notes on the API key
The API key is passed through config exactly like the other OpenAI-compatible backends — nothing is hardcoded. Users supply their own key (commonly via the
ATLASCLOUD_API_KEYenvironment variable).Verification
python -m py_compilepasses on all changed files.atlascloudis registered in bothLLMConfigFactoryandLLMFactory,LLMConfigFactory.model_validate(...)produces anAtlasCloudLLMConfigwith the correct defaultapi_base, andAtlasCloudLLMis a subclass ofOpenAILLM.Happy to adjust naming/docs to match maintainer preferences. For any questions about the Atlas Cloud API you can also reach us at marketing@atlascloud.ai.