You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<palign="center"><em>Example for accessing ChatGPT (3.5) without an account or API access via Python. Only for educational purposes.</em></p>
5
5
</div>
6
6
<hr>
@@ -52,7 +52,7 @@ asyncio.run(run_session())
52
52
The first prompt of a *new* session always takes a bit longer, as the headless browser has to init. Subsequent prompts are handled as fast as you'd expect it from the typical GPT browser UI.
53
53
54
54
#### CLI Arguments
55
-
You can also chat with GPT using CLI; just call `python3 gpt.py` with the following args:
55
+
You can also chat with GPT using CLI; just call `python3 gpt.py` with the following args (all of them are optional):
56
56
57
57
-`-p`, `--prompt`
58
58
- the initial prompt text to send to ChatGPT.
@@ -68,6 +68,12 @@ You can also chat with GPT using CLI; just call `python3 gpt.py` with the follow
68
68
- the proxy server to use, e.g., `http://proxyserver:port`.
69
69
-**type**: `str`
70
70
-**default**: None
71
+
72
+
-`-st`, `--session-token`
73
+
- your `__Secure-next-auth.session-token` in order to use your OpenAI account (i.e. to minimize rate limiting, use 4o, etc.)
74
+
-**type**: `str`
75
+
-**default**: None
76
+
71
77
72
78
You can start a streaming-based conversation with `python3 gpt.py`.
73
79
@@ -125,6 +131,11 @@ You can also chat with GPT using Node CLI; call `node gpt.js` with the following
125
131
- the proxy server to use, e.g., `http://proxyserver:port`.
126
132
-**type**: `str`
127
133
-**default**: None
134
+
135
+
-`-st`, `--session-token`
136
+
- your `__Secure-next-auth.session-token` in order to use your OpenAI account (i.e. to minimize rate limiting, use 4o, etc.)
137
+
-**type**: `str`
138
+
-**default**: None
128
139
129
140
You can start a streaming-based conversation with `node gpt.js`.
0 commit comments