Skip to content

The agent engineering platform.

This fixes issue #5651 - GPT4All wrapper loading issue (#5657)

Ralph Schlosser8fea0529c1be
diff --git a/langchain/llms/gpt4all.py b/langchain/llms/gpt4all.py
index 8fc9e84f89..e4083847b9 100644
--- a/langchain/llms/gpt4all.py
+++ b/langchain/llms/gpt4all.py
@@ -153,7 +153,7 @@ class GPT4All(LLM):
if values["n_threads"] is not None:
# set n_threads
values["client"].model.set_thread_count(values["n_threads"])
- values["backend"] = values["client"].model.model_type
+ values["backend"] = values["client"].model_type
return values