We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1028d40 commit 7be20c0Copy full SHA for 7be20c0
1 file changed
src/core/segments/usage.rs
@@ -8,8 +8,8 @@ use std::path::Path;
8
/// Get context limit for a specific model
9
/// Returns 1M for Sonnet[1M] models, 200K for all others
10
fn get_context_limit(model_name: &str) -> u32 {
11
- if model_name.contains("[1m]") {
12
- 1_000_000 // 1M for Sonnet[1M] model
+ if model_name.contains("[1m]") || model_name.contains("1M token context") {
+ 1_000_000 // 1M for Sonnet[1M] models
13
} else {
14
200_000 // 200K default for all other models
15
}
0 commit comments