import type { CompletionUsage } from "./CompletionUsage"; /** * @deprecated */ export type CreateEditResponse = { /** * A list of edit choices. Can be more than one if `n` is greater than 1. */ choices: Array<{ /** * The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence, * `length` if the maximum number of tokens specified in the request was reached, * or `content_filter` if content was omitted due to a flag from our content filters. * */ finish_reason: "stop" | "length"; /** * The index of the choice in the list of choices. */ index: number; /** * The edited result. */ text: string; }>; /** * The object type, which is always `edit`. */ object: string; /** * The Unix timestamp (in seconds) of when the edit was created. */ created: number; usage: CompletionUsage; };