mirror of
https://github.com/HeyPuter/puter.git
synced 2026-10-03 10:27:48 +00:00
Usage/cost tracking per user was over-fitted to LLM/AI services. This commit adds CostService and updates AIChatService to use that instead of updating the `ai_usage` table. The `ai_usage` table is now considered deprecated. A service called PermissiveCreditService is enabled by default in SelfHostedModule. This is so users who host their own Puter instances don't have to worry about usage limits, since they're providing their own keys anyway.