Struct async_openai::Edit
source · pub struct Edit;
Expand description
Given a prompt and an instruction, the model will return an edited version of the prompt.
Implementations§
source§impl Edit
impl Edit
sourcepub async fn create(
client: &Client,
request: CreateEditRequest
) -> Result<CreateEditResponse, OpenAIError>
pub async fn create(
client: &Client,
request: CreateEditRequest
) -> Result<CreateEditResponse, OpenAIError>
Creates a new edit for the provided input, instruction, and parameters