diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-05-07 07:41:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-07 07:41:58 +0200 |
commit | ee7428e767073bba84f553dff2edce060a74bf9a (patch) | |
tree | 2f268e7a8fa9cc8ff42c4114f55bfc326a24eed3 /g4f/Provider/Bing.py | |
parent | Update BingCreateImages.py (diff) | |
download | gpt4free-0.3.1.0.tar gpt4free-0.3.1.0.tar.gz gpt4free-0.3.1.0.tar.bz2 gpt4free-0.3.1.0.tar.lz gpt4free-0.3.1.0.tar.xz gpt4free-0.3.1.0.tar.zst gpt4free-0.3.1.0.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/Bing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/Provider/Bing.py b/g4f/Provider/Bing.py index 046c05c1..4056f9ff 100644 --- a/g4f/Provider/Bing.py +++ b/g4f/Provider/Bing.py @@ -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] |