This commit is contained in:
abc 2023-09-17 22:27:48 +01:00
parent 54f4f3904e
commit 8f48c41562

View File

@ -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