Skip to content

Commit 5ee878f

Browse files
Update web/src/components/chat/TokenCounter.tsx
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 79c441e commit 5ee878f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/components/chat/TokenCounter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ export const TokenCounter: React.FC<TokenCounterProps> = ({
8181
</div>
8282
<div className="border-t pt-1 mt-2">
8383
<div className="text-neutral-600 dark:text-neutral-300 font-medium">Context Usage:</div>
84-
<div>Current: {sessionUsage.contextTotalTokens.toLocaleString()}</div>
85-
<div>Max: {maxTokens.toLocaleString()} ({tokenPercentage.toFixed(1)}% used)</div>
84+
<div>Current: {formatNumber(sessionUsage.contextTotalTokens)}</div>
85+
<div>Max: {formatNumber(maxTokens)} ({tokenPercentage.toFixed(1)}% used)</div>
8686
</div>
8787
{currentModel && (
8888
<div className="text-neutral-400 mt-1">

0 commit comments

Comments
 (0)