forked from Archives/langchain
change chat default (#1782)
Resolves https://github.com/hwchase17/langchain/issues/1532, resolves https://github.com/hwchase17/langchain/issues/1652.
This commit is contained in:
parent
08f23c95d9
commit
b1b4a4065a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user