Repository navigation
fix(providers): update Anthropic default model to claude-sonnet-4-6 - #4687
Conversation
0f5e4f8 to
df390cf
Compare
Update the stale default model from claude-sonnet-4-20250514 to claude-sonnet-4-6 across the codebase: - AnthropicProvider.__init__ default_model parameter - docs/my-tool.md example output - skills/my/references/examples.md model references - tests/agent/tools/test_self_tool.py mock setup Fixes HKUDS#4675 Co-Authored-By: Claude <noreply@anthropic.com>
chengyongru
left a comment
There was a problem hiding this comment.
Automated PR review by nanobot. This is not a human maintainer review or approval.
I found one issue with the updated Anthropic default model ID.
| @@ -58,7 +58,7 @@ def __init__( | |||
| self, | |||
| api_key: str | None = None, | |||
| api_base: str | None = None, | |||
| default_model: str = "claude-sonnet-4-20250514", | |||
| default_model: str = "claude-sonnet-4-6-20250514", | |||
There was a problem hiding this comment.
The Anthropic model ID docs say Claude 4.6 and later use dateless canonical IDs, and list claude-sonnet-4-6 as the Claude API format. This new default keeps the old dated suffix pattern, so any config path that relies on AnthropicProvider's default would send claude-sonnet-4-6-20250514 upstream instead of the documented Sonnet 4.6 model ID. That turns the default-model refresh into a runtime model-not-found path for new Anthropic users.
Reference: https://docs.anthropic.com/en/docs/about-claude/models/model-ids-and-versions
|
官方文档特别说从 Claude 4.6 开始使用“无日期但仍是 pinned snapshot”的格式,修正 |
df390cf to
053cafe
Compare
Update the stale default model from claude-sonnet-4-20250514 to claude-sonnet-4-6 across the codebase:
Fixes #4675