pub struct ModelFacts {
pub id: String,
pub context_tokens: Option<u64>,
pub max_output_tokens: Option<Ceiling>,
pub input_modalities: Vec<String>,
pub input_price: Option<String>,
pub output_price: Option<String>,
}Expand description
What a model list said about one model.
Everything but the id is optional, because for most providers everything but the id is missing.
Fields§
§id: String§context_tokens: Option<u64>How many tokens the model reads in one call.
max_output_tokens: Option<Ceiling>How many tokens it may write back.
input_modalities: Vec<String>What it accepts, in the provider’s own words (text, image,
audio). Empty means the row said nothing, never “text only”.
input_price: Option<String>The provider’s own input price, verbatim, unit included when the provider stated one.
output_price: Option<String>The provider’s own output price, verbatim.
Trait Implementations§
Source§impl Clone for ModelFacts
impl Clone for ModelFacts
Source§impl Debug for ModelFacts
impl Debug for ModelFacts
Source§impl Default for ModelFacts
impl Default for ModelFacts
Source§impl<'de> Deserialize<'de> for ModelFacts
impl<'de> Deserialize<'de> for ModelFacts
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
impl Eq for ModelFacts
Source§impl PartialEq for ModelFacts
impl PartialEq for ModelFacts
Source§impl Serialize for ModelFacts
impl Serialize for ModelFacts
impl StructuralPartialEq for ModelFacts
Auto Trait Implementations§
impl Freeze for ModelFacts
impl RefUnwindSafe for ModelFacts
impl Send for ModelFacts
impl Sync for ModelFacts
impl Unpin for ModelFacts
impl UnsafeUnpin for ModelFacts
impl UnwindSafe for ModelFacts
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