Open Dev Kit Documentation :: Open AI :: Request Completions
OpenAI.RequestCompletions( Model AI Model Completions, Options AI Completion Options, Prompts String Array, Number Integer, Suffix String, Echo Boolean ) AI Result*Given a prompt, the model will return one or more predicted completions, and can also return the probabilities of alternative tokens at each position. Legacy function for using old base models.
Parameters
- Model AI Model Completions
- The model to use.
- Prompts String Array
- The prompt(s) to generate completions for.
- Number Integer
- How many completions to generate for each prompt. Note: Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for Max Tokens and Stop.
- Suffix String
- Optional suffix that comes after a completion of inserted text.
- Echo Boolean
- Echo back the prompt in addition to the completion.
Return Value
If you think anything is missing, please feel free to: submit documentation feedback on this page