feat: add Atlas Cloud backend helper#1426
Open
binyangzhu000-sudo wants to merge 1 commit into
Open
Conversation
Assisted-by: OpenAI Codex Signed-off-by: binyangzhu000-sudo <224954946+binyangzhu000-sudo@users.noreply.github.com>
binyangzhu000-sudo
requested review from
AngeloDanducci,
jakelorocco and
planetf1
July 22, 2026 13:45
Contributor
|
@binyangzhu000-sudo thanks for the contribution. Looking at the change you made to use Atlas Cloud as the backend, it seems as if this should already work w today with OpenAIBackend by passing base_url="https://api.atlascloud.ai/v1" and api_key=... directly (or via OPENAI_BASE_URL / OPENAI_API_KEY). I don't have access though to try this myself. A new backend would make sense if it needs to implement new behaviour including there being limitations in the existing backends. Was there a particular reason you looked at adding a backend - for extra function now? plans for the future? bugs in existing backend? poor docs? |
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.
Pull Request
Issue
N/A
Description
Adds an Atlas Cloud OpenAI-compatible backend helper that reuses the existing
OpenAIBackendpath while applying Atlas Cloud defaults:AtlasCloudBackendandcreate_atlascloud_openai_backendATLASCLOUD_API_KEYfor auth, with optionalATLASCLOUD_API_BASE/ATLASCLOUD_BASE_URLoverrideshttps://api.atlascloud.ai/v1andqwen/qwen3.5-flashas defaultsatlascloud,atlas-cloud, andatlasbackend aliases forstart_backend/start_sessionatlascloudfor telemetry pathsTesting
Local validation:
uv run ruff format mellea/backends/atlascloud.py mellea/stdlib/start_backend.py mellea/stdlib/session.py test/backends/test_atlascloud.pyuv run pytest test/backends/test_atlascloud.py test/stdlib/test_session_unit.py -quv run ruff check mellea/backends/atlascloud.py mellea/stdlib/start_backend.py mellea/stdlib/session.py test/backends/test_atlascloud.py test/stdlib/test_session_unit.pygit diff --checkuv run python -m py_compile mellea/backends/atlascloud.py mellea/stdlib/start_backend.py mellea/stdlib/session.py test/backends/test_atlascloud.pyuv run mypy mellea/backends/atlascloud.py mellea/stdlib/start_backend.py mellea/stdlib/session.py test/backends/test_atlascloud.pyuv run python tooling/docs-autogen/build.pyuv run python tooling/docs-autogen/audit_coverage.py --docs-dir docs/docs/api --quality --fail-on-quality --threshold 100The Atlas Cloud model catalog was checked live before committing;
qwen/qwen3.5-flashanddeepseek-ai/deepseek-v4-prowere both present.Attribution
Adding a new component, requirement, sampling strategy, or tool?