Repository navigation
feat: add Atlas Cloud as an LLM provider - #332
binyangzhu000-sudo wants to merge 2 commits into
Conversation
Atlas Cloud (https://www.atlascloud.ai/) is an OpenAI-compatible gateway to 100+ LLMs from a single endpoint, in the same category as the existing OpenRouter provider. Registered in web/src/config/llm-providers/ (the ModelProviderCard registry that DEFAULT_MODEL_PROVIDER_LIST/getDefaultBaseURL actually feed into services/llm-chat.ts's real fetch() calls) — not the separate web/src/config/ai-models/ directory, which carries the same provider names but isn't consumed anywhere in web/src. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Signed-off-by: binyangzhu000-sudo <224954946+binyangzhu000-sudo@users.noreply.github.com>
Reviewer's GuideThis PR integrates Atlas Cloud as a first-class LLM provider by adding an OpenAI-compatible provider card, registering nine catalog models, and wiring its API endpoint and default check model into the provider adapter; build and lint reportedly pass, with an additional successful manual chat-completion request. Sequence diagram for an Atlas Cloud chat completionsequenceDiagram
participant Chat as Chat service
participant Adapter as LLM provider adapter
participant Atlas as Atlas Cloud API
Chat->>Adapter: getDefaultBaseURL(atlascloud)
Adapter-->>Chat: https://api.atlascloud.ai/v1
Chat->>Atlas: POST /chat/completions with model openai/gpt-4.1-mini
Atlas-->>Chat: Chat completion response
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="web/src/config/llm-providers/atlascloud.ts" line_range="85" />
<code_context>
+ 'Atlas Cloud 是一个 OpenAI 兼容的统一网关,通过单一 API 接入 100+ 大语言模型,涵盖 OpenAI、Anthropic、DeepSeek、Qwen、Z.AI、Moonshot、MiniMax 等厂商,模型 ID 采用 `vendor/model` 格式。',
+ id: 'atlascloud',
+ modelList: { showModelFetcher: true },
+ modelsUrl: 'https://www.atlascloud.ai/',
+ name: 'Atlas Cloud',
+ proxyUrl: {
</code_context>
<issue_to_address>
**nitpick:** The Atlas Cloud provider's model documentation link opens the provider homepage rather than a model catalog or model documentation page, so the UI's “view models” link does not take users to the advertised model information.
**Suggested fix:** Point `modelsUrl` to Atlas Cloud's actual model catalog or API documentation URL.
```suggestion
modelsUrl: 'https://www.atlascloud.ai/models',
```
</issue_to_address>Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: binyangzhu000-sudo <224954946+binyangzhu000-sudo@users.noreply.github.com>
|
Thanks for the review, Sourcery. Verified against the current code: |
What & Why
Adds Atlas Cloud as a new LLM provider, in the same category as the existing OpenRouter provider. Atlas Cloud is an OpenAI-compatible gateway to 100+ LLMs from a single endpoint (
https://api.atlascloud.ai/v1), identified byvendor/modelids (e.g.openai/gpt-4.1-mini,anthropic/claude-sonnet-4.6,deepseek-ai/deepseek-v3.2).Disclosure: I work at Atlas Cloud.
Implementation notes
This repo has two directories that both carry per-provider files named e.g.
openrouter.ts:web/src/config/ai-models/(51 files) — a static model-metadata catalog. Nothing underweb/srcactually imports this directory.web/src/config/llm-providers/— the realModelProviderCardregistry.DEFAULT_MODEL_PROVIDER_LISTis built from it, andllm-providers-adapter.ts'sgetDefaultBaseURL()/getProviderTemplate()(which read from this list) are whatservices/llm-chat.tsactually calls to build the realfetch()request to/chat/completions.This PR only touches the second one, which is the one that matters for a working integration:
web/src/config/llm-providers/atlascloud.ts(new): aModelProviderCardmirroringgroq.ts's shape (no specialdisableBrowserRequest, unlike OpenRouter), listing 9 models with real context-window values pulled from Atlas Cloud's own/v1/modelscatalog.web/src/config/llm-providers/index.ts: import + added toDEFAULT_MODEL_PROVIDER_LIST(next toOpenRouterProvider) + card re-export.web/src/config/llm-providers-adapter.ts:getDefaultBaseURL()andgetDefaultCheckModel()each got one entry.Testing
(This project has no unit test suite.)
Manual test — a real call to the exact endpoint this config resolves to:
🤖 Generated with Claude Code
Summary by Sourcery
Add Atlas Cloud to the available LLM providers and expose its supported models through the provider registry.
New Features:
Enhancements: