feat: add Atlas Cloud as an OpenAI-compatible provider#6806
Open
lucaszhu-hue wants to merge 1 commit into
Open
feat: add Atlas Cloud as an OpenAI-compatible provider#6806lucaszhu-hue wants to merge 1 commit into
lucaszhu-hue wants to merge 1 commit into
Conversation
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 new built-in model provider. Atlas Cloud (https://atlascloud.ai) is an OpenAI-compatible gateway exposing many open and proprietary LLMs through a single endpoint (
https://api.atlascloud.ai/v1).How
Atlas Cloud speaks the standard OpenAI
/v1/chat/completions(and/v1/models) API, so the integration mirrors the existing 302.AI provider 1:1 — another OpenAI-compatible gateway already in the project. No new request/response handling was needed.Touched the same set of integration points as 302.AI:
app/client/platforms/atlascloud.ts— new platform client (AtlasCloudApi), streaming + tool-calls + reasoning, modeled onai302.tsapp/api/atlascloud.ts— new server proxy route, modeled on302ai.tsapp/api/[provider]/[...path]/route.ts— dispatch the newApiPath.AtlasCloudapp/constant.ts—ATLASCLOUD_BASE_URL,ServiceProvider.AtlasCloud,ModelProvider.AtlasCloud,ApiPath.AtlasCloud,AtlasCloudconfig object, default model list, andDEFAULT_MODELSentryapp/client/api.ts— client dispatch + auth-header/key resolution branchapp/config/server.ts—ATLASCLOUD_URL/ATLASCLOUD_API_KEYenv supportapp/api/auth.ts— inject the Atlas Cloud server key for this providerapp/store/access.ts— default URL, store fields, validatorapp/components/settings.tsx— provider config UI (endpoint + API key)app/locales/en.ts,app/locales/cn.ts— settings stringsConfiguration
Server-side env vars (same pattern as other providers):
Users can also enter their own key in Settings → Custom Endpoint → Atlas Cloud.
Testing
npx tsc --noEmitpasses with 0 errorsServiceProviderenum)Questions can go to marketing@atlascloud.ai.