Commit Graph
34 Commits
Author SHA1 Message Date
Shroominic 924f93c18d fiiixXXXXXX 2025-11-14 19:42:20 +08:00
Shroominic 7c2ac805c8 fix calculate_usd_max_costs 2025-11-14 17:09:50 +08:00
Shroominic 50c43e9b07 fix vision prompt discounted max_cost calculation 2025-11-13 16:47:26 +08:00
Shroominic b7e4fbf739 fix model alias problem for anthropic 2025-11-11 12:43:02 +08:00
9qeklajc 74480df47d different check 2025-11-04 23:48:24 +01:00
9qeklajc 88fbefbd18 fmt 2025-11-04 23:29:07 +01:00
9qeklajc 1b6188b130 better model update 2025-11-02 23:42:18 +01:00
Shroominic 62305c3416 error handling in price updates 2025-10-27 12:37:10 +08:00
Shroominic dc0f7d7f3b fix max_cost discount 2025-10-22 11:54:17 +08:00
Shroominic 0da08fb945 refactor pricing, provider fees, realtime model map updates 2025-10-20 12:45:02 +08:00
Shroominic 61a0559f8e Add upstream providers management and model integration
- Created migration scripts to establish the `upstream_providers` table and integrate it with the `models` table.
- Enhanced the proxy functionality to support dynamic upstream provider initialization and model resolution.
- Implemented API endpoints for managing upstream providers, including CRUD operations and model fetching.
- Refactored pricing calculations to accommodate upstream provider overrides and ensure accurate cost estimation.
- Updated the admin interface to allow for easy management of upstream providers and their associated models.
2025-10-13 17:17:54 +08:00
Shroominic f657859249 refactor upstream functions into UpstreamProvider class 2025-10-04 17:38:00 +08:00
Shroominic 54d7a5a247 fix periodic payouts 2025-09-22 17:54:28 +01:00
Shroominic 8e0ae6cbc8 filter out openrouter spam models 2025-09-22 13:46:07 +01:00
Shroominic c5289364e4 models admin dashboard 2025-09-22 12:47:39 +01:00
Shroominic c8f4e7d3e5 fix max-tokens coming in as string 2025-09-16 13:00:38 +01:00
Shroominic 4cdbf23ec0 fixes 2025-09-10 13:28:48 +01:00
Shroominic 73d3613301 move MODELS to DB 2025-09-10 13:28:43 +01:00
Shroominic 6d1525748d fix tests 2025-09-09 18:27:48 +01:00
Shroominic 2e42af61bb rm tolerance percentage args 2025-09-09 14:00:39 +01:00
Shroominic 7dfc2f4056 max cost discount 2025-09-09 13:58:52 +01:00
Shroominic be372c48ea refactor(settings): remove NIP-91 fields; keep relays under discovery; drop openrouter_base_url 2025-09-08 12:24:32 +01:00
Shroominic db2c6eb98a refactor(payment): switch to settings-based pricing and upstream config; support fixed vs model pricing 2025-09-08 10:52:47 +01:00
Shroominic 207cafe285 azure openai compatibility 2025-09-04 15:29:06 +01:00
Cursor Agentanddb2002dominic 5061d69f57 Replace print statements with structured logging across multiple files
Co-authored-by: db2002dominic <db2002dominic@gmail.com>
2025-08-23 20:04:19 +00:00
Shroominic 6a746eb3df add max cost tolerance 2025-08-23 16:54:00 -03:00
Shroominic d7e35887de fix max_cost race contition when price changes 2025-08-22 17:22:48 -03:00
Shroominic 71dbbe44dd change /models to include_in_schema=False 2025-08-17 16:57:39 -03:00
Shroominic 150918c5a7 refactor wallet, periodic payouts and LNURL payments 2025-08-15 16:50:30 -03:00
Shroominic 9f89e0485e add LNURL helpers 2025-08-15 16:49:04 -03:00
Shroominic eeb458f8fe feat: enhance logging in payment processing modules
- Add comprehensive logging for cost calculations and pricing
- Log token validation with secure previews (first 20 chars)
- Add detailed logging for X-Cashu token processing flow
- Implement specific error categorization for CASHU errors
- Add logging for streaming response handling and usage extraction
- Log refund processing with retry attempts
- Track header modifications in upstream requests
- Include request IDs in error responses
2025-08-12 15:29:30 -03:00
Shroominic 5173e0f133 convert prints to logging 2025-08-12 15:02:15 -03:00
Shroominic a87793b395 Merge remote-tracking branch 'origin/main' into chdir-router-routstr 2025-08-10 22:02:16 -03:00
Shroominic 503e861621 change dir 'router' -> 'routstr' 2025-08-09 14:55:26 -03:00