mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-09 22:28:52 +03:00
~
This commit is contained in:
parent
54f4f3904e
commit
8f48c41562
@ -21,9 +21,8 @@ class ChatCompletion:
|
||||
except KeyError:
|
||||
raise Exception(f'The model: {model} does not exist')
|
||||
|
||||
|
||||
if not provider:
|
||||
if isinstance(model.best_provider, tuple):
|
||||
if isinstance(model.best_provider, list):
|
||||
provider = random.choice(model.best_provider)
|
||||
else:
|
||||
provider = model.best_provider
|
||||
|
Loading…
Reference in New Issue
Block a user