pub struct OllamaBackend { /* private fields */ }Expand description
Ollama chat API backend.
Implementations§
Source§impl OllamaBackend
impl OllamaBackend
Trait Implementations§
Source§impl CompletionBackend for OllamaBackend
impl CompletionBackend for OllamaBackend
Source§fn complete<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
model: &'life1 str,
system: &'life2 str,
user: &'life3 str,
max_tokens: u32,
) -> Pin<Box<dyn Future<Output = SummarizerResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn complete<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
model: &'life1 str,
system: &'life2 str,
user: &'life3 str,
max_tokens: u32,
) -> Pin<Box<dyn Future<Output = SummarizerResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Run a single completion with system and user prompts.
Auto Trait Implementations§
impl !RefUnwindSafe for OllamaBackend
impl !UnwindSafe for OllamaBackend
impl Freeze for OllamaBackend
impl Send for OllamaBackend
impl Sync for OllamaBackend
impl Unpin for OllamaBackend
impl UnsafeUnpin for OllamaBackend
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