Struct async_openai::Edits
source · pub struct Edits<'c> { /* private fields */ }
Expand description
Given a prompt and an instruction, the model will return an edited version of the prompt.
Implementations§
source§impl<'c> Edits<'c>
impl<'c> Edits<'c>
pub fn new(client: &'c Client) -> Self
sourcepub async fn create(
&self,
request: CreateEditRequest
) -> Result<CreateEditResponse, OpenAIError>
pub async fn create( &self, request: CreateEditRequest ) -> Result<CreateEditResponse, OpenAIError>
Creates a new edit for the provided input, instruction, and parameters