diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-03-16 20:15:53 +0100 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-03-16 20:15:53 +0100 |
commit | 8ed63693e41d2b8793dc8f6ea2ae0acee6cc9852 (patch) | |
tree | 1938e3158ca4c2c0735c8d3a72e7858d8fc51842 /g4f | |
parent | Merge pull request #1715 from hlohaus/giga (diff) | |
download | gpt4free-8ed63693e41d2b8793dc8f6ea2ae0acee6cc9852.tar gpt4free-8ed63693e41d2b8793dc8f6ea2ae0acee6cc9852.tar.gz gpt4free-8ed63693e41d2b8793dc8f6ea2ae0acee6cc9852.tar.bz2 gpt4free-8ed63693e41d2b8793dc8f6ea2ae0acee6cc9852.tar.lz gpt4free-8ed63693e41d2b8793dc8f6ea2ae0acee6cc9852.tar.xz gpt4free-8ed63693e41d2b8793dc8f6ea2ae0acee6cc9852.tar.zst gpt4free-8ed63693e41d2b8793dc8f6ea2ae0acee6cc9852.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/__init__.py b/g4f/__init__.py index dce116c4..14405e92 100644 --- a/g4f/__init__.py +++ b/g4f/__init__.py @@ -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): |