fix(providers): add claude-sonnet-5 to canonical model registry (#10183)

Co-authored-by: syf2211 <syf2211@users.noreply.github.com>
This commit is contained in:
石岳峰
2026-07-02 14:10:35 +08:00
committed by GitHub
parent 8cb6d4766c
commit dbc1f88ca7
5 changed files with 91 additions and 0 deletions
@@ -361,6 +361,7 @@ fn inferred_thinking_mode(canonical_id: &str) -> Option<ThinkingMode> {
"anthropic/claude-opus-4.7" => Some(ThinkingMode::Adaptive),
"anthropic/claude-opus-4.8" => Some(ThinkingMode::Adaptive),
"anthropic/claude-sonnet-4.6" => Some(ThinkingMode::Adaptive),
"anthropic/claude-sonnet-5" => Some(ThinkingMode::Adaptive),
_ => None,
}
}
+1
View File
@@ -37,6 +37,7 @@ pub const BEDROCK_DOC_LINK: &str =
pub const BEDROCK_DEFAULT_MODEL: &str = "us.anthropic.claude-sonnet-4-5-20250929-v1:0";
pub const BEDROCK_KNOWN_MODELS: &[&str] = &[
"global.anthropic.claude-sonnet-5",
"us.anthropic.claude-sonnet-4-5-20250929-v1:0",
"us.anthropic.claude-sonnet-4-20250514-v1:0",
"us.anthropic.claude-3-7-sonnet-20250219-v1:0",