summaryrefslogtreecommitdiffstats
path: root/g4f/providers
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-02-28 07:36:43 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-02-28 07:36:43 +0100
commitac86e576d20b42a983c9c81dddd067d6e4d51cf4 (patch)
treedc1c64ceb4922c451d6c7f304f2a5d5692e96349 /g4f/providers
parentUpdate some providers (diff)
downloadgpt4free-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 'g4f/providers')
-rw-r--r--g4f/providers/base_provider.py2
-rw-r--r--g4f/providers/types.py1
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