iconsulting/packages/services
hailin 7acdf78e0c fix(conversation): improve token tracking accuracy
- Add 'error' chunk type to StreamChunk for partial token capture
- Record partial tokens to token_usage table even on API errors
- Capture error chunk tokens in conversation.service.ts
- Save partial response and tokens before re-throwing errors
- Add token aggregation from token_usage table for accurate stats
- Display detailed token info in admin (cache tokens, cost, API calls)
- Export TokenDetails type for frontend consumption

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 17:23:25 -08:00
..
conversation-service fix(conversation): improve token tracking accuracy 2026-01-25 17:23:25 -08:00
evolution-service fix(audit): reorder routes to fix NestJS route collision 2026-01-25 08:40:56 -08:00
file-service fix(orm): add explicit PostgreSQL column types for all ORM entities 2026-01-25 02:14:07 -08:00
knowledge-service fix(orm): add explicit PostgreSQL column types for all ORM entities 2026-01-25 02:14:07 -08:00
payment-service feat(payment): add transaction reliability and idempotency support 2026-01-25 07:00:01 -08:00
user-service fix(user-service): add jsonwebtoken dependency for admin auth 2026-01-25 09:02:30 -08:00