Commit graph

6 commits

Author SHA1 Message Date
Marco Beretta
9ff227a5b2
refactor: remove type re-exports from @librechat/api tokens
Update all imports of TokenConfig and EndpointTokenConfig to import
directly from librechat-data-provider instead of re-exporting through
packages/api/src/types/tokens.ts. Remove the now-unnecessary re-export
file and its barrel export.
2026-02-08 17:36:44 +01:00
Marco Beretta
f79a37728b
refactor: revert changes made to token logic 2026-02-07 15:59:06 +01:00
Marco Beretta
10131363f0
feat: improve pattern matching in findMatchingPattern function for more specific model name matches 2026-02-07 15:51:14 +01:00
Marco Beretta
ec430581d1
feat: enhance token usage visualization and matching logic in TokenUsageIndicator and tokens module 2026-02-07 15:51:14 +01:00
Marco Beretta
339b7e0105
📝 chore: Restore comments to tokens.ts 2026-02-07 15:50:53 +01:00
Marco Beretta
30a17b1ed7
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
2026-02-07 15:50:51 +01:00