maxTokens property

int maxTokens
final

The maximum number of output tokens to generate.

Only relevant for generative (LLM) models. Ignored by classification models such as sentiment analysis and image classification. Defaults to 256.

Implementation

final int maxTokens;