pub enum LLMProvider {
Anthropic {
base_url: Option<String>,
api_key_env: Option<String>,
},
Gemini {
base_url: Option<String>,
api_key_env: Option<String>,
},
OpenAi {
base_url: Option<String>,
api_key_env: Option<String>,
},
OpenRouter {
api_key_env: String,
},
}Variants§
Implementations§
Source§impl LLMProvider
impl LLMProvider
pub fn client_from_env(&self) -> Result<Box<dyn LLMClientDyn>>
Auto Trait Implementations§
impl Freeze for LLMProvider
impl RefUnwindSafe for LLMProvider
impl Send for LLMProvider
impl Sync for LLMProvider
impl Unpin for LLMProvider
impl UnsafeUnpin for LLMProvider
impl UnwindSafe for LLMProvider
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