Spaces:
Runtime error
Runtime error
Synced repo using 'sync_with_huggingface' Github Action
Browse files- g4f/__init__.py +1 -1
g4f/__init__.py
CHANGED
@@ -5,7 +5,7 @@ from g4f.models import Model, ModelUtils
|
|
5 |
|
6 |
class ChatCompletion:
|
7 |
@staticmethod
|
8 |
-
def create(
|
9 |
kwargs['auth'] = auth
|
10 |
|
11 |
if provider and provider.needs_auth and not auth:
|
|
|
5 |
|
6 |
class ChatCompletion:
|
7 |
@staticmethod
|
8 |
+
def create(model: Model.model or str, messages: list, api_key: str = None, provider: Provider.Provider = None, stream: bool = False, auth: str = False, **kwargs):
|
9 |
kwargs['auth'] = auth
|
10 |
|
11 |
if provider and provider.needs_auth and not auth:
|