LibreChat/api
Danny Avila a5f9ae3351 🩹 fix: Move Token-Config Resolution to TS; Key Live Usage by Created Convo
- extract the token-config resolution (override gathering + cache lookup +
  buildTokenConfigMap) into resolveTokenConfigMap in packages/api, leaving
  the /api controller a thin request-scoped wrapper (CLAUDE.md TS rule)
- getConvoKey prefers the user message's real conversationId once the
  `created` event stamps it, so a new chat's first-response live gauge and
  totals land under the id TokenUsage subscribes to instead of NEW_CONVO
2026-06-13 13:52:30 -04:00
..
app
cache
config
db
models
server 🩹 fix: Move Token-Config Resolution to TS; Key Live Usage by Created Convo 2026-06-13 13:52:30 -04:00
strategies
test
utils
jest.config.js
jsconfig.json
package.json
typedefs.js