pub struct OllamaConfig {
pub model: String,
pub api_address: String,
}Expand description
Ollama is a AI model driver that can be run locally. See https://ollama.com/ for more information on getting it set up locally.
API docs are here. curl http://localhost:11434/api/generate -d ‘{ “model”: “llama3.2”, “prompt”: “Why is the sky blue?”, “system”: “You are a good robot.” }’
Fields§
§model: String§api_address: StringDefaults to http://localhost:11434/api/generate.
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
Source§impl Default for OllamaConfig
impl Default for OllamaConfig
Source§fn default() -> OllamaConfig
fn default() -> OllamaConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OllamaConfig
impl<'de> Deserialize<'de> for OllamaConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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