Skip to content

What is the default max_tokens for ChatOpenAI? How can I have it be calculated automatically? #6516

Answered by ShantanuNair
ADTC asked this question in Q&A
Discussion options

You must be logged in to vote

@ADTC Yes that is the case. None in ChatOpenAI is equivalent to -1 for OpenAI which is equivalent to as-many-as-posssible, at least the last time I trawled through the relevant code. Things do change rather rapidly!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ADTC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants