class OpenAI::CreateEditCompletion
- OpenAI::CreateEditCompletion
- Reference
- Object
Overview
POST https://api.openai.com/v1/edits
Included Modules
- JSON::Serializable
Extended Modules
- JSON::Schema
Defined in:
open_ai/models/edit_completion.crConstructors
Instance Method Summary
-
#input : String
The input text to use as a starting point for the edit.
-
#input=(input : String)
The input text to use as a starting point for the edit.
-
#instruction : String
The instruction that tells the model how to edit the prompt.
-
#instruction=(instruction : String)
The instruction that tells the model how to edit the prompt.
-
#model : String
the model id You can use the text-davinci-edit-001 or code-davinci-edit-001 model with this endpoint.
-
#model=(model : String)
the model id You can use the text-davinci-edit-001 or code-davinci-edit-001 model with this endpoint.
-
#num_completions : Int32
How many completions to generate for each prompt.
-
#num_completions=(num_completions : Int32)
How many completions to generate for each prompt.
-
#temperature : Float64
What sampling temperature to use, between 0 and 2.
-
#temperature=(temperature : Float64)
What sampling temperature to use, between 0 and 2.
-
#top_p : Float64
An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
-
#top_p=(top_p : Float64)
An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
Constructor Detail
Instance Method Detail
The instruction that tells the model how to edit the prompt.
the model id You can use the text-davinci-edit-001 or code-davinci-edit-001 model with this endpoint.
the model id You can use the text-davinci-edit-001 or code-davinci-edit-001 model with this endpoint.
What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. Alter this or temperature but not both.
An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. Alter this or temperature but not both.