collab: Add usages table to LLM database (#15884)

This PR adds a `usages` table to the LLM database.

We'll use this to track usage for rate-limiting purposes.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-08-06 18:40:10 -04:00 committed by GitHub
parent 4f69336024
commit a54e16b7ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 165 additions and 1 deletions

View file

@ -3,5 +3,6 @@ use serde::{Deserialize, Serialize};
use crate::id_type;
id_type!(ProviderId);
id_type!(ModelId);
id_type!(ProviderId);
id_type!(UsageId);