diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-11-19 15:26:03 +0100 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-11-19 15:26:03 +0100 |
commit | 8f3fbee0d8a4ca69af72dae989ae8954181d0108 (patch) | |
tree | 0481d391ff397c7d4be93a7224c3717e03ae2b3f /g4f/client | |
parent | Fix generate messages on error in gui (diff) | |
download | gpt4free-8f3fbee0d8a4ca69af72dae989ae8954181d0108.tar gpt4free-8f3fbee0d8a4ca69af72dae989ae8954181d0108.tar.gz gpt4free-8f3fbee0d8a4ca69af72dae989ae8954181d0108.tar.bz2 gpt4free-8f3fbee0d8a4ca69af72dae989ae8954181d0108.tar.lz gpt4free-8f3fbee0d8a4ca69af72dae989ae8954181d0108.tar.xz gpt4free-8f3fbee0d8a4ca69af72dae989ae8954181d0108.tar.zst gpt4free-8f3fbee0d8a4ca69af72dae989ae8954181d0108.zip |
Diffstat (limited to 'g4f/client')
-rw-r--r-- | g4f/client/service.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/g4f/client/service.py b/g4f/client/service.py index aa209b22..44533ece 100644 --- a/g4f/client/service.py +++ b/g4f/client/service.py @@ -83,11 +83,10 @@ def get_model_and_provider(model : Union[Model, str], if not ignore_stream and not provider.supports_stream and stream: raise StreamNotSupportedError(f'{provider.__name__} does not support "stream" argument') - if debug.logging: - if model: - print(f'Using {provider.__name__} provider and {model} model') - else: - print(f'Using {provider.__name__} provider') + if model: + debug.log(f'Using {provider.__name__} provider and {model} model') + else: + debug.log(f'Using {provider.__name__} provider') debug.last_provider = provider debug.last_model = model |