pub struct ModelEntry {Show 13 fields
pub id: String,
pub canonical_slug: String,
pub name: String,
pub created: i64,
pub description: String,
pub context_length: Option<u32>,
pub architecture: Option<Architecture>,
pub pricing: Option<Pricing>,
pub top_provider: Option<TopProvider>,
pub supported_parameters: Vec<String>,
pub unsupported_parameters: Vec<String>,
pub default_parameters: Option<Value>,
pub endpoints: Vec<ModelEndpoint>,
}Expand description
One model in the catalog.
Fields§
§id: String§canonical_slug: String§name: String§created: i64§description: String§context_length: Option<u32>§architecture: Option<Architecture>§pricing: Option<Pricing>§top_provider: Option<TopProvider>§supported_parameters: Vec<String>§unsupported_parameters: Vec<String>§default_parameters: Option<Value>Raw JSON object.
endpoints: Vec<ModelEndpoint>Admin-only.
Trait Implementations§
Source§impl Clone for ModelEntry
impl Clone for ModelEntry
Source§fn clone(&self) -> ModelEntry
fn clone(&self) -> ModelEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModelEntry
impl Debug for ModelEntry
Source§impl<'de> Deserialize<'de> for ModelEntry
impl<'de> Deserialize<'de> for ModelEntry
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
Source§impl PartialEq for ModelEntry
impl PartialEq for ModelEntry
Source§impl Serialize for ModelEntry
impl Serialize for ModelEntry
impl StructuralPartialEq for ModelEntry
Auto Trait Implementations§
impl Freeze for ModelEntry
impl RefUnwindSafe for ModelEntry
impl Send for ModelEntry
impl Sync for ModelEntry
impl Unpin for ModelEntry
impl UnsafeUnpin for ModelEntry
impl UnwindSafe for ModelEntry
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