pub struct FirstTokenRequest {
pub model: String,
pub system: Option<String>,
pub user: String,
pub top_logprobs: usize,
pub keep_alive: Option<String>,
}Expand description
One prompt, one token, full distribution.
Fields§
§model: String§system: Option<String>§user: String§top_logprobs: usize§keep_alive: Option<String>How long the host should keep the model resident after answering. Only Ollama has this; the OpenAI-compatible runtimes keep their model loaded for the life of the process.
Trait Implementations§
Source§impl Clone for FirstTokenRequest
impl Clone for FirstTokenRequest
Source§fn clone(&self) -> FirstTokenRequest
fn clone(&self) -> FirstTokenRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FirstTokenRequest
impl RefUnwindSafe for FirstTokenRequest
impl Send for FirstTokenRequest
impl Sync for FirstTokenRequest
impl Unpin for FirstTokenRequest
impl UnsafeUnpin for FirstTokenRequest
impl UnwindSafe for FirstTokenRequest
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