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?
This commit is contained in:
Ralph Schlosser 2023-06-04 15:21:16 +01:00 committed by GitHub
parent 6a3ceaa377
commit 8fea0529c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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