pub struct OllamaConfig {
pub model: String,
pub base_url: String,
pub timeout: Option<Duration>,
pub client: Option<Client>,
}Expand description
Configuration for the Ollama provider.
Use struct update syntax with Default for ergonomic construction:
use llm_stack_ollama::OllamaConfig;
let config = OllamaConfig {
model: "llama3.2".into(),
..Default::default()
};Fields§
§model: StringModel identifier (e.g. "llama3.2", "mistral").
base_url: StringBase URL for the Ollama API. Defaults to http://localhost:11434.
timeout: Option<Duration>Request timeout. None uses reqwest’s default.
client: Option<Client>Pre-configured HTTP client for connection pooling.
When None, a new client is created.
Trait Implementations§
Source§impl Clone for OllamaConfig
impl Clone for OllamaConfig
Source§fn clone(&self) -> OllamaConfig
fn clone(&self) -> OllamaConfig
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 moreSource§impl Debug for OllamaConfig
impl Debug for OllamaConfig
Auto Trait Implementations§
impl Freeze for OllamaConfig
impl !RefUnwindSafe for OllamaConfig
impl Send for OllamaConfig
impl Sync for OllamaConfig
impl Unpin for OllamaConfig
impl !UnwindSafe for OllamaConfig
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