pub enum CostClass {
VeryLow,
Low,
Medium,
High,
VeryHigh,
}Expand description
Cost classification for model selection.
Note: Consider using CostTier instead for new code.
This is retained for backward compatibility with existing model metadata.
Variants§
VeryLow
Very low cost (e.g., Haiku, GPT-3.5 Turbo, Gemini Flash)
Low
Low cost (e.g., Sonnet, GPT-4 Turbo)
Medium
Medium cost (e.g., Opus, GPT-4)
High
High cost (e.g., Opus-4, GPT-4o)
VeryHigh
Very high cost (e.g., specialized models)
Implementations§
Trait Implementations§
Source§impl Ord for CostClass
impl Ord for CostClass
Source§impl PartialOrd for CostClass
impl PartialOrd for CostClass
impl Copy for CostClass
impl Eq for CostClass
impl StructuralPartialEq for CostClass
Auto Trait Implementations§
impl Freeze for CostClass
impl RefUnwindSafe for CostClass
impl Send for CostClass
impl Sync for CostClass
impl Unpin for CostClass
impl UnwindSafe for CostClass
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