pub struct Model {
pub id: String,
pub provider_id: String,
pub client_name: String,
pub price_input: f64,
pub price_output: f64,
pub currency: String,
pub context_window: i64,
pub created_at: String,
pub channel_count: u32,
}Expand description
A model offered by a provider.
Fields§
§id: StringUnique model identifier.
provider_id: StringProvider this model belongs to.
client_name: StringClient-facing model name.
price_input: f64Input price per 1M tokens.
price_output: f64Output price per 1M tokens.
currency: StringDefault pricing currency.
context_window: i64Maximum context window in tokens.
created_at: StringWhen the model was added (RFC 3339).
channel_count: u32Number of channels that can serve this model.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more