mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-16 06:53:16 +00:00
fix max_tokens (#12964)
This commit is contained in:
@@ -323,7 +323,7 @@ class ChatOpenAI(BaseChatModel):
|
||||
"temperature": self.temperature,
|
||||
**self.model_kwargs,
|
||||
}
|
||||
if "vision" not in self.model_name:
|
||||
if self.max_tokens is not None:
|
||||
params["max_tokens"] = self.max_tokens
|
||||
return params
|
||||
|
||||
|
Reference in New Issue
Block a user