botserver/web
Rodrigo Rodriguez (Pragmatismo) 82aa3e8d36 Implement token-based context usage in chat UI
- Replace simple message count with token-based calculation
- Add token estimation function (4 chars ≈ 1 token)
- Set MAX_TOKENS to 5000 and MIN_DISPLAY_PERCENTAGE to 20
- Update context usage display to show token count percentage
- Track tokens for both user and assistant messages
- Handle server-provided context usage as ratio of MAX_TOKENS
2025-10-23 16:33:23 -03:00
..
static - New web assets for 6.0.5. 2025-10-20 23:44:47 -03:00
index.html Implement token-based context usage in chat UI 2025-10-23 16:33:23 -03:00