Skip to main content

format_token_count

Function format_token_count 

Source
pub fn format_token_count(tokens: usize) -> String
Expand description

Format a token count with a compact decimal suffix for transcript labels.

Counts below one thousand stay exact. Larger counts are rounded to one decimal place using k, M, or B suffixes.