-
Notifications
You must be signed in to change notification settings - Fork 438
feat: add Atlas Cloud provider #3962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
binyangzhu000-sudo
wants to merge
3
commits into
docker:main
Choose a base branch
from
binyangzhu000-sudo:codex/add-atlas-cloud-provider
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| --- | ||
| title: "Atlas Cloud" | ||
| description: "Use Atlas Cloud models with Docker Agent." | ||
| keywords: docker agent, ai agents, model providers, llm, atlas cloud | ||
| weight: 25 | ||
| canonical: https://docs.docker.com/ai/docker-agent/providers/atlascloud/ | ||
| --- | ||
|
|
||
| _Use Atlas Cloud models with Docker Agent._ | ||
|
|
||
| ## Overview | ||
|
|
||
| Atlas Cloud provides access to multiple model families through an OpenAI-compatible API. Docker Agent includes built-in support for Atlas Cloud as an alias provider. | ||
|
|
||
| ## Setup | ||
|
|
||
| 1. [Create an Atlas Cloud API key](https://www.atlascloud.ai/docs/api-keys) | ||
| 2. Set the environment variable: | ||
|
|
||
| ```bash | ||
| export ATLASCLOUD_API_KEY=your-api-key | ||
| ``` | ||
|
|
||
| ## Usage | ||
|
|
||
| ### Inline Syntax | ||
|
|
||
| Use an Atlas Cloud model by prefixing its model ID with `atlascloud/`: | ||
|
|
||
| ```yaml | ||
| agents: | ||
| root: | ||
| model: atlascloud/qwen/qwen3.8-max | ||
| description: Assistant using Atlas Cloud | ||
| instruction: You are a helpful assistant. | ||
| ``` | ||
|
|
||
| Docker Agent splits only the first slash, so model IDs that include a model family prefix are preserved. | ||
|
|
||
| ### Named Model | ||
|
|
||
| For more control over parameters: | ||
|
|
||
| ```yaml | ||
| models: | ||
| atlas_qwen: | ||
| provider: atlascloud | ||
| model: qwen/qwen3.8-max | ||
| temperature: 0.7 | ||
| max_tokens: 8192 | ||
|
|
||
| agents: | ||
| root: | ||
| model: atlas_qwen | ||
| description: Assistant using Atlas Cloud | ||
| instruction: You are a helpful assistant. | ||
| ``` | ||
|
|
||
| ## How It Works | ||
|
|
||
| Atlas Cloud is implemented as a built-in alias in Docker Agent: | ||
|
|
||
| - **API Type:** OpenAI-compatible (`openai`) | ||
| - **Base URL:** `https://api.atlascloud.ai/v1` | ||
| - **Token Variable:** `ATLASCLOUD_API_KEY` |
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
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the existence of
qwen/qwen3.8-maxin the Atlas Cloud catalog be confirmed (catalog link or output of the live smoke test mentioned in the PR description)? Two concerns:ATLASCLOUD_API_KEYset gets a broken first run.atlascloudprovider nor anyqwen3.8-maxentry exists inpkg/modelsdev/snapshot.json, so capability lookup falls back to text-only with a warning. A "-max" model is also unusual for an open-model host (the-maxline is API-only, not open weights), which is worth double-checking against theopenModelHostProvidersclassification.If the ID changes, the two examples in
docs/providers/atlascloud/index.md(atlascloud/qwen/qwen3.8-maxandmodel: qwen/qwen3.8-max) and the assertions inpkg/config/auto_test.goandpkg/model/provider/openai_alias_providers_test.gomust be updated in sync.