pub struct OllamaProvider { /* private fields */ }Expand description
Ollama (local NDJSON server) provider implementation. Ollama provider for local LLM inference.
Implementations§
Source§impl OllamaProvider
impl OllamaProvider
Sourcepub fn with_base_url(base_url: &str) -> Self
pub fn with_base_url(base_url: &str) -> Self
Create with a custom base URL (e.g. remote Ollama instance).
Sourcepub fn with_config(base_url: &str, api_key: Option<String>) -> Self
pub fn with_config(base_url: &str, api_key: Option<String>) -> Self
Create with a custom base URL and optional API key (Ollama Cloud).
Trait Implementations§
Source§impl Clone for OllamaProvider
impl Clone for OllamaProvider
Source§fn clone(&self) -> OllamaProvider
fn clone(&self) -> OllamaProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for OllamaProvider
impl Default for OllamaProvider
Auto Trait Implementations§
impl !RefUnwindSafe for OllamaProvider
impl !UnwindSafe for OllamaProvider
impl Freeze for OllamaProvider
impl Send for OllamaProvider
impl Sync for OllamaProvider
impl Unpin for OllamaProvider
impl UnsafeUnpin for OllamaProvider
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