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,
},
OpenCode {
service: OpenCodeService,
base_url: Option<String>,
api_key_env: Option<String>,
},
}Variants§
Implementations§
Source§impl LLMProvider
impl LLMProvider
pub fn client_from_env(&self) -> Result<Box<dyn LLMClientDyn>>
Auto Trait Implementations§
impl Forget for LLMProvider
impl Freeze for LLMProvider
impl Move for LLMProvider
impl RefUnwindSafe for LLMProvider
impl Send for LLMProviderwhere
RawVecInner: Send,
impl Sync for LLMProviderwhere
RawVecInner: Sync,
impl Unpin for LLMProvider
impl UnsafeUnpin for LLMProvider
impl UnwindSafe for LLMProviderwhere
RawVecInner: UnwindSafe,
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