summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/OpenaiChat.py
diff options
context:
space:
mode:
authorHeiner Lohaus <heiner.lohaus@netformic.com>2023-09-09 23:07:00 +0200
committerHeiner Lohaus <heiner.lohaus@netformic.com>2023-09-09 23:07:00 +0200
commitddb6fa30d9b0a5c0c7a611969c9439b39a597214 (patch)
treec54215cc6f57f2f3c49160cfe705fc38f20a8a8d /g4f/Provider/OpenaiChat.py
parent~ (diff)
downloadgpt4free-ddb6fa30d9b0a5c0c7a611969c9439b39a597214.tar
gpt4free-ddb6fa30d9b0a5c0c7a611969c9439b39a597214.tar.gz
gpt4free-ddb6fa30d9b0a5c0c7a611969c9439b39a597214.tar.bz2
gpt4free-ddb6fa30d9b0a5c0c7a611969c9439b39a597214.tar.lz
gpt4free-ddb6fa30d9b0a5c0c7a611969c9439b39a597214.tar.xz
gpt4free-ddb6fa30d9b0a5c0c7a611969c9439b39a597214.tar.zst
gpt4free-ddb6fa30d9b0a5c0c7a611969c9439b39a597214.zip
Diffstat (limited to '')
-rw-r--r--g4f/Provider/OpenaiChat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/Provider/OpenaiChat.py b/g4f/Provider/OpenaiChat.py
index c93977ec..cbe886f0 100644
--- a/g4f/Provider/OpenaiChat.py
+++ b/g4f/Provider/OpenaiChat.py
@@ -34,7 +34,7 @@ class OpenaiChat(AsyncProvider):
"https": proxy
}
if not access_token:
- access_token = await cls.get_access_token(cookies)
+ access_token = await cls.get_access_token(cookies, proxies)
headers = {
"Accept": "text/event-stream",
"Authorization": f"Bearer {access_token}",