summaryrefslogtreecommitdiffstats
path: root/g4f/Provider
diff options
context:
space:
mode:
authorkqlio67 <kqlio67@users.noreply.github.com>2024-11-07 10:41:16 +0100
committerkqlio67 <kqlio67@users.noreply.github.com>2024-11-07 10:41:16 +0100
commit1a8869238204c91d34b0c1df1756d609c48f7052 (patch)
treef7141ddf23db54b951be1668cc63515e7c4cb939 /g4f/Provider
parentUpdate (g4f/Provider/) (diff)
downloadgpt4free-1a8869238204c91d34b0c1df1756d609c48f7052.tar
gpt4free-1a8869238204c91d34b0c1df1756d609c48f7052.tar.gz
gpt4free-1a8869238204c91d34b0c1df1756d609c48f7052.tar.bz2
gpt4free-1a8869238204c91d34b0c1df1756d609c48f7052.tar.lz
gpt4free-1a8869238204c91d34b0c1df1756d609c48f7052.tar.xz
gpt4free-1a8869238204c91d34b0c1df1756d609c48f7052.tar.zst
gpt4free-1a8869238204c91d34b0c1df1756d609c48f7052.zip
Diffstat (limited to 'g4f/Provider')
-rw-r--r--g4f/Provider/ChatGpt.py1
-rw-r--r--g4f/Provider/DarkAI.py6
2 files changed, 3 insertions, 4 deletions
diff --git a/g4f/Provider/ChatGpt.py b/g4f/Provider/ChatGpt.py
index 9304e4a0..02bbbcc4 100644
--- a/g4f/Provider/ChatGpt.py
+++ b/g4f/Provider/ChatGpt.py
@@ -210,7 +210,6 @@ class ChatGpt(AbstractProvider, ProviderModelMixin):
for line in response.iter_lines():
if line:
decoded_line = line.decode()
- print(decoded_line)
if decoded_line.startswith('data:'):
json_string = decoded_line[6:].strip()
diff --git a/g4f/Provider/DarkAI.py b/g4f/Provider/DarkAI.py
index 54f456fe..06e2bd55 100644
--- a/g4f/Provider/DarkAI.py
+++ b/g4f/Provider/DarkAI.py
@@ -75,9 +75,9 @@ class DarkAI(AsyncGeneratorProvider, ProviderModelMixin):
yield full_text.strip()
return
except json.JSONDecodeError:
- print(f"Failed to decode JSON: {chunk_str}")
- except Exception as e:
- print(f"Error processing chunk: {e}")
+ pass
+ except Exception:
+ pass
if full_text:
yield full_text.strip()