- 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> |
||
|---|---|---|
| .. | ||
| src | ||
| index.html | ||
| package.json | ||
| postcss.config.js | ||
| tailwind.config.js | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||