maxTokens property

int get maxTokens

The requested maximum number of tokens to sample (to prevent runaway completions).

The client MAY choose to sample fewer tokens than the requested maximum.

Implementation

int get maxTokens => $required('maxTokens', $int);