From 15f1fe544572f9395163850810a28e665cc31fac Mon Sep 17 00:00:00 2001 From: Aaron Miller Date: Thu, 13 Jul 2023 18:23:20 -0400 Subject: [PATCH] rename embedder --- gpt4all-bindings/python/gpt4all/__init__.py | 2 +- gpt4all-bindings/python/gpt4all/gpt4all.py | 2 +- gpt4all-bindings/python/gpt4all/tests/test_gpt4all.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gpt4all-bindings/python/gpt4all/__init__.py b/gpt4all-bindings/python/gpt4all/__init__.py index 0b26abfe..71480e93 100644 --- a/gpt4all-bindings/python/gpt4all/__init__.py +++ b/gpt4all-bindings/python/gpt4all/__init__.py @@ -1,2 +1,2 @@ -from .gpt4all import GPT4All, Embedder # noqa +from .gpt4all import GPT4All, Embed4All # noqa from .pyllmodel import LLModel # noqa diff --git a/gpt4all-bindings/python/gpt4all/gpt4all.py b/gpt4all-bindings/python/gpt4all/gpt4all.py index cfe9e7ff..f828b572 100644 --- a/gpt4all-bindings/python/gpt4all/gpt4all.py +++ b/gpt4all-bindings/python/gpt4all/gpt4all.py @@ -15,7 +15,7 @@ from . import pyllmodel # TODO: move to config DEFAULT_MODEL_DIRECTORY = os.path.join(str(Path.home()), ".cache", "gpt4all").replace("\\", "\\\\") -class Embedder: +class Embed4All: def __init__( self ): diff --git a/gpt4all-bindings/python/gpt4all/tests/test_gpt4all.py b/gpt4all-bindings/python/gpt4all/tests/test_gpt4all.py index 82c761b5..e9c34470 100644 --- a/gpt4all-bindings/python/gpt4all/tests/test_gpt4all.py +++ b/gpt4all-bindings/python/gpt4all/tests/test_gpt4all.py @@ -1,7 +1,7 @@ import sys from io import StringIO -from gpt4all import GPT4All, Embedder +from gpt4all import GPT4All, Embed4All import time def test_inference():