Harrison Chase 2023-03-19 10:01:59 -07:00 committed by GitHub
parent 08f23c95d9
commit b1b4a4065a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: