Optional
Readonly
best_Optional
Readonly
echoOptional
Readonly
frequency_The frequency penalty to use for sampling.
Defaults to 0
https://beta.openai.com/docs/api-reference/completions/create#completions/create-frequency_penalty
Optional
Readonly
logit_Optional
Readonly
logprobsOptional
Readonly
max_The maximum number of tokens to generate in the completion.
Defaults to 16
https://beta.openai.com/docs/api-reference/completions/create#completions/create-max_tokens
Readonly
modelThe model to use for completion.
https://beta.openai.com/docs/api-reference/completions/create#completions/create-model
Optional
Readonly
nHow many completions to generate for each prompt.
Defaults to 1
https://beta.openai.com/docs/api-reference/completions/create#completions/create-n
Optional
Readonly
presence_The presence penalty to use for sampling.
Defaults to 0
https://beta.openai.com/docs/api-reference/completions/create#completions/create-presence_penalty
Optional
Readonly
promptThe prompt to complete.
Defaults to "<|endoftext|>"
https://beta.openai.com/docs/api-reference/completions/create#completions/create-prompt
Optional
Readonly
stopOptional
Readonly
streamOptional
Readonly
suffixOptional
Readonly
temperatureThe temperature to use for sampling.
Defaults to 1
https://beta.openai.com/docs/api-reference/completions/create#completions/create-temperature
Optional
Readonly
top_The top probability to use for sampling.
Defaults to 1
https://beta.openai.com/docs/api-reference/completions/create#completions/create-top_p
Optional
Readonly
userGenerated using TypeDoc
Data Transfer Object for requesting a completion from the OpenAI API.
See
https://beta.openai.com/docs/api-reference/completions/create