Update Bing.py

pull/1933/head 0.3.1.0
H Lohaus 3 weeks ago committed by GitHub
parent 03e5f10992
commit ee7428e767
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save