summaryrefslogtreecommitdiffstats
path: root/g4f/__init__.py
diff options
context:
space:
mode:
authorhs_junxiang <jimmy871117@gmail.com>2023-10-19 04:15:38 +0200
committerhs_junxiang <jimmy871117@gmail.com>2023-10-19 04:15:38 +0200
commit042ee7633b71b23ec67f22ece63d9d8b50a3d46b (patch)
tree8ce5a5e3baabf035dd4840e30938dd4be659a40c /g4f/__init__.py
parent~ (diff)
downloadgpt4free-042ee7633b71b23ec67f22ece63d9d8b50a3d46b.tar
gpt4free-042ee7633b71b23ec67f22ece63d9d8b50a3d46b.tar.gz
gpt4free-042ee7633b71b23ec67f22ece63d9d8b50a3d46b.tar.bz2
gpt4free-042ee7633b71b23ec67f22ece63d9d8b50a3d46b.tar.lz
gpt4free-042ee7633b71b23ec67f22ece63d9d8b50a3d46b.tar.xz
gpt4free-042ee7633b71b23ec67f22ece63d9d8b50a3d46b.tar.zst
gpt4free-042ee7633b71b23ec67f22ece63d9d8b50a3d46b.zip
Diffstat (limited to 'g4f/__init__.py')
-rw-r--r--g4f/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/g4f/__init__.py b/g4f/__init__.py
index e859dda5..492d4e5b 100644
--- a/g4f/__init__.py
+++ b/g4f/__init__.py
@@ -48,6 +48,7 @@ def get_model_and_provider(model : Union[Model, str],
raise ValueError(f'{provider.__name__} does not support "stream" argument')
if logging:
+ RetryProvider.logging = True
print(f'Using {provider.__name__} provider')
return model, provider