Add Atlas Cloud model provider support#1383
Conversation
🦋 Changeset detectedLatest commit: 933f42b The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📝 WalkthroughWalkthroughAtlas Cloud is added as an OpenAI-compatible model provider, registered in core, exposed in the application creation CLI, covered by tests, and included in patch-release metadata. ChangesAtlas Cloud provider support
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant Application as create-voltagent-app CLI
participant Registry as ModelProviderRegistry
participant Adapter as createOpenAICompatible
Application->>Application: Select atlascloud provider
Application->>Registry: Resolve Atlas Cloud model
Registry->>Adapter: Create adapter with API key and base URL
Adapter-->>Registry: Return Atlas Cloud model
Registry-->>Application: Return resolved model
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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 `@packages/core/src/registries/model-provider-registry-atlascloud.spec.ts`:
- Around line 5-7: Update the `@voltagent/internal` mock in
model-provider-registry-atlascloud.spec.ts to reuse the actual module
implementation via vi.importActual instead of defining safeStringify with
JSON.stringify. Preserve any required mocked exports while ensuring no direct
JSON.stringify usage remains.
🪄 Autofix (Beta)
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: defaults
Review profile: CHILL
Plan: Pro
Run ID: b3a09c32-2207-49b3-9186-6345124ff347
📒 Files selected for processing (6)
.changeset/atlascloud-provider.mdpackages/core/src/registries/model-provider-registry-atlascloud.spec.tspackages/core/src/registries/model-provider-registry.tspackages/create-voltagent-app/src/cli.integration.spec.tspackages/create-voltagent-app/src/cli.tspackages/create-voltagent-app/src/types.ts
There was a problem hiding this comment.
All reported issues were addressed across 6 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
|
Pushed a follow-up commit addressing the review feedback:\n\n- Reused the real @voltagent/internal implementation in the test mock via vi.importActual instead of reimplementing safeStringify with JSON.stringify.\n- Removed ATLASCLOUD_API_KEY from process.env by rebuilding the env object for the missing-key test, avoiding Node's string "undefined" behavior while keeping Biome happy.\n\nValidation:\n\n- corepack pnpm --filter @voltagent/core exec vitest run src/registries/model-provider-registry-atlascloud.spec.ts (4 passed)\n- corepack pnpm exec biome check packages/core/src/registries/model-provider-registry-atlascloud.spec.ts\n- git diff --check |
Summary
ATLASCLOUD_API_KEY,https://api.atlascloud.ai/v1, and the existingATLASCLOUD_BASE_URLoverride convention.create-voltagent-appprovider selection with default modelatlascloud/qwen/qwen3.5-flash.Validation
corepack pnpm install --frozen-lockfile --ignore-scripts(completed; warned about missing localvoltbins because package dist files are not built during install)corepack pnpm --filter @voltagent/internal buildcorepack pnpm --filter @voltagent/core exec vitest run src/registries/model-provider-registry-atlascloud.spec.ts src/registries/model-provider-registry-minimax.spec.ts(12 passed)corepack pnpm --filter create-voltagent-app exec vitest run src/cli.integration.spec.ts(1 passed)corepack pnpm --filter @voltagent/core typecheckcorepack pnpm --filter @voltagent/core buildcorepack pnpm --filter create-voltagent-app buildcorepack pnpm exec biome check packages/core/src/registries/model-provider-registry.ts packages/core/src/registries/model-provider-registry-atlascloud.spec.ts packages/create-voltagent-app/src/types.ts packages/create-voltagent-app/src/cli.ts packages/create-voltagent-app/src/cli.integration.spec.tscorepack pnpm exec prettier --check .changeset/atlascloud-provider.mdgit diff --checkqwen/qwen3.5-flashanddeepseek-ai/deepseek-v4-pro.No README changes; no sponsor/logo/credits/partner promotion.
Summary by cubic
Adds Atlas Cloud as an OpenAI-compatible provider and makes it selectable in
create-voltagent-app. Users can choose Atlas Cloud with default modelatlascloud/qwen/qwen3.5-flashusingATLASCLOUD_API_KEY.New Features
atlascloudin@voltagent/corewithhttps://api.atlascloud.ai/v1,ATLASCLOUD_API_KEY, andATLASCLOUD_BASE_URLoverride.create-voltagent-appprovider list; update types and CLI integration tests.@voltagent/coreandcreate-voltagent-app.Bug Fixes
Written for commit 933f42b. Summary will update on new commits.
Summary by CodeRabbit