We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ff228d commit 0930fa6Copy full SHA for 0930fa6
1 file changed
src/core/segments/usage.rs
@@ -9,9 +9,9 @@ use std::path::Path;
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
+ 1_000_000 // 1M for Sonnet[1M] model
13
} else {
14
- 200_000 // 200K default for all other models
+ 200_000 // 200K default for all other models
15
}
16
17
@@ -32,7 +32,7 @@ impl Segment for UsageSegment {
32
33
parse_transcript_usage(&input.transcript_path)
34
};
35
-
+
36
// Use dynamic context limit based on model
37
let context_limit = get_context_limit(&input.model.display_name);
38
let context_used_rate = (context_used_token as f64 / context_limit as f64) * 100.0;
0 commit comments