create_edit {openai} | R Documentation |
Create edit
Description
Creates an edit based on the provided input, instruction, and parameters. See this page for details.
Usage
create_edit(
engine_id = deprecated(),
model,
input = "\"",
instruction,
temperature = 1,
top_p = 1,
openai_api_key = Sys.getenv("OPENAI_API_KEY"),
openai_organization = NULL
)
Arguments
engine_id |
|
model |
required; a length one character vector. |
input |
required; defaults to |
instruction |
required; a length one character vector. |
temperature |
required; defaults to |
top_p |
required; defaults to |
openai_api_key |
required; defaults to |
openai_organization |
optional; defaults to |
Details
For arguments description please refer to the official documentation.
Value
Returns a list, elements of which contain edited version of prompt and supplementary information.
Examples
## Not run:
create_edit(
model = "text-davinci-edit-001",
input = "What day of the wek is it?",
instruction = "Fix the spelling mistakes"
)
## End(Not run)