openai.createchatcompletionprops.maxtokens
Home > @runlightyear/openai > CreateChatCompletionProps > maxTokens
CreateChatCompletionProps.maxTokens property
The maximum number of tokens to generate in the chat completion.
The total length of input tokens and generated tokens is limited by the model's context length.
Defaults to inf
Signature:maxTokens?: number;