pub struct EditRequest {
pub model: String,
pub input: Option<String>,
pub instruction: String,
pub n: Option<i32>,
pub temperature: Option<f32>,
pub top_p: Option<f32>,
}
Expand description
Represents a request to edit text.
Fields§
§model: String
Model to be used for editing.
input: Option<String>
Optional input text to be edited.
instruction: String
Instruction for editing the text.
n: Option<i32>
Optional number of edits to generate.
temperature: Option<f32>
Optional temperature setting for the edit.
top_p: Option<f32>
Optional top-p setting for the edit.
Implementations§
Source§impl EditRequest
impl EditRequest
Source§impl EditRequest
impl EditRequest
Sourcepub fn temperature(self, temperature: f32) -> Self
pub fn temperature(self, temperature: f32) -> Self
Sets the value of the specified field.
Trait Implementations§
Source§impl Clone for EditRequest
impl Clone for EditRequest
Source§fn clone(&self) -> EditRequest
fn clone(&self) -> EditRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EditRequest
impl Debug for EditRequest
Auto Trait Implementations§
impl Freeze for EditRequest
impl RefUnwindSafe for EditRequest
impl Send for EditRequest
impl Sync for EditRequest
impl Unpin for EditRequest
impl UnwindSafe for EditRequest
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