mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-24 07:35:18 +00:00
community[patch]: Enable streaming for GPT4all (#16392)
`streaming` param was never passed to model
This commit is contained in:
parent
af9f1738ca
commit
1445ac95e8
@ -111,6 +111,7 @@ class GPT4All(LLM):
|
||||
"n_batch",
|
||||
"repeat_penalty",
|
||||
"repeat_last_n",
|
||||
"streaming",
|
||||
}
|
||||
|
||||
def _default_params(self) -> Dict[str, Any]:
|
||||
@ -123,6 +124,7 @@ class GPT4All(LLM):
|
||||
"n_batch": self.n_batch,
|
||||
"repeat_penalty": self.repeat_penalty,
|
||||
"repeat_last_n": self.repeat_last_n,
|
||||
"streaming": self.streaming,
|
||||
}
|
||||
|
||||
@root_validator()
|
||||
|
Loading…
Reference in New Issue
Block a user