pub struct LLMClient { /* private fields */ }Expand description
HTTP-based client dedicated to a specific provider configuration.
Implementations§
Source§impl LLMClient
impl LLMClient
pub fn new(provider: ProviderConfig) -> Self
pub fn with_client(http: Client, provider: ProviderConfig) -> Self
pub fn from_env(kind: ProviderKind, model: &str) -> Result<Self, ConfigError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LLMClient
impl !RefUnwindSafe for LLMClient
impl Send for LLMClient
impl Sync for LLMClient
impl Unpin for LLMClient
impl !UnwindSafe for LLMClient
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