mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-24 03:23:49 +03:00
update providers (g4f/Provider/nexra/NexraChatGptV2.py)
This commit is contained in:
parent
eb52e0b984
commit
e08b992f33
@ -64,7 +64,7 @@ class NexraChatGptV2(AbstractProvider, ProviderModelMixin):
|
|||||||
def process_non_streaming_response(cls, response):
|
def process_non_streaming_response(cls, response):
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
try:
|
try:
|
||||||
content = response.text.lstrip('`')
|
content = response.text.lstrip('')
|
||||||
data = json.loads(content)
|
data = json.loads(content)
|
||||||
return data.get('message', '')
|
return data.get('message', '')
|
||||||
except json.JSONDecodeError:
|
except json.JSONDecodeError:
|
||||||
|
Loading…
Reference in New Issue
Block a user