Method: OpenAI::Models::Chat::CompletionCreateParams#max_tokens

Defined in:
lib/openai/models/chat/completion_create_params.rb

#max_tokensInteger?

Deprecated.

The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.

This value is now deprecated in favor of max_completion_tokens, and is not compatible with o-series models.

Returns:

  • (Integer, nil)


124
# File 'lib/openai/models/chat/completion_create_params.rb', line 124

optional :max_tokens, Integer, nil?: true