iconsulting/packages
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
..
admin-client fix(conversation): improve token tracking accuracy 2026-01-25 17:23:25 -08:00
services fix(conversation): improve token tracking accuracy 2026-01-25 17:23:25 -08:00
shared Initial commit: iConsulting 香港移民咨询智能客服系统 2026-01-09 00:01:12 -08:00
web-client fix(chat): align input area elements vertically centered 2026-01-10 06:49:20 -08:00