summaryrefslogtreecommitdiffstats
path: root/g4f/Provider
diff options
context:
space:
mode:
authorkqlio67 <kqlio67@users.noreply.github.com>2024-10-21 21:12:46 +0200
committerkqlio67 <kqlio67@users.noreply.github.com>2024-10-21 21:12:46 +0200
commita1f97679f22ef84dcc3d920a2f659692ba679020 (patch)
treec36c74125432db408f6c28fff4813415f4cddfb6 /g4f/Provider
parentRestored provider g4f/Provider/nexra/NexraQwen.py (diff)
downloadgpt4free-a1f97679f22ef84dcc3d920a2f659692ba679020.tar
gpt4free-a1f97679f22ef84dcc3d920a2f659692ba679020.tar.gz
gpt4free-a1f97679f22ef84dcc3d920a2f659692ba679020.tar.bz2
gpt4free-a1f97679f22ef84dcc3d920a2f659692ba679020.tar.lz
gpt4free-a1f97679f22ef84dcc3d920a2f659692ba679020.tar.xz
gpt4free-a1f97679f22ef84dcc3d920a2f659692ba679020.tar.zst
gpt4free-a1f97679f22ef84dcc3d920a2f659692ba679020.zip
Diffstat (limited to 'g4f/Provider')
-rw-r--r--g4f/Provider/nexra/NexraQwen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/Provider/nexra/NexraQwen.py b/g4f/Provider/nexra/NexraQwen.py
index e2498ac0..574f198e 100644
--- a/g4f/Provider/nexra/NexraQwen.py
+++ b/g4f/Provider/nexra/NexraQwen.py
@@ -59,7 +59,7 @@ class NexraQwen(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 NexraQwen(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