Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/openai_deno/mod.ts>OpenAI#createEdit

OpenAI API wrapper for deno.
Latest
method OpenAI.prototype.createEdit
Deprecated
import { OpenAI } from "https://deno.land/x/openai_deno@v0.9.8/mod.ts";

Creates a new edit for the provided input, instruction, and parameters

Parameters

model: string

ID of the model to use. You can use the text-davinci-edit-001 or code-davinci-edit-001 model with this endpoint.

instruction: string

The instruction that tells the model how to edit the prompt.

optional
params: CreateEditParams

Optional parameters for the API.

Returns

Edited texts.