summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/CreateImagesBing.py
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-02-09 18:51:27 +0100
committerGitHub <noreply@github.com>2024-02-09 18:51:27 +0100
commit6c7c293fd16b970d857c888b5108334f00b27a19 (patch)
tree3deecb18f982e133cb3b0337ffb0bdcbb607a212 /g4f/Provider/CreateImagesBing.py
parentUpdate OpenaiChat.py (diff)
parentUpdate Gemini.py (diff)
downloadgpt4free-6c7c293fd16b970d857c888b5108334f00b27a19.tar
gpt4free-6c7c293fd16b970d857c888b5108334f00b27a19.tar.gz
gpt4free-6c7c293fd16b970d857c888b5108334f00b27a19.tar.bz2
gpt4free-6c7c293fd16b970d857c888b5108334f00b27a19.tar.lz
gpt4free-6c7c293fd16b970d857c888b5108334f00b27a19.tar.xz
gpt4free-6c7c293fd16b970d857c888b5108334f00b27a19.tar.zst
gpt4free-6c7c293fd16b970d857c888b5108334f00b27a19.zip
Diffstat (limited to 'g4f/Provider/CreateImagesBing.py')
-rw-r--r--g4f/Provider/CreateImagesBing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/Provider/CreateImagesBing.py b/g4f/Provider/CreateImagesBing.py
index 4d045188..59eafe0c 100644
--- a/g4f/Provider/CreateImagesBing.py
+++ b/g4f/Provider/CreateImagesBing.py
@@ -88,7 +88,7 @@ class CreateImagesBing:
cookies = self.cookies or get_cookies(".bing.com", False)
if "_U" not in cookies:
raise MissingAuthError('Missing "_U" cookie')
- proxy = os.environ.get("G4F_PROXY")
+ proxy = self.proxy or os.environ.get("G4F_PROXY")
async with create_session(cookies, proxy) as session:
- images = await create_images(session, prompt, self.proxy)
+ images = await create_images(session, prompt, proxy)
return ImageResponse(images, prompt, {"preview": "{image}?w=200&h=200"}) \ No newline at end of file