diff options
author | Tekky <98614666+xtekky@users.noreply.github.com> | 2023-10-22 23:55:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-22 23:55:32 +0200 |
commit | 955fb4bbaa3c31787bbe699aa913f22ec3a4a639 (patch) | |
tree | c298e3feb1110b047a74cdb224024b412712323a /g4f/__init__.py | |
parent | Merge pull request #1122 from Luneye/patch-2 (diff) | |
parent | Debug logging support (diff) | |
download | gpt4free-955fb4bbaa3c31787bbe699aa913f22ec3a4a639.tar gpt4free-955fb4bbaa3c31787bbe699aa913f22ec3a4a639.tar.gz gpt4free-955fb4bbaa3c31787bbe699aa913f22ec3a4a639.tar.bz2 gpt4free-955fb4bbaa3c31787bbe699aa913f22ec3a4a639.tar.lz gpt4free-955fb4bbaa3c31787bbe699aa913f22ec3a4a639.tar.xz gpt4free-955fb4bbaa3c31787bbe699aa913f22ec3a4a639.tar.zst gpt4free-955fb4bbaa3c31787bbe699aa913f22ec3a4a639.zip |
Diffstat (limited to 'g4f/__init__.py')
-rw-r--r-- | g4f/__init__.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/g4f/__init__.py b/g4f/__init__.py index 0f7e4459..813c2364 100644 --- a/g4f/__init__.py +++ b/g4f/__init__.py @@ -3,7 +3,7 @@ from requests import get from .models import Model, ModelUtils, _all_models from .Provider import BaseProvider, RetryProvider from .typing import Messages, CreateResult, Union, List -from .debug import logging +from . import debug version = '0.1.7.4' version_check = True @@ -46,8 +46,7 @@ def get_model_and_provider(model : Union[Model, str], if not provider.supports_stream and stream: raise ValueError(f'{provider.__name__} does not support "stream" argument') - if logging: - RetryProvider.logging = True + if debug.logging: print(f'Using {provider.__name__} provider') return model, provider |