pub enum WeightClass {
Feather,
Middle,
Heavy,
}Expand description
Innate size/cost class of a model, set once per model in the catalog.
Orthogonal to the per-request Effort and to context_limit:
a model’s weight class reflects roughly how large and costly it is to run,
not how hard it is asked to think on a given turn. Variants are declared in
ascending order so the derived Ord sorts Feather < Middle < Heavy.
Variants§
Feather
Small, fast, cheap (Haiku- / GPT-nano-class).
Middle
Mid workhorse (Sonnet- / GPT-mini- / Gemini-Flash-class).
Heavy
Largest, most capable, costliest (Opus- / GPT-5.x- / Gemini-Pro-class).
Trait Implementations§
Source§impl Clone for WeightClass
impl Clone for WeightClass
Source§fn clone(&self) -> WeightClass
fn clone(&self) -> WeightClass
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 moreimpl Copy for WeightClass
Source§impl Debug for WeightClass
impl Debug for WeightClass
Source§impl<'de> Deserialize<'de> for WeightClass
impl<'de> Deserialize<'de> for WeightClass
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 WeightClass
Source§impl Hash for WeightClass
impl Hash for WeightClass
Source§impl Ord for WeightClass
impl Ord for WeightClass
Source§fn cmp(&self, other: &WeightClass) -> Ordering
fn cmp(&self, other: &WeightClass) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for WeightClass
impl PartialEq for WeightClass
Source§impl PartialOrd for WeightClass
impl PartialOrd for WeightClass
Source§impl Serialize for WeightClass
impl Serialize for WeightClass
impl StructuralPartialEq for WeightClass
Auto Trait Implementations§
impl Freeze for WeightClass
impl RefUnwindSafe for WeightClass
impl Send for WeightClass
impl Sync for WeightClass
impl Unpin for WeightClass
impl UnsafeUnpin for WeightClass
impl UnwindSafe for WeightClass
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