mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-26 20:54:28 +03:00
Fix GPT4All import error
This commit is contained in:
parent
7d0197dc2e
commit
a053c29020
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user