Skip to content

Commit 0930fa6

Browse files
committed
chore(format): 优化代码格式和注释
1 parent 5ff228d commit 0930fa6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/core/segments/usage.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ use std::path::Path;
99
/// Returns 1M for Sonnet[1M] models, 200K for all others
1010
fn get_context_limit(model_name: &str) -> u32 {
1111
if model_name.contains("[1m]") {
12-
1_000_000 // 1M for Sonnet[1M] model
12+
1_000_000 // 1M for Sonnet[1M] model
1313
} else {
14-
200_000 // 200K default for all other models
14+
200_000 // 200K default for all other models
1515
}
1616
}
1717

@@ -32,7 +32,7 @@ impl Segment for UsageSegment {
3232
} else {
3333
parse_transcript_usage(&input.transcript_path)
3434
};
35-
35+
3636
// Use dynamic context limit based on model
3737
let context_limit = get_context_limit(&input.model.display_name);
3838
let context_used_rate = (context_used_token as f64 / context_limit as f64) * 100.0;

0 commit comments

Comments
 (0)