From a053c29020f7a818c6cab40e4e3659291915b630 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Fri, 12 Apr 2024 22:44:56 +0200 Subject: Fix GPT4All import error --- g4f/Provider/Local.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'g4f') diff --git a/g4f/Provider/Local.py b/g4f/Provider/Local.py index c08064b9..471231c6 100644 --- a/g4f/Provider/Local.py +++ b/g4f/Provider/Local.py @@ -4,7 +4,7 @@ from ..locals.models import get_models try: from ..locals.provider import LocalProvider has_requirements = True -except ModuleNotFoundError: +except ImportError: has_requirements = False from ..typing import Messages, CreateResult @@ -12,7 +12,7 @@ from ..providers.base_provider import AbstractProvider, ProviderModelMixin from ..errors import MissingRequirementsError class Local(AbstractProvider, ProviderModelMixin): - label = "gpt4all" + label = "GPT4All" working = True supports_message_history = True supports_system_message = True -- cgit v1.2.3