mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-05 00:01:00 +00:00
Fix Provider not found error
This commit is contained in:
parent
930ff2b888
commit
59b99a6452
@ -51,7 +51,7 @@ def get_model_and_provider(model : Union[Model, str],
|
||||
provider = IterProvider(provider_list)
|
||||
elif provider in ProviderUtils.convert:
|
||||
provider = ProviderUtils.convert[provider]
|
||||
else:
|
||||
elif provider:
|
||||
raise ProviderNotFoundError(f'Provider not found: {provider}')
|
||||
|
||||
if isinstance(model, str):
|
||||
|
Loading…
Reference in New Issue
Block a user