Update Bing.py

This commit is contained in:
H Lohaus 2024-05-07 07:41:58 +02:00 committed by GitHub
parent 03e5f10992
commit ee7428e767
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -468,7 +468,7 @@ async def stream_generate(
continue
try:
response = json.loads(obj)
except json.JSONDecodeError:
except ValueError:
continue
if response and response.get('type') == 1 and response['arguments'][0].get('messages'):
message = response['arguments'][0]['messages'][0]