pub struct OllamaRouter { /* private fields */ }Implementations§
Trait Implementations§
Source§impl ModelHost for OllamaRouter
impl ModelHost for OllamaRouter
Source§fn capabilities(&self) -> HostCapabilities
fn capabilities(&self) -> HostCapabilities
The /api/chat ceiling. /v1/systemone takes more options, but Engine caps a choice at
MAX_OPTIONS either way, so the smaller one costs nothing.
fn first_token<'life0, 'async_trait>(
&'life0 self,
req: FirstTokenRequest,
) -> Pin<Box<dyn Future<Output = Result<FirstTokenDistribution, HostError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !Freeze for OllamaRouter
impl !RefUnwindSafe for OllamaRouter
impl !UnwindSafe for OllamaRouter
impl Send for OllamaRouter
impl Sync for OllamaRouter
impl Unpin for OllamaRouter
impl UnsafeUnpin for OllamaRouter
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