librechat-analytics/services
DJP 31358a8b86 fix: Repair Top Agents tab after LibreChat transaction shape change
LibreChat stopped tagging agent transactions with model: agent_xxx around
2026-03; new agent transactions record the underlying LLM and link to the
message via messageId. Aggregate from messages -> transactions and union
with the legacy path so historical and current data both show.

Also create createdAt / messageId / (createdAt, model) indexes on startup.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 17:08:26 -04:00
..
analytics.js fix: Repair Top Agents tab after LibreChat transaction shape change 2026-04-28 17:08:26 -04:00