Skip to content
This repository was archived by the owner on Aug 10, 2023. It is now read-only.

Commit ba73611

Browse files
author
Antonio Cheong
committed
Fix auth bug and bump version
1 parent 55f2632 commit ba73611

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup, find_packages
22
setup(
33
name = "revChatGPT",
4-
version = "0.0.11",
4+
version = "0.0.13",
55
license = "GNU General Public License v2.0",
66
author = "Antonio Cheong",
77
author_email = "acheong@student.dalat.org",

src/revChatGPT/revChatGPT.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def refresh_session(self):
6767
response = s.get("https://chat.openai.com/api/auth/session")
6868
try:
6969
self.config['session_token'] = response.cookies.get("__Secure-next-auth.session-token")
70-
self.headers['Authorization'] = response.json()["accessToken"]
70+
self.config['Authorization'] = response.json()["accessToken"]
7171
self.refresh_headers()
7272
except Exception as e:
7373
print("Error refreshing session")

0 commit comments

Comments
 (0)