pub enum AiProvider {
Anthropic {
api_key: String,
model: String,
},
OpenAI {
api_key: String,
model: String,
},
Custom {
base_url: String,
api_key: String,
model: Option<String>,
},
}Expand description
Supported AI providers.
Variants§
Trait Implementations§
Source§impl Clone for AiProvider
impl Clone for AiProvider
Source§fn clone(&self) -> AiProvider
fn clone(&self) -> AiProvider
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AiProvider
impl RefUnwindSafe for AiProvider
impl Send for AiProvider
impl Sync for AiProvider
impl Unpin for AiProvider
impl UnsafeUnpin for AiProvider
impl UnwindSafe for AiProvider
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