What is the default max_tokens for ChatOpenAI? How can I have it be calculated automatically? #6516
-
It seems that setting
I also noticed that the default value of
Based on my testing, it looks like leaving But I'm not able to ascertain that from the code. Could you please confirm it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@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! |
Beta Was this translation helpful? Give feedback.
@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!