pub struct OllamaConfig {
pub base_url: String,
pub embed_model: String,
pub gen_model: String,
pub api_key: Option<String>,
pub num_ctx: u32,
pub timeout_secs: u64,
}Expand description
Configuration for the Ollama backend.
Fields§
§base_url: Stringe.g. http://127.0.0.1:11434.
embed_model: StringEmbedding model (e.g. nomic-embed-text).
gen_model: StringGeneration model (e.g. gemma4:e4b).
api_key: Option<String>Optional bearer token for hosted/proxied endpoints.
num_ctx: u32Context window for generation.
timeout_secs: u64Trait Implementations§
Source§impl Clone for OllamaConfig
impl Clone for OllamaConfig
Source§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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more