Skip to main content

openai.createcompletionprops.n

Home > @runlightyear/openai > CreateCompletionProps > n

CreateCompletionProps.n property

Defaults to 1 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 maxTokens and stop.

Signature:
n?: number;