The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Add allow_download as attribute for GPT4All (#5512)
Víctor Navarro Aránguizf39340ff6b29
diff --git a/langchain/llms/gpt4all.py b/langchain/llms/gpt4all.pyindex e7472b6889..8fc9e84f89 100644--- a/langchain/llms/gpt4all.py+++ b/langchain/llms/gpt4all.py@@ -92,6 +92,9 @@ class GPT4All(LLM):"""Leave (n_ctx * context_erase) tokensstarting from beginning if the context has run out."""+ allow_download: bool = False+ """If model does not exist in ~/.cache/gpt4all/, download it."""+client: Any = None #: :meta private:class Config:@@ -145,7 +148,7 @@ class GPT4All(LLM):model_name,model_path=model_path or None,model_type=values["backend"],- allow_download=False,+ allow_download=values["allow_download"],)if values["n_threads"] is not None:# set n_threads