pub struct ClassifierModel {
pub id: String,
pub name: String,
pub api: String,
pub provider: String,
pub base_url: String,
pub input: Vec<InputModality>,
pub cost: ModelCost,
pub headers: Option<IndexMap<String, String>>,
pub context_window: u64,
pub compat: Option<JsonValue>,
}Expand description
Classifier model.
Fields§
§id: StringModel id.
name: StringDisplay name.
api: StringWire API.
provider: StringProvider id.
base_url: StringBase URL.
input: Vec<InputModality>Input modalities.
cost: ModelCostPricing.
headers: Option<IndexMap<String, String>>Extra headers.
context_window: u64Context window.
compat: Option<JsonValue>Provider compatibility flags.
Trait Implementations§
Source§impl Clone for ClassifierModel
impl Clone for ClassifierModel
Source§impl Debug for ClassifierModel
impl Debug for ClassifierModel
Source§impl<'de> Deserialize<'de> for ClassifierModel
impl<'de> Deserialize<'de> for ClassifierModel
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 ClassifierModel
impl PartialEq for ClassifierModel
Source§impl Serialize for ClassifierModel
impl Serialize for ClassifierModel
impl StructuralPartialEq for ClassifierModel
Auto Trait Implementations§
impl Freeze for ClassifierModel
impl RefUnwindSafe for ClassifierModel
impl Send for ClassifierModel
impl Sync for ClassifierModel
impl Unpin for ClassifierModel
impl UnsafeUnpin for ClassifierModel
impl UnwindSafe for ClassifierModel
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