summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/bing/conversation.py
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-01-04 00:38:31 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-01-04 00:38:31 +0100
commit139f68af4f331943d441cad9f0ab7b020ef90cd8 (patch)
tree1691d7f9e62191e57e84bf91c6d852d37784bb00 /g4f/Provider/bing/conversation.py
parentAdd create images to Bing (diff)
downloadgpt4free-139f68af4f331943d441cad9f0ab7b020ef90cd8.tar
gpt4free-139f68af4f331943d441cad9f0ab7b020ef90cd8.tar.gz
gpt4free-139f68af4f331943d441cad9f0ab7b020ef90cd8.tar.bz2
gpt4free-139f68af4f331943d441cad9f0ab7b020ef90cd8.tar.lz
gpt4free-139f68af4f331943d441cad9f0ab7b020ef90cd8.tar.xz
gpt4free-139f68af4f331943d441cad9f0ab7b020ef90cd8.tar.zst
gpt4free-139f68af4f331943d441cad9f0ab7b020ef90cd8.zip
Diffstat (limited to 'g4f/Provider/bing/conversation.py')
-rw-r--r--g4f/Provider/bing/conversation.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/g4f/Provider/bing/conversation.py b/g4f/Provider/bing/conversation.py
index 8b33853c..ef45cd82 100644
--- a/g4f/Provider/bing/conversation.py
+++ b/g4f/Provider/bing/conversation.py
@@ -35,9 +35,9 @@ async def delete_conversation(session: ClientSession, conversation: Conversation
"source": "cib",
"optionsSets": ["autosave"]
}
- async with session.post(url, json=json, proxy=proxy) as response:
- try:
+ try:
+ async with session.post(url, json=json, proxy=proxy) as response:
response = await response.json()
return response["result"]["value"] == "Success"
- except:
- return False
+ except:
+ return False \ No newline at end of file