Fix GPT4All import error

This commit is contained in:
Heiner Lohaus 2024-04-12 22:44:56 +02:00
parent 7d0197dc2e
commit a053c29020

View File

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