diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-02-28 07:36:43 +0100 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-02-28 07:36:43 +0100 |
commit | ac86e576d20b42a983c9c81dddd067d6e4d51cf4 (patch) | |
tree | dc1c64ceb4922c451d6c7f304f2a5d5692e96349 /g4f/providers | |
parent | Update some providers (diff) | |
download | gpt4free-ac86e576d20b42a983c9c81dddd067d6e4d51cf4.tar gpt4free-ac86e576d20b42a983c9c81dddd067d6e4d51cf4.tar.gz gpt4free-ac86e576d20b42a983c9c81dddd067d6e4d51cf4.tar.bz2 gpt4free-ac86e576d20b42a983c9c81dddd067d6e4d51cf4.tar.lz gpt4free-ac86e576d20b42a983c9c81dddd067d6e4d51cf4.tar.xz gpt4free-ac86e576d20b42a983c9c81dddd067d6e4d51cf4.tar.zst gpt4free-ac86e576d20b42a983c9c81dddd067d6e4d51cf4.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/providers/base_provider.py | 2 | ||||
-rw-r--r-- | g4f/providers/types.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/g4f/providers/base_provider.py b/g4f/providers/base_provider.py index b8649ba5..17c45875 100644 --- a/g4f/providers/base_provider.py +++ b/g4f/providers/base_provider.py @@ -270,7 +270,7 @@ class ProviderModelMixin: @classmethod def get_model(cls, model: str) -> str: - if not model: + if not model and cls.default_model is not None: model = cls.default_model elif model in cls.model_aliases: model = cls.model_aliases[model] diff --git a/g4f/providers/types.py b/g4f/providers/types.py index 50080a96..67340958 100644 --- a/g4f/providers/types.py +++ b/g4f/providers/types.py @@ -26,6 +26,7 @@ class BaseProvider(ABC): supports_gpt_35_turbo: bool = False supports_gpt_4: bool = False supports_message_history: bool = False + supports_system_message: bool = False params: str @classmethod |