From d53fc931a3cb059851eae7f4ffc1f515d4091998 Mon Sep 17 00:00:00 2001 From: abc <98614666+xtekky@users.noreply.github.com> Date: Mon, 14 Aug 2023 01:02:01 +0200 Subject: small fixes & new pypi version --- g4f/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f/__init__.py') 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' -- cgit v1.2.3