Skip to content

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

Closed
0xAxiom wants to merge 1 commit into
mainfrom
fix/update-default-claude-model-to-sonnet-4-6
Closed

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

Conversation

@0xAxiom

@0xAxiom 0xAxiom commented Apr 30, 2026

Copy link
Copy Markdown
Owner

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
@0xAxiom

0xAxiom commented May 18, 2026

Copy link
Copy Markdown
Owner Author

Closing — switching to direct-to-main workflow for this repo. Branch preserved if cherry-pick needed.

@0xAxiom 0xAxiom closed this May 18, 2026
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