summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/openai/har_file.py
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-04-23 17:38:42 +0200
committerGitHub <noreply@github.com>2024-04-23 17:38:42 +0200
commit10f25fdcaf5bf74abc798c70d218ce481116c217 (patch)
treed0c06f94dd1c5be203fb02b95e22c51ff976be88 /g4f/Provider/openai/har_file.py
parentMerge pull request #1880 from Strvm/feat/credit_meta (diff)
parentAdd conversation title change in gui (diff)
downloadgpt4free-10f25fdcaf5bf74abc798c70d218ce481116c217.tar
gpt4free-10f25fdcaf5bf74abc798c70d218ce481116c217.tar.gz
gpt4free-10f25fdcaf5bf74abc798c70d218ce481116c217.tar.bz2
gpt4free-10f25fdcaf5bf74abc798c70d218ce481116c217.tar.lz
gpt4free-10f25fdcaf5bf74abc798c70d218ce481116c217.tar.xz
gpt4free-10f25fdcaf5bf74abc798c70d218ce481116c217.tar.zst
gpt4free-10f25fdcaf5bf74abc798c70d218ce481116c217.zip
Diffstat (limited to '')
-rw-r--r--g4f/Provider/openai/har_file.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/g4f/Provider/openai/har_file.py b/g4f/Provider/openai/har_file.py
index da25b637..6a34c97a 100644
--- a/g4f/Provider/openai/har_file.py
+++ b/g4f/Provider/openai/har_file.py
@@ -30,6 +30,7 @@ sessionUrl = "https://chat.openai.com/api/auth/session"
chatArk: arkReq = None
accessToken: str = None
cookies: dict = None
+headers: dict = None
def readHAR():
dirPath = "./"
@@ -130,7 +131,7 @@ def getN() -> str:
return base64.b64encode(timestamp.encode()).decode()
async def getArkoseAndAccessToken(proxy: str) -> tuple[str, str, dict, dict]:
- global chatArk, accessToken, cookies
+ global chatArk, accessToken, cookies, headers
if chatArk is None or accessToken is None:
chatArk, accessToken, cookies, headers = readHAR()
if chatArk is None: