fix: remove debug context window size from footer
This commit is contained in:
@@ -50,8 +50,7 @@ export class FooterComponent {
|
|||||||
lastAssistantMessage.usage.cacheWrite
|
lastAssistantMessage.usage.cacheWrite
|
||||||
: 0;
|
: 0;
|
||||||
const contextWindow = this.state.model.contextWindow;
|
const contextWindow = this.state.model.contextWindow;
|
||||||
const contextPercent =
|
const contextPercent = contextWindow > 0 ? ((contextTokens / contextWindow) * 100).toFixed(1) : "0.0";
|
||||||
contextWindow > 0 ? `${((contextTokens / contextWindow) * 100).toFixed(1)}% (${contextWindow})` : "0.0%";
|
|
||||||
|
|
||||||
// Format token counts (similar to web-ui)
|
// Format token counts (similar to web-ui)
|
||||||
const formatTokens = (count: number): string => {
|
const formatTokens = (count: number): string => {
|
||||||
|
|||||||
Reference in New Issue
Block a user