Commit Graph

524 Commits

Author SHA1 Message Date
decolua
f46ff42cb3 refactor: streamline provider interactions and enhance error handling 2026-01-11 21:45:01 +07:00
Catalin Stanciu
f302c88dfb feat(ui): add cost tracking to usage dashboard and pricing settings
- Add toggle view (Tokens/Costs) to UsageStats component
- Display cost breakdown in usage tables
- Add Total Cost card combined with Total Output Tokens
- Create PricingModal component for editing rates
- Create Pricing Settings page

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-09 17:49:59 +07:00
Catalin Stanciu
a36afaa85e feat(usage): implement cost tracking backend and pricing configuration
- Add pricing constants with default rates for all providers
- Update localDb to support pricing configuration schema
- Add cost calculation logic to usageDb
- Add pricing management API endpoints
- Fix provider alias mapping for accurate cost lookups

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-09 17:48:42 +07:00
Catalin Stanciu
3ad2f8dc58 fix: prevent race conditions in sticky round-robin
Adds a mutex to serialize account selection and updates in the
proxy engine. This ensures that concurrent requests respect the
sticky limit and don't distribute to the same account simultaneously.

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-09 17:46:52 +07:00
Catalin Stanciu
4f292aae63 feat: add sticky round-robin routing strategy
Implements a "sticky" round-robin strategy that uses the same provider
account for a configurable number of consecutive calls (default 3)
before switching to the next one. This optimizes for prompt caching
by reducing organization/account rotation. Adds a configuration input
to the Profile settings page.

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-09 17:45:32 +07:00
Catalin Stanciu
f2abcc6585 feat: implement provider connection reordering on create, update, and delete 2026-01-09 17:42:53 +07:00
Catalin Stanciu
ed796d2724 feat: add enable/disable toggle for provider connections
Implements an isActive toggle in the ProviderDetailPage that allows users
to enable or disable specific provider connections. Updates the UI to
provide visual feedback for disabled connections.

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-09 17:41:30 +07:00
decolua
e4769070b3 feat: add request logging functionality and usage metrics display 2026-01-09 17:40:59 +07:00
Catalin Stanciu
e4f92cd104 feat: implement request tracking and enhance usage stats display 2026-01-09 17:37:10 +07:00
Catalin Stanciu
7f71916f9e fix: improve code formatting and reduce auto-refresh interval 2026-01-09 17:35:28 +07:00
decolua
23cfb19459 feat: add password change functionality and dependencies 2026-01-09 17:29:11 +07:00
Catalin Stanciu
bf6e09bb6f feat: enhance usage stats with sortable columns and improved data handling 2026-01-09 17:26:50 +07:00
Catalin Stanciu
9ebd7d3062 feat: add round-robin routing strategy
Implements a round-robin (least recently used) account selection strategy
alongside the existing fill-first priority system. Adds a toggle in the
Profile dashboard to switch between strategies.

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-09 17:25:28 +07:00
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
decolua
5645d0a0fb fix(gemini): improve base64 image data parsing 2026-01-09 17:17:08 +07:00
decolua
18533505ef refactor: restructure translator from from-openai/to-openai to request/response folders 2026-01-09 17:14:51 +07:00
decolua
23181afb63 ReadMe 2026-01-05 15:55:56 +07:00
decolua
eb4c7093a4 Redirect to /dashboard 2026-01-05 11:07:43 +07:00
decolua
b0e2eb2b4b Remove prepare-standalone.js script as it is no longer needed for the build process. 2026-01-05 11:04:44 +07:00
decolua
c9a7db74d5 Update README.md 2026-01-05 11:03:29 +07:00
decolua
0ea417a331 Update README.md to correct image path and reorder installation instructions for clarity 2026-01-05 11:00:32 +07:00
decolua
f0698eee9d 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
decolua
e35421beb1 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
decolua
3857598de4 Initial commit 2026-01-05 09:58:59 +07:00