pub struct CompletionRequest {
pub model: String,
pub prompt: String,
pub extra_params: Value,
}Expand description
Represents a text completion request. It minimally contains:
model: The model ID to use.prompt: The text prompt to be completed.
Any extra parameters (e.g., temperature, top_p, etc.) can also be provided and will be flattened
into the resulting JSON.
Fields§
§model: String§prompt: String§extra_params: ValueTrait Implementations§
Source§impl Debug for CompletionRequest
impl Debug for CompletionRequest
Auto Trait Implementations§
impl Freeze for CompletionRequest
impl RefUnwindSafe for CompletionRequest
impl Send for CompletionRequest
impl Sync for CompletionRequest
impl Unpin for CompletionRequest
impl UnwindSafe for CompletionRequest
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