mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-04 04:28:58 +00:00
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:
@@ -128,7 +128,7 @@ class ChatOpenAI(BaseChatModel, BaseModel):
|
|||||||
"""Whether to stream the results or not."""
|
"""Whether to stream the results or not."""
|
||||||
n: int = 1
|
n: int = 1
|
||||||
"""Number of chat completions to generate for each prompt."""
|
"""Number of chat completions to generate for each prompt."""
|
||||||
max_tokens: int = 256
|
max_tokens: Optional[int] = None
|
||||||
"""Maximum number of tokens to generate."""
|
"""Maximum number of tokens to generate."""
|
||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
|
Reference in New Issue
Block a user