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

Commit 30eb000

Browse files
author
Antonio
committed
Custom PUID to avoid detection
1 parent 16a8de4 commit 30eb000

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ https://chat.openai.com/api/auth/session
7373
"model": "gpt-4", // gpt-4-browsing, text-davinci-002-render-sha, gpt-4, gpt-4-plugins
7474
"plugin_ids" : ["plugin-d1d6eb04-3375-40aa-940a-c2fc57ce0f51"], // Wolfram Alpha example
7575
"disable_history": true,
76+
"PUID": "<_puid cookie for plus accounts>" // Only if you have a plus account and use GPT-4
7677
}
7778
```
7879

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
setup(
1414
name="revChatGPT",
15-
version="6.1.4",
15+
version="6.2.0",
1616
description="ChatGPT is a reverse engineering of OpenAI's ChatGPT API",
1717
long_description=open(PATH, encoding="utf-8").read(),
1818
long_description_content_type="text/markdown",

src/revChatGPT/V1.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ def __init__(
167167

168168
self.__check_credentials()
169169

170+
if self.config.get("PUID"):
171+
self.session.cookies.set("_puid", self.config["PUID"])
172+
170173
@logger(is_timed=True)
171174
def __check_credentials(self) -> None:
172175
"""Check login info and perform login

0 commit comments

Comments
 (0)