diff options
author | abc <98614666+xtekky@users.noreply.github.com> | 2024-04-13 03:46:20 +0200 |
---|---|---|
committer | abc <98614666+xtekky@users.noreply.github.com> | 2024-04-13 03:46:20 +0200 |
commit | ed8afc20e82b285cbaf5c222fa1e05d8d2651151 (patch) | |
tree | b50e4c6a6fcf7a618565bf9a9bddab4165e5c50f /g4f/client/service.py | |
parent | improve models list for gpt-3.5-turbo (diff) | |
download | gpt4free-ed8afc20e82b285cbaf5c222fa1e05d8d2651151.tar gpt4free-ed8afc20e82b285cbaf5c222fa1e05d8d2651151.tar.gz gpt4free-ed8afc20e82b285cbaf5c222fa1e05d8d2651151.tar.bz2 gpt4free-ed8afc20e82b285cbaf5c222fa1e05d8d2651151.tar.lz gpt4free-ed8afc20e82b285cbaf5c222fa1e05d8d2651151.tar.xz gpt4free-ed8afc20e82b285cbaf5c222fa1e05d8d2651151.tar.zst gpt4free-ed8afc20e82b285cbaf5c222fa1e05d8d2651151.zip |
Diffstat (limited to 'g4f/client/service.py')
-rw-r--r-- | g4f/client/service.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/g4f/client/service.py b/g4f/client/service.py index f3565f6d..d25c923d 100644 --- a/g4f/client/service.py +++ b/g4f/client/service.py @@ -55,9 +55,10 @@ def get_model_and_provider(model : Union[Model, str], provider = convert_to_provider(provider) if isinstance(model, str): + if model in ModelUtils.convert: model = ModelUtils.convert[model] - + if not provider: if isinstance(model, str): raise ModelNotFoundError(f'Model not found: {model}') |