maxTokens property

int maxTokens
final

The maximum number of tokens that can be generated in the chat completion.
The total length of input tokens and generated tokens is limited by the model's context length. Default: 8192

Implementation

final int maxTokens;