summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/nexra/NexraChatGptV2.py
diff options
context:
space:
mode:
authorkqlio67 <kqlio67@users.noreply.github.com>2024-10-21 20:33:26 +0200
committerkqlio67 <kqlio67@users.noreply.github.com>2024-10-21 20:33:26 +0200
commite08b992f3383cc9416d74612f0ff3d5bfe7f55a7 (patch)
treeec40843ba5ded20151256dc969e969301d273fa2 /g4f/Provider/nexra/NexraChatGptV2.py
parentRestored providers (g4f/Provider/nexra/NexraChatGptV2.py) (diff)
downloadgpt4free-e08b992f3383cc9416d74612f0ff3d5bfe7f55a7.tar
gpt4free-e08b992f3383cc9416d74612f0ff3d5bfe7f55a7.tar.gz
gpt4free-e08b992f3383cc9416d74612f0ff3d5bfe7f55a7.tar.bz2
gpt4free-e08b992f3383cc9416d74612f0ff3d5bfe7f55a7.tar.lz
gpt4free-e08b992f3383cc9416d74612f0ff3d5bfe7f55a7.tar.xz
gpt4free-e08b992f3383cc9416d74612f0ff3d5bfe7f55a7.tar.zst
gpt4free-e08b992f3383cc9416d74612f0ff3d5bfe7f55a7.zip
Diffstat (limited to 'g4f/Provider/nexra/NexraChatGptV2.py')
-rw-r--r--g4f/Provider/nexra/NexraChatGptV2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/Provider/nexra/NexraChatGptV2.py b/g4f/Provider/nexra/NexraChatGptV2.py
index 4ba21b28..ae5fdaa9 100644
--- a/g4f/Provider/nexra/NexraChatGptV2.py
+++ b/g4f/Provider/nexra/NexraChatGptV2.py
@@ -64,7 +64,7 @@ class NexraChatGptV2(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: