pub struct CompleteOptions {
pub max_tokens: u32,
pub system: Option<String>,
pub model_override: Option<String>,
}Expand description
Options controlling a typed completion request.
max_tokens caps the response; callers map FERRO_AI_MAX_TOKENS_PER_COMMAND onto it.
system supplies an optional system prompt for context-heavy completions.
model_override selects a non-default model for this request only.
Fields§
§max_tokens: u32Maximum number of tokens in the completion response.
system: Option<String>Optional system prompt prepended before the user message.
model_override: Option<String>Override the provider’s default model for this request.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompleteOptions
impl RefUnwindSafe for CompleteOptions
impl Send for CompleteOptions
impl Sync for CompleteOptions
impl Unpin for CompleteOptions
impl UnsafeUnpin for CompleteOptions
impl UnwindSafe for CompleteOptions
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