feat: Add token usage indicator to chat input

Add TokenUsageIndicator component with circular progress ring
Create useTokenUsage hook with Jotai atom for state
Add model context window lookups to data-provider
Consolidate token utilities (output limits, TOKEN_DEFAULTS)
Display input/output tokens and percentage of context used
This commit is contained in:
Marco Beretta 2025-12-14 00:36:45 +01:00
parent dc489e7b25
commit af2958fcba
No known key found for this signature in database
GPG key ID: D918033D8E74CC11
11 changed files with 710 additions and 32 deletions

View file

@ -47,3 +47,5 @@ export { default as createPayload } from './createPayload';
/* feedback */
export * from './feedback';
export * from './parameterSettings';
/* token limits */
export * from './tokens';