Updated provider (g4f/Provider/nexra/NexraChatGptV2.py)

This commit is contained in:
kqlio67 2024-10-21 21:35:47 +03:00
parent e08b992f33
commit b2f4c34fd3

View File

@ -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