pub enum ModelPref {
ClaudeOpus,
ClaudeSonnet,
ClaudeHaiku,
Gpt4o,
Gpt4oMini,
Ollama(String),
AnyCheap,
}Expand description
Preferred model. Adapters map this onto their own model catalogs.
Variants§
ClaudeOpus
Anthropic Claude Opus tier.
ClaudeSonnet
Anthropic Claude Sonnet tier.
ClaudeHaiku
Anthropic Claude Haiku tier.
Gpt4o
OpenAI GPT-4o.
Gpt4oMini
OpenAI GPT-4o-mini.
Ollama(String)
Local Ollama model identified by tag (e.g., "qwen2.5:7b").
AnyCheap
Adapter picks whatever cheap model is available.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelPref
impl<'de> Deserialize<'de> for ModelPref
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 Ord for ModelPref
impl Ord for ModelPref
Source§impl PartialOrd for ModelPref
impl PartialOrd for ModelPref
impl Eq for ModelPref
impl StructuralPartialEq for ModelPref
Auto Trait Implementations§
impl Freeze for ModelPref
impl RefUnwindSafe for ModelPref
impl Send for ModelPref
impl Sync for ModelPref
impl Unpin for ModelPref
impl UnsafeUnpin for ModelPref
impl UnwindSafe for ModelPref
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