Skip to content

Commit b1b4a40

Browse files
authored
change chat default (#1782)
Resolves #1532, resolves #1652.
1 parent 08f23c9 commit b1b4a40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

langchain/chat_models/openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class ChatOpenAI(BaseChatModel, BaseModel):
128128
"""Whether to stream the results or not."""
129129
n: int = 1
130130
"""Number of chat completions to generate for each prompt."""
131-
max_tokens: int = 256
131+
max_tokens: Optional[int] = None
132132
"""Maximum number of tokens to generate."""
133133

134134
class Config:

0 commit comments

Comments
 (0)