Skip to content

feat(provider): add Atlas Cloud support - #92

Merged
jrswab merged 2 commits into
jrswab:masterfrom
binyangzhu000-sudo:codex/atlascloud-provider
Sep 15, 2026
Merged

jrswab merged 2 commits into
jrswab:masterfrom
binyangzhu000-sudo:codex/atlascloud-provider

Conversation

@binyangzhu000-sudo

@binyangzhu000-sudo binyangzhu000-sudo commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add Atlas Cloud as a first-class provider backed by the existing OpenAI-compatible implementation
  • resolve ATLASCLOUD_API_KEY and support config or AXE_ATLASCLOUD_BASE_URL overrides
  • document the provider and cover registry, configuration, default endpoint, and streaming behavior

Testing

  • go test -race ./...
  • go vet ./...
  • go build ./...
  • golangci-lint run (v2.8.0, 0 issues)
  • live streaming run with atlascloud/qwen/qwen3.8-max returned the expected response

Summary

This update adds Atlas Cloud as an OpenAI-compatible provider. It supports API key resolution, custom base URLs, streaming, registry integration, tests, and documentation.

Added

  • Atlas Cloud provider with default and custom base URL support.
  • ATLASCLOUD_API_KEY configuration mapping.
  • Atlas Cloud registry and streaming support.
  • Tests for provider creation, validation, configuration, and streaming.
  • Documentation and an unreleased changelog entry.

Changed

  • Unsupported-provider messages now include atlascloud.
  • README now documents Atlas Cloud configuration and model naming.
  • Test coverage now includes Atlas Cloud provider behavior.

Signed-off-by: binyangzhu000-sudo <224954946+binyangzhu000-sudo@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 6f2c5a3e-f442-4df3-9acf-ccfe57d889e0

📥 Commits

Reviewing files that changed from the base of the PR and between 594e722 and dde2f3b.

📒 Files selected for processing (4)
  • internal/config/config_test.go
  • internal/provider/atlascloud.go
  • internal/provider/atlascloud_test.go
  • internal/provider/registry_test.go
🚧 Files skipped from review as they are similar to previous changes (3)
  • internal/provider/registry_test.go
  • internal/provider/atlascloud_test.go
  • internal/config/config_test.go

Included review availability: Your plan includes up to 4 reviews per rolling hour; 3 remain after this review.


📝 Walkthrough

Walkthrough

Adds Atlas Cloud support through the OpenAI-compatible Chat Completions API. The change adds provider construction, registry dispatch, API-key configuration, tests, README details, and an unreleased changelog entry.

Changes

Atlas Cloud provider integration

Layer / File(s) Summary
Atlas Cloud provider construction
internal/provider/atlascloud.go, internal/provider/atlascloud_test.go
Adds the AtlasCloud provider with a default endpoint, custom base URL support, API-key validation, initialization error handling, and streaming support tests.
Provider registry wiring
internal/provider/registry.go, internal/provider/registry_test.go, cmd/run_test.go
Registers atlascloud, routes construction through NewAtlasCloud, and updates supported-provider lists and error expectations.
Provider configuration and documentation
internal/config/config.go, internal/config/config_test.go, README.md, CHANGELOG.md
Maps Atlas Cloud to ATLASCLOUD_API_KEY, tests the mapping, documents the endpoint and model format, and records the unreleased provider addition.

Estimated code review effort: 2 (Simple) | ~15 minutes

Merge Risk: ⚪ Minimal · up to dde2f

This change adds Atlas Cloud support with configuration, endpoint, registry, documentation, and streaming updates; no actionable merge-blocking risk remains after normal checks and review.

Poem

Atlas joins the provider stream,
With keys and endpoints set to gleam.
The registry knows its name,
Tests keep each path the same.
Cloud calls flow like a dream.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely identifies the main change: adding Atlas Cloud provider support.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@internal/provider/atlascloud_test.go`:
- Around line 5-40: Convert the independent Atlas Cloud cases in
internal/provider/atlascloud_test.go:5-40 into table-driven []struct{name,
input, want} tests covering constructor defaults, custom configuration, missing
API keys, and streaming support; combine the default and custom base-URL cases
into a table in internal/provider/registry_test.go:18-36; and add the Atlas
Cloud provider-to-environment-variable mapping as a row in the existing table in
internal/config/config_test.go:249-251.

In `@internal/provider/atlascloud.go`:
- Around line 16-18: Update the NewAtlasCloud error path around NewOpenAI to
detect a missing API key and return an input-category ProviderError with
guidance to set ATLASCLOUD_API_KEY, while preserving existing handling for other
initialization errors. Extend TestNewAtlasCloud_MissingAPIKey to assert both the
ProviderError category and the guidance message.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 0e3a4902-e539-4d36-a34c-b9a886a22900

📥 Commits

Reviewing files that changed from the base of the PR and between f199404 and 594e722.

⛔ Files ignored due to path filters (1)
  • docs/src/providers.md is excluded by !docs/**
📒 Files selected for processing (9)
  • CHANGELOG.md
  • README.md
  • cmd/run_test.go
  • internal/config/config.go
  • internal/config/config_test.go
  • internal/provider/atlascloud.go
  • internal/provider/atlascloud_test.go
  • internal/provider/registry.go
  • internal/provider/registry_test.go

Comment thread internal/provider/atlascloud_test.go Outdated
Comment thread internal/provider/atlascloud.go
Signed-off-by: binyangzhu000-sudo <142146267+binyangzhu000-sudo@users.noreply.github.com>
@jrswab
jrswab merged commit 9c4089d into jrswab:master Sep 15, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants