summaryrefslogtreecommitdiffstats
path: root/g4f/__init__.py
diff options
context:
space:
mode:
authorabc <98614666+xtekky@users.noreply.github.com>2023-08-14 01:02:01 +0200
committerabc <98614666+xtekky@users.noreply.github.com>2023-08-14 01:02:01 +0200
commitd53fc931a3cb059851eae7f4ffc1f515d4091998 (patch)
treea7f36371063e34abe98679ee358ce3479271ae01 /g4f/__init__.py
parentMerge pull request #801 from johnd0e/fix-ails (diff)
downloadgpt4free-d53fc931a3cb059851eae7f4ffc1f515d4091998.tar
gpt4free-d53fc931a3cb059851eae7f4ffc1f515d4091998.tar.gz
gpt4free-d53fc931a3cb059851eae7f4ffc1f515d4091998.tar.bz2
gpt4free-d53fc931a3cb059851eae7f4ffc1f515d4091998.tar.lz
gpt4free-d53fc931a3cb059851eae7f4ffc1f515d4091998.tar.xz
gpt4free-d53fc931a3cb059851eae7f4ffc1f515d4091998.tar.zst
gpt4free-d53fc931a3cb059851eae7f4ffc1f515d4091998.zip
Diffstat (limited to '')
-rw-r--r--g4f/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/__init__.py b/g4f/__init__.py
index e5d3d4bf..d04d2c78 100644
--- a/g4f/__init__.py
+++ b/g4f/__init__.py
@@ -6,7 +6,7 @@ logging = False
class ChatCompletion:
@staticmethod
- def create(model: models.Model | str, messages: list, provider: Provider.Provider = None, stream: bool = False, auth: str = False, **kwargs):
+ def create(model: models.Model or str, messages: list, provider: Provider.Provider = None, stream: bool = False, auth: str = False, **kwargs):
kwargs['auth'] = auth
if provider and provider.working == False:
return f'{provider.__name__} is not working'