OpenAI.edits

You're seeing just the function edits, go back to OpenAI module for more information.

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

Example request

OpenAI.edits( model: "text-davinci-edit-001", input: "What day of the wek is it?", instruction: "Fix the spelling mistakes" )

Example response

{:ok, %{ choices: [%{"index" => 0, "text" => "What day of the week is it? "}], created: 1675443483, object: "edit", usage: %{ "completion_tokens" => 28, "prompt_tokens" => 25, "total_tokens" => 53 } }}

See: https://platform.openai.com/docs/api-reference/edits/create