pub struct OllamaSdk { /* private fields */ }Expand description
ChatCompletion client using your wrapped Request.
Implementations§
Trait Implementations§
Source§impl ModelSDK for OllamaSdk
impl ModelSDK for OllamaSdk
Source§fn chat_once<'life0, 'async_trait>(
&'life0 self,
input: Self::Input,
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn chat_once<'life0, 'async_trait>(
&'life0 self,
input: Self::Input,
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send a chat request and get full response.
Source§fn chat_stream<'life0, 'async_trait>(
&'life0 self,
input: Self::Input,
) -> Pin<Box<dyn Future<Output = Result<ByteStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn chat_stream<'life0, 'async_trait>(
&'life0 self,
input: Self::Input,
) -> Pin<Box<dyn Future<Output = Result<ByteStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send a chat request and get response stream (SSE).
type Input = LlmInput
type Output = OllamaChatResponse
Auto Trait Implementations§
impl Freeze for OllamaSdk
impl !RefUnwindSafe for OllamaSdk
impl Send for OllamaSdk
impl Sync for OllamaSdk
impl Unpin for OllamaSdk
impl !UnwindSafe for OllamaSdk
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