fix: update default claude model to claude-sonnet-4-6#241
Open
fix: update default claude model to claude-sonnet-4-6#241
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Update the hardcoded default Claude model from
claude-sonnet-4-20250514toclaude-sonnet-4-6across all four locations where it appears:CLI/src/core/anthropic.tsDEFAULT_MODELconstantCLI/src/core/pipeline.tsexecuteRun()claw-pipeline/constants/openclaw.tsMODEL_PROVIDERS.claude.defaultModelCLI/src/core/anthropic.test.tsWhy
claude-sonnet-4-20250514is the original Claude 4 Sonnet (May 2025).claude-sonnet-4-6is 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 passnpm run type-check:cli— no TypeScript errors🤖 Generated with Claude Code