mirror of https://github.com/xtekky/gpt4free.git
Update Bing.py
This commit is contained in:
parent
03e5f10992
commit
ee7428e767
|
@ -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…
Reference in New Issue