Skip to content

fix: update default claude model to claude-sonnet-4-6#241

Open
0xAxiom wants to merge 1 commit intomainfrom
fix/update-default-claude-model-to-sonnet-4-6
Open

fix: update default claude model to claude-sonnet-4-6#241
0xAxiom wants to merge 1 commit intomainfrom
fix/update-default-claude-model-to-sonnet-4-6

Conversation

@0xAxiom
Copy link
Copy Markdown
Owner

@0xAxiom 0xAxiom commented Apr 30, 2026

What

Update the hardcoded default Claude model from claude-sonnet-4-20250514 to claude-sonnet-4-6 across all four locations where it appears:

File Change
CLI/src/core/anthropic.ts DEFAULT_MODEL constant
CLI/src/core/pipeline.ts Two fallback references in executeRun()
claw-pipeline/constants/openclaw.ts MODEL_PROVIDERS.claude.defaultModel
CLI/src/core/anthropic.test.ts Test expectation updated to match

Why

claude-sonnet-4-20250514 is the original Claude 4 Sonnet (May 2025). claude-sonnet-4-6 is the current generation — better performance and lower latency. PR #237 upgrades the Anthropic SDK but leaves the default model name stale. This is a separate, focused change targeting only the model string.

Tested

  • npm test — 252/252 tests pass
  • npm run type-check:cli — no TypeScript errors

🤖 Generated with Claude Code

Replace stale `claude-sonnet-4-20250514` with `claude-sonnet-4-6` in
all default-model references:
- CLI/src/core/anthropic.ts (DEFAULT_MODEL constant)
- CLI/src/core/pipeline.ts (two fallback references)
- claw-pipeline/constants/openclaw.ts (MODEL_PROVIDERS default)
- CLI/src/core/anthropic.test.ts (test expectation updated to match)

All 252 tests pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@0xAxiom 0xAxiom requested a review from MeltedMindz as a code owner April 30, 2026 22:05
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