pub enum Model {
OpenAi(OpenAiModel),
Custom(Cow<'static, str>),
}
Expand description
Universal identifier for an LLM model.
OpenAi
– Enumerated list of officially supported OpenAI models.Custom
– Any provider / model name not yet covered by a dedicated enum. Use this if you run a self-hosted or beta model.
Variants§
OpenAi(OpenAiModel)
Built-in OpenAI models (chat completion API).
Custom(Cow<'static, str>)
Fully qualified provider/model ID ("provider:model-name"
or similar).
Trait Implementations§
Source§impl From<OpenAiModel> for Model
impl From<OpenAiModel> for Model
Source§fn from(val: OpenAiModel) -> Self
fn from(val: OpenAiModel) -> Self
Converts to this type from the input type.
impl Eq for Model
impl StructuralPartialEq for Model
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
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