
This PR adds usage-based billing for LLM interactions in the Assistant. Release Notes: - N/A --------- Co-authored-by: Antonio Scandurra <me@as-cii.com> Co-authored-by: Antonio <antonio@zed.dev> Co-authored-by: Richard <richard@zed.dev> Co-authored-by: Richard Feldman <oss@rtfeldman.com>
11 lines
245 B
Rust
11 lines
245 B
Rust
use sea_orm::{entity::prelude::*, DbErr};
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
use crate::id_type;
|
|
|
|
id_type!(ModelId);
|
|
id_type!(ProviderId);
|
|
id_type!(UsageId);
|
|
id_type!(UsageMeasureId);
|
|
id_type!(RevokedAccessTokenId);
|
|
id_type!(BillingEventId);
|