From 8f48c41562ddef03a41bdba99ddf31bd44c10917 Mon Sep 17 00:00:00 2001 From: abc <98614666+xtekky@users.noreply.github.com> Date: Sun, 17 Sep 2023 22:27:48 +0100 Subject: ~ --- g4f/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3