Skip to content

The agent engineering platform.

community[patch]: Enable streaming for GPT4all (#16392)

Tom Jorquera1445ac95e828
diff --git a/libs/community/langchain_community/llms/gpt4all.py b/libs/community/langchain_community/llms/gpt4all.py
index 83dace226b..8b347ceb5c 100644
--- a/libs/community/langchain_community/llms/gpt4all.py
+++ b/libs/community/langchain_community/llms/gpt4all.py
@@ -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()