maxTokens property

  1. @JsonKey(name: "max_tokens")
int? maxTokens
getter/setter pair

The maximum number of tokens to generate in the completion.

The token count of your prompt plus max_tokens cannot exceed the model's context length.

Implementation

@JsonKey(name: "max_tokens")
int? maxTokens;