pub struct Model {Show 13 fields
pub id: String,
pub provider_id: String,
pub api: ModelApi,
pub name: String,
pub family: Option<String>,
pub capabilities: ModelCapabilities,
pub cost: ModelCost,
pub limit: ModelLimit,
pub status: ModelStatus,
pub options: HashMap<String, Value>,
pub headers: HashMap<String, String>,
pub release_date: String,
pub variants: Option<HashMap<String, HashMap<String, Value>>>,
}Expand description
A language-model definition exposed by a provider.
Fields§
§id: StringUnique model identifier.
provider_id: StringProvider identifier.
api: ModelApiAPI endpoint information.
name: StringHuman-readable model name.
family: Option<String>Model family.
capabilities: ModelCapabilitiesModel capabilities.
cost: ModelCostCost information per token.
limit: ModelLimitContext and output token limits.
status: ModelStatusModel lifecycle status.
options: HashMap<String, Value>Arbitrary provider-specific options.
headers: HashMap<String, String>Custom headers for API requests.
release_date: StringISO-8601 release date.
variants: Option<HashMap<String, HashMap<String, Value>>>Model variants.
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
impl StructuralPartialEq for Model
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin 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