Repository navigation
feat(providers): add Atlas Cloud as an OpenAI-compatible provider - #767
Open
binyangzhu000-sudo wants to merge 2 commits into
Open
binyangzhu000-sudo wants to merge 2 commits into
binyangzhu000-sudo wants to merge 2 commits into
Conversation
Add `atlascloud` next to Together, Fireworks and OpenRouter: a keyed OpenAI-compatible provider with the endpoint prefilled (https://api.atlascloud.ai/v1) and ATLASCLOUD_API_KEY as the env var. Atlas Cloud's /models is public and /chat/completions has no GET route, so the generic Test probe would reject a valid key and accept a bad one. Verify with a one-token completion instead, as already done for Ark. Also add two curated matrix rows (DeepSeek V4 Flash, GLM-5.2), a key-help link, gallery ordering, a README mention, and tests. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: binyangzhu000-sudo <224954946+binyangzhu000-sudo@users.noreply.github.com>
Upstream already registers atlascloud (andrewyng#668), so take upstream's descriptor, matrix row, GUI and README entries and keep this PR's remaining fix: a one-token POST /chat/completions probe, because /models is public and a valid key gets 404 on GET /chat/completions in the generic probe. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: binyangzhu000-sudo <224954946+binyangzhu000-sudo@users.noreply.github.com>
Author
|
Synced with Verified: |
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.
Summary
Adds Atlas Cloud (https://www.atlascloud.ai) as a named, keyed OpenAI-compatible provider, wired the same way as Together / Fireworks / OpenRouter via
_compat(...): endpoint prefilled (https://api.atlascloud.ai/v1, editable), key fromATLASCLOUD_API_KEY, recommended modeldeepseek-ai/deepseek-v4-flash.Disclosure: I work at Atlas Cloud.
Files:
coworker/providers/registry.py-atlasclouddescriptor; plus a dedicated branch inverify_provider_keycoworker/providers/matrix.py- two curated rows (DeepSeek V4 Flash, GLM-5.2; context 1,048,576 perapi.atlascloud.ai/v1/models)surfaces/gui/src/providers/ProviderSetup.tsx- key-help link (console.atlascloud.ai/api-keys)surfaces/gui/src/providers/logos.ts- gallery order (no logo asset added; the gallery's neutral monogram fallback is used)README.md- provider list mentiontests/test_providers.py,tests/test_provider_verify.py- descriptor/env-key, matrix capabilities, lockstep, verify probeProvider-specific decision: the generic Test button probe does not work for this gateway.
GET /v1/modelsis public (a bad key still returns 200) andGET /v1/chat/completionsreturns 404 (no GET route), so the default path would reject a valid key with the "missing /v1" message and accept an invalid one. The new branch sends a non-persisted one-tokenPOST /chat/completions, the same approach the Ark providers already use.Test plan
pytest tests -q(Python 3.11): 3124 passed, 29 skipped, 0 failed (with.[dev,messaging]installed)verify_provider_key,build_provider_client,OpenAIProvider.complete) against api.atlascloud.ai: valid key ->{'ok': True}, invalid key ->Invalid API key.deepseek-ai/deepseek-v4-flashreturned "OK." (7 in / 29 out tokens, finishstop); a forced tool call returned a parsedpingToolCall;zai-org/glm-5.2returned "OK" (15 in / 52 out)tsc --noEmit/npm test/ Playwright (only a one-line object entry and a list entry changed in.ts/.tsx); no screenshots of the Models & Keys screen were takenhigh/xhighuniversally; unknown ids use the existing OpenAI-vocabulary fallback)🤖 Generated with Claude Code