diff --git a/hive-ag3nt/assets/app.js b/hive-ag3nt/assets/app.js index 7ada71e..b75f737 100644 --- a/hive-ag3nt/assets/app.js +++ b/hive-ag3nt/assets/app.js @@ -535,7 +535,11 @@ if (!el_) return; if (!u) { el_.hidden = true; return; } const ctx = u.input_tokens + u.cache_read_input_tokens + u.cache_creation_input_tokens; - const fmt = (n) => n >= 1000 ? Math.round(n / 1000) + 'k' : String(n); + const fmt = (n) => { + if (n >= 1_000_000) return (n / 1_000_000).toFixed(1).replace('.', ',') + 'M'; + if (n >= 1_000) return Math.round(n / 1000) + 'k'; + return String(n); + }; el_.hidden = false; el_.title = [ 'context window in use',