mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-24 03:23:49 +03:00
Updated provider (g4f/Provider/nexra/NexraChatGptV2.py)
This commit is contained in:
parent
e08b992f33
commit
b2f4c34fd3
@ -78,7 +78,7 @@ class NexraChatGptV2(AbstractProvider, ProviderModelMixin):
|
|||||||
for line in response.iter_lines(decode_unicode=True):
|
for line in response.iter_lines(decode_unicode=True):
|
||||||
if line:
|
if line:
|
||||||
try:
|
try:
|
||||||
line = line.lstrip('`')
|
line = line.lstrip('')
|
||||||
data = json.loads(line)
|
data = json.loads(line)
|
||||||
if data.get('finish'):
|
if data.get('finish'):
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user