summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
Diffstat (limited to 'g4f')
-rw-r--r--g4f/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/g4f/__init__.py b/g4f/__init__.py
index 5dead0e9..d8681297 100644
--- a/g4f/__init__.py
+++ b/g4f/__init__.py
@@ -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