Files
oak-gpui/crates
f861479890 collab: Update billing code for LLM usage billing (#18879)
This PR reworks our existing billing code in preparation for charging
based on LLM usage.

We aren't yet exercising the new billing-related code outside of
development.

There are some noteworthy changes for our existing LLM usage tracking:

- A new `monthly_usages` table has been added for tracking usage
per-user, per-model, per-month
- The per-month usage measures have been removed, in favor of the
`monthly_usages` table
- All of the per-month metrics in the Clickhouse rows have been changed
from a rolling 30-day window to a calendar month

Release Notes:

- N/A

---------

Co-authored-by: Antonio Scandurra <me@as-cii.com>
Co-authored-by: Richard <richard@zed.dev>
Co-authored-by: Max <max@zed.dev>
2024-10-08 18:29:38 -04:00
..
2024-10-08 11:54:28 +02:00
2024-09-13 13:17:49 -04:00
2024-09-23 15:28:04 -06:00
2024-09-23 15:28:04 -06:00
2024-10-08 11:54:28 +02:00
2024-09-27 13:30:25 -04:00
2024-10-02 13:27:16 +02:00
2024-09-24 16:23:08 -06:00
2024-09-16 08:29:46 -04:00