diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-04-11 02:40:30 +0200 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-04-11 02:40:30 +0200 |
commit | 009a67239a1df546fd22933a6b28eda03cd02a00 (patch) | |
tree | 6428fc06fe339e1c7cb197594dcb7399979a2e19 /g4f/Provider/bing/create_images.py | |
parent | Increase conversation title lenght (diff) | |
download | gpt4free-009a67239a1df546fd22933a6b28eda03cd02a00.tar gpt4free-009a67239a1df546fd22933a6b28eda03cd02a00.tar.gz gpt4free-009a67239a1df546fd22933a6b28eda03cd02a00.tar.bz2 gpt4free-009a67239a1df546fd22933a6b28eda03cd02a00.tar.lz gpt4free-009a67239a1df546fd22933a6b28eda03cd02a00.tar.xz gpt4free-009a67239a1df546fd22933a6b28eda03cd02a00.tar.zst gpt4free-009a67239a1df546fd22933a6b28eda03cd02a00.zip |
Diffstat (limited to 'g4f/Provider/bing/create_images.py')
-rw-r--r-- | g4f/Provider/bing/create_images.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/Provider/bing/create_images.py b/g4f/Provider/bing/create_images.py index cb357708..44303c21 100644 --- a/g4f/Provider/bing/create_images.py +++ b/g4f/Provider/bing/create_images.py @@ -151,7 +151,7 @@ async def create_images(session: ClientSession, prompt: str, proxy: str = None, if response.status != 200: raise RuntimeError(f"Polling images faild. Code: {response.status}") text = await response.text() - if not text: + if not text or "GenerativeImagesStatusPage" in text: await asyncio.sleep(1) else: break |