summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/Geekgpt.py
diff options
context:
space:
mode:
authorHeiner Lohaus <heiner@lohaus.eu>2023-10-22 17:13:13 +0200
committerHeiner Lohaus <heiner@lohaus.eu>2023-10-22 17:13:13 +0200
commitfc15181110680354364daad131f05ceb7caa8068 (patch)
tree9cc4e7401fdf42efdf6b42670acd3c2a72214ebf /g4f/Provider/Geekgpt.py
parentAdd rate limit error messages (diff)
downloadgpt4free-fc15181110680354364daad131f05ceb7caa8068.tar
gpt4free-fc15181110680354364daad131f05ceb7caa8068.tar.gz
gpt4free-fc15181110680354364daad131f05ceb7caa8068.tar.bz2
gpt4free-fc15181110680354364daad131f05ceb7caa8068.tar.lz
gpt4free-fc15181110680354364daad131f05ceb7caa8068.tar.xz
gpt4free-fc15181110680354364daad131f05ceb7caa8068.tar.zst
gpt4free-fc15181110680354364daad131f05ceb7caa8068.zip
Diffstat (limited to '')
-rw-r--r--g4f/Provider/Geekgpt.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/g4f/Provider/Geekgpt.py b/g4f/Provider/Geekgpt.py
index 3bbc0e75..3c577cf8 100644
--- a/g4f/Provider/Geekgpt.py
+++ b/g4f/Provider/Geekgpt.py
@@ -14,11 +14,15 @@ class GeekGpt(BaseProvider):
supports_gpt_4 = True
@classmethod
- def create_completion(cls,
- model: str,
- messages: Messages,
- stream: bool, **kwargs) -> CreateResult:
-
+ def create_completion(
+ cls,
+ model: str,
+ messages: Messages,
+ stream: bool,
+ **kwargs
+ ) -> CreateResult:
+ if not model:
+ model = "gpt-3.5-turbo"
json_data = {
'messages': messages,
'model': model,