Skip to content

Commit

Permalink
change chat default (#1782)
Browse files Browse the repository at this point in the history
Resolves #1532, resolves
#1652.
  • Loading branch information
hwchase17 committed Mar 19, 2023
1 parent 08f23c9 commit b1b4a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion langchain/chat_models/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class ChatOpenAI(BaseChatModel, BaseModel):
"""Whether to stream the results or not."""
n: int = 1
"""Number of chat completions to generate for each prompt."""
max_tokens: int = 256
max_tokens: Optional[int] = None
"""Maximum number of tokens to generate."""

class Config:
Expand Down

0 comments on commit b1b4a40

Please sign in to comment.