Skip to content

Add Atlas Cloud model provider support#1383

Open
binyangzhu000-sudo wants to merge 2 commits into
VoltAgent:mainfrom
binyangzhu000-sudo:codex/add-atlascloud-provider
Open

Add Atlas Cloud model provider support#1383
binyangzhu000-sudo wants to merge 2 commits into
VoltAgent:mainfrom
binyangzhu000-sudo:codex/add-atlascloud-provider

Conversation

@binyangzhu000-sudo

@binyangzhu000-sudo binyangzhu000-sudo commented Jul 18, 2026

Copy link
Copy Markdown

Summary

  • Add Atlas Cloud to the core model provider registry as an OpenAI-compatible provider using ATLASCLOUD_API_KEY, https://api.atlascloud.ai/v1, and the existing ATLASCLOUD_BASE_URL override convention.
  • Add Atlas Cloud to the create-voltagent-app provider selection with default model atlascloud/qwen/qwen3.5-flash.
  • Add focused registry/CLI coverage plus a changeset.

Validation

  • corepack pnpm install --frozen-lockfile --ignore-scripts (completed; warned about missing local volt bins because package dist files are not built during install)
  • corepack pnpm --filter @voltagent/internal build
  • corepack 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 typecheck
  • corepack pnpm --filter @voltagent/core build
  • corepack pnpm --filter create-voltagent-app build
  • corepack 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.ts
  • corepack pnpm exec prettier --check .changeset/atlascloud-provider.md
  • git diff --check
  • Atlas live model catalog returned 118 models and confirmed qwen/qwen3.5-flash and deepseek-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 model atlascloud/qwen/qwen3.5-flash using ATLASCLOUD_API_KEY.

  • New Features

    • Register atlascloud in @voltagent/core with https://api.atlascloud.ai/v1, ATLASCLOUD_API_KEY, and ATLASCLOUD_BASE_URL override.
    • Add Atlas Cloud to create-voltagent-app provider list; update types and CLI integration tests.
    • Add tests for provider registration, OpenAI-compatible adapter config (structured outputs), base URL override, and missing key error.
    • Include changeset for @voltagent/core and create-voltagent-app.
  • Bug Fixes

    • Fix Atlas Cloud provider test mocks to validate the adapter config.

Written for commit 933f42b. Summary will update on new commits.

Review in cubic

Summary by CodeRabbit

  • New Features
    • Added Atlas Cloud as an OpenAI-compatible AI model provider.
    • Updated the app creation CLI to include “Atlas Cloud” in the AI provider selection.
    • Added Atlas Cloud provider configuration (environment variable + model details) to the generated setup.
  • Bug Fixes
    • Improved Atlas Cloud validation for missing credentials, and support for overriding the base URL.
  • Chores
    • Released patch updates for the affected packages.

@changeset-bot

changeset-bot Bot commented Jul 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 933f42b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@voltagent/core Patch
create-voltagent-app Patch

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

@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Atlas 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.

Changes

Atlas Cloud provider support

Layer / File(s) Summary
Runtime provider registration and validation
packages/core/src/registries/model-provider-registry.ts, packages/core/src/registries/model-provider-registry-atlascloud.spec.ts
Registers Atlas Cloud with its package, API URL, environment variables, and documentation link; tests model resolution, base URL overrides, registration, and missing API keys.
CLI provider contract and selection
packages/create-voltagent-app/src/types.ts, packages/create-voltagent-app/src/cli.ts, packages/create-voltagent-app/src/cli.integration.spec.ts
Adds atlascloud to the provider type, configuration, prompt choices, and CLI option-matrix coverage.
Release metadata
.changeset/atlascloud-provider.md
Assigns patch releases to @voltagent/core and create-voltagent-app.

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
Loading
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers summary and validation, but it omits several required template sections like linked issues, current/new behavior, and the PR checklist. Add the missing template sections from the repository template: PR checklist, linked issue(s), current behavior, new behavior, issue reference, and reviewer notes.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
Title check ✅ Passed The title clearly matches the main change: adding Atlas Cloud model provider support.
✨ 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
Contributor

Choose a reason for hiding this comment

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

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

📥 Commits

Reviewing files that changed from the base of the PR and between 3377f6d and 7e35e12.

📒 Files selected for processing (6)
  • .changeset/atlascloud-provider.md
  • packages/core/src/registries/model-provider-registry-atlascloud.spec.ts
  • packages/core/src/registries/model-provider-registry.ts
  • packages/create-voltagent-app/src/cli.integration.spec.ts
  • packages/create-voltagent-app/src/cli.ts
  • packages/create-voltagent-app/src/types.ts

Comment thread packages/core/src/registries/model-provider-registry-atlascloud.spec.ts Outdated

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 6 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread packages/core/src/registries/model-provider-registry-atlascloud.spec.ts Outdated
@binyangzhu000-sudo

Copy link
Copy Markdown
Author

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

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.

1 participant