9router/open-sse/utils
Catalin Stanciu 9c3d6f4ad8 feat: implement usage tracking for AI requests
Adds local token usage tracking for all AI providers. Usage data is
captured during stream processing and stored in a local database.
Includes a new Usage tab in the Providers dashboard to visualize
historical token consumption.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-09 17:23:28 +07:00
..
bypassHandler.js refactor: restructure translator from from-openai/to-openai to request/response folders 2026-01-09 17:14:51 +07:00
error.js Refactor error handling in chatCore.js and update formatProviderError function to include status code. This improves error message clarity by incorporating HTTP status codes in the formatted output. 2026-01-05 10:57:45 +07:00
ollamaTransform.js Update jsconfig.json and package.json to correct open-sse path references from relative to local directory. 2026-01-05 10:37:09 +07:00
requestLogger.js Update jsconfig.json and package.json to correct open-sse path references from relative to local directory. 2026-01-05 10:37:09 +07:00
stream.js feat: implement usage tracking for AI requests 2026-01-09 17:23:28 +07:00
streamHandler.js refactor: restructure translator from from-openai/to-openai to request/response folders 2026-01-09 17:14:51 +07:00