Skip to content

Commit f872314

Browse files
chore: update default model to sonnet 3.7 (#374)
1 parent fca708a commit f872314

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

crates/chat-cli/src/cli/chat/cli/model.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use crate::cli::chat::{
1414
ChatSession,
1515
ChatState,
1616
};
17-
use crate::os::Os;
1817

1918
pub struct ModelOption {
2019
pub name: &'static str,
@@ -99,9 +98,6 @@ impl ModelArgs {
9998
}
10099

101100
/// Currently, Sonnet 4 is set as the default model for non-FRA users.
102-
pub fn default_model_id(os: &Os) -> &'static str {
103-
match os.database.get_auth_profile() {
104-
Ok(Some(profile)) if profile.arn.split(':').nth(3) == Some("eu-central-1") => "CLAUDE_3_7_SONNET_20250219_V1_0",
105-
_ => "CLAUDE_SONNET_4_20250514_V1_0",
106-
}
101+
pub fn default_model_id() -> &'static str {
102+
"CLAUDE_3_7_SONNET_20250219_V1_0"
107103
}

crates/chat-cli/src/cli/chat/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ impl ChatSession {
536536
.map(|opt| opt.model_id.to_owned())
537537
})
538538
})
539-
.unwrap_or_else(|| default_model_id(os).to_owned());
539+
.unwrap_or_else(|| default_model_id().to_owned());
540540

541541
// Reload prior conversation
542542
let mut existing_conversation = false;

0 commit comments

Comments
 (0)