From 8fea0529c1be9c9f5308a9b5a51f8381067a269a Mon Sep 17 00:00:00 2001 From: Ralph Schlosser Date: Sun, 4 Jun 2023 15:21:16 +0100 Subject: [PATCH] This fixes issue #5651 - GPT4All wrapper loading issue (#5657) Fixes #5651 Small typo in wrapper code. Note the `model_type` parameter is currently unused by GPT4All. https://github.com/hwchase17/langchain/issues/5651 #### Who can review? --- langchain/llms/gpt4all.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain/llms/gpt4all.py b/langchain/llms/gpt4all.py index 8fc9e84f..e4083847 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