monra commited on
Commit
d5cc4b5
1 Parent(s): 4ce8c19

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (1) hide show
  1. 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(api_key: str, model: Model.model or str, messages: list, 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:
 
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: