summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
authorkqlio67 <kqlio67@users.noreply.github.com>2024-10-21 20:54:55 +0200
committerkqlio67 <kqlio67@users.noreply.github.com>2024-10-21 20:54:55 +0200
commit7c51d2fa250798b9b7ae792c142c94cd325e1dd4 (patch)
treef204f1ffaa0f23e8e3f81dd47722b04ac4f8d7f3 /g4f
parentRestored provider (g4f/Provider/nexra/NexraGeminiPro.py) (diff)
downloadgpt4free-7c51d2fa250798b9b7ae792c142c94cd325e1dd4.tar
gpt4free-7c51d2fa250798b9b7ae792c142c94cd325e1dd4.tar.gz
gpt4free-7c51d2fa250798b9b7ae792c142c94cd325e1dd4.tar.bz2
gpt4free-7c51d2fa250798b9b7ae792c142c94cd325e1dd4.tar.lz
gpt4free-7c51d2fa250798b9b7ae792c142c94cd325e1dd4.tar.xz
gpt4free-7c51d2fa250798b9b7ae792c142c94cd325e1dd4.tar.zst
gpt4free-7c51d2fa250798b9b7ae792c142c94cd325e1dd4.zip
Diffstat (limited to 'g4f')
-rw-r--r--g4f/Provider/nexra/NexraGeminiPro.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/Provider/nexra/NexraGeminiPro.py b/g4f/Provider/nexra/NexraGeminiPro.py
index 2d1ce343..0abcf1a8 100644
--- a/g4f/Provider/nexra/NexraGeminiPro.py
+++ b/g4f/Provider/nexra/NexraGeminiPro.py
@@ -59,7 +59,7 @@ class NexraGeminiPro(AbstractProvider, ProviderModelMixin):
def process_non_streaming_response(cls, response):
if response.status_code == 200:
try:
- content = response.text.lstrip('`')
+ content = response.text.lstrip('')
data = json.loads(content)
return data.get('message', '')
except json.JSONDecodeError:
@@ -73,7 +73,7 @@ class NexraGeminiPro(AbstractProvider, ProviderModelMixin):
for line in response.iter_lines(decode_unicode=True):
if line:
try:
- line = line.lstrip('`')
+ line = line.lstrip('')
data = json.loads(line)
if data.get('finish'):
break