-
-
Context Window
- {usage.maxTokens !== null && usedPercentage ? (
-
- {usedPercentage}
- ·
-
- {formatContextWindowTokens(usage.usedTokens)}/
- {formatContextWindowTokens(usage.maxTokens ?? null)}
-
-
- ) : (
-
- {formatContextWindowTokens(usage.usedTokens)}
-
- )}
-
- {usage.maxTokens !== null ? (
-
- ) : null}
- {showTotalProcessed ? (
-
- Total processed
-
- {formatContextWindowTokens(totalProcessedTokens)}
-
-
- ) : null}
- {usage.cost != null ? (
-
- Cost
-
- {formatContextWindowCost(usage.cost)}
-
-
- ) : null}
- {usage.compactsAutomatically ? (
-
- {formatContextWindowCompactionMessage(modelDisplayName, usage.autoCompactThreshold)}
-
- ) : null}
- {onCompact ? (
- <>
-
- {compactDisabled && compactDisabledReason ? (
-
- {compactDisabledReason}
-
- ) : null}
- >
- ) : null}
-
-