Repository navigation
fix(create-voltagent-app): replace retired default models - #1462
pcbeingused333 wants to merge 1 commit into
Conversation
New projects created with the Anthropic or Google provider defaulted to anthropic/claude-3-5-sonnet and google/gemini-2.0-flash. Both models are shut down (Claude 3.5 Sonnet on 2025-10-28, Gemini 2.0 Flash on 2026-06-01), so the generated agent fails on its first request. Use the replacements from the providers' deprecation pages, claude-sonnet-5-5 and gemini-3.6-flash. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 63583b5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Repo: VoltAgent/voltagent
create-voltagent-appwritesAI_PROVIDER_CONFIG[provider].modelinto the generatedsrc/index.ts. Two of those defaults point to models the providers have shut down, so a new project fails on its first request:anthropic/claude-3-5-sonnetanthropic/claude-sonnet-5-5google/gemini-2.0-flashgoogle/gemini-3.6-flashThe replacements are the ones those pages list. The
modelNamelabels shown in the provider prompt are updated to match.With
@voltagent/corefrom npm and a real Gemini API key,new Agent({ model }).generateText(...)gives:google/gemini-2.0-flash:This model models/gemini-2.0-flash is no longer available. Please update your code to use ...google/gemini-3.6-flash: returns text.The Anthropic change wasn't run against the API; it's based on the deprecation page. Agents don't set
temperatureby default, so Sonnet 5.5's restriction on sampling parameters doesn't apply to the generated project.vitest runinpackages/create-voltagent-apppasses. The CLI matrix test readsAI_PROVIDER_CONFIG, so it covers the new IDs. A changeset is included.🤖 Generated with Claude Code
Summary by cubic
Replaces the retired default models in
create-voltagent-appso new projects stop failing on their first request.anthropic/claude-3-5-sonnetandgoogle/gemini-2.0-flashare shut down, so generated projects now useanthropic/claude-sonnet-5-5andgoogle/gemini-3.6-flashfrom the providers' deprecation pages, and themodelNameprompts are updated to match.A changeset is included and
vitest runpasses; the CLI matrix test covers the new IDs since it readsAI_PROVIDER_CONFIG. The Gemini swap was verified against the API, while the Anthropic swap is based on the deprecation page. Agents don't settemperatureby default, so Sonnet 5.5's sampling restrictions don't affect generated projects.Written for commit 63583b5. Summary will update on new commits.
Summary by CodeRabbit