summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/OpenaiChat.py
diff options
context:
space:
mode:
authorTekky <98614666+xtekky@users.noreply.github.com>2023-09-11 13:33:21 +0200
committerGitHub <noreply@github.com>2023-09-11 13:33:21 +0200
commitedee7e72c012263a0dd0c58d2d6ab1406608b7df (patch)
treef2709fd38f637936a12a56993fa181cb9c0e8cbd /g4f/Provider/OpenaiChat.py
parent~ (diff)
parentAdd ChatBase Provider (diff)
downloadgpt4free-edee7e72c012263a0dd0c58d2d6ab1406608b7df.tar
gpt4free-edee7e72c012263a0dd0c58d2d6ab1406608b7df.tar.gz
gpt4free-edee7e72c012263a0dd0c58d2d6ab1406608b7df.tar.bz2
gpt4free-edee7e72c012263a0dd0c58d2d6ab1406608b7df.tar.lz
gpt4free-edee7e72c012263a0dd0c58d2d6ab1406608b7df.tar.xz
gpt4free-edee7e72c012263a0dd0c58d2d6ab1406608b7df.tar.zst
gpt4free-edee7e72c012263a0dd0c58d2d6ab1406608b7df.zip
Diffstat (limited to 'g4f/Provider/OpenaiChat.py')
-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}",