We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08f23c9 commit b1b4a40Copy full SHA for b1b4a40
langchain/chat_models/openai.py
@@ -128,7 +128,7 @@ class ChatOpenAI(BaseChatModel, BaseModel):
128
"""Whether to stream the results or not."""
129
n: int = 1
130
"""Number of chat completions to generate for each prompt."""
131
- max_tokens: int = 256
+ max_tokens: Optional[int] = None
132
"""Maximum number of tokens to generate."""
133
134
class Config:
0 commit comments