Struct async_openai::Edits
source · pub struct Edits<'c, C: Config> { /* private fields */ }
👎Deprecated since 0.15.0: By OpenAI
Expand description
Given a prompt and an instruction, the model will return an edited version of the prompt.
Implementations§
source§impl<'c, C: Config> Edits<'c, C>
impl<'c, C: Config> Edits<'c, C>
pub fn new(client: &'c Client<C>) -> Self
👎Deprecated since 0.15.0: By OpenAI
sourcepub async fn create(
&self,
request: CreateEditRequest
) -> Result<CreateEditResponse, OpenAIError>
👎Deprecated since 0.15.0: By OpenAI
pub async fn create( &self, request: CreateEditRequest ) -> Result<CreateEditResponse, OpenAIError>
Creates a new edit for the provided input, instruction, and parameters
Auto Trait Implementations§
impl<'c, C> !RefUnwindSafe for Edits<'c, C>
impl<'c, C> Send for Edits<'c, C>where C: Sync,
impl<'c, C> Sync for Edits<'c, C>where C: Sync,
impl<'c, C> Unpin for Edits<'c, C>
impl<'c, C> !UnwindSafe for Edits<'c, C>
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