diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-04-23 17:38:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-23 17:38:42 +0200 |
commit | 10f25fdcaf5bf74abc798c70d218ce481116c217 (patch) | |
tree | d0c06f94dd1c5be203fb02b95e22c51ff976be88 /g4f/Provider/openai | |
parent | Merge pull request #1880 from Strvm/feat/credit_meta (diff) | |
parent | Add conversation title change in gui (diff) | |
download | gpt4free-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 'g4f/Provider/openai')
-rw-r--r-- | g4f/Provider/openai/har_file.py | 3 |
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: |