Completions
Create completion
Changed onCreates a completion for the provided prompt and parameters.
Returns a completion object, or a sequence of completion objects if the request is streamed.
post/completions
Request
- Base URLhttps://api.openai.com/v1
- URLhttps://api.openai.com/v1/completions
- AuthHTTP bearer
Request body
Example request
{
"prompt": "This is a test.",
"max_tokens": 16,
"n": 1,
"stop": "\n",
"suffix": "test.",
"temperature": 1,
"top_p": 1,
"user": "user-1234"
}Response
OK
Changes
- info
added the media type
text/event-streamfor the response with the status
- info
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info