You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
max_tokens is Deprecated
Optional
The maximum number of [tokens](https://platform.openai.com/tokenizer) that can be generated in the chat completion. This value can be used to control [costs](https://openai.com/api/pricing/) for text generated via API.
This value is now deprecated in favor of max_completion_tokens, and is not compatible with [o1 series models](https://platform.openai.com/docs/guides/reasoning).
max_completion_tokens
Optional
An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and [reasoning tokens](https://platform.openai.com/docs/guides/reasoning).
Either convert current to non-obsolete max completion tokens or mark it as obsolete and add max_completion_tokens
Other solutions
Add this field manually via overload but ChatResponse is sealed :/
Feature Request
Is your feature request related to a problem? Please describe.
MaxTokens is now depracitated, use MaxCompletionTokens instead
Describe the solution you'd like
Source: https://platform.openai.com/docs/api-reference/chat/create
Either convert current to non-obsolete max completion tokens or mark it as obsolete and add max_completion_tokens
Other solutions
Add this field manually via overload but
ChatResponse
is sealed :/Additional context
https://platform.openai.com/docs/api-reference/chat/create
The text was updated successfully, but these errors were encountered: