Implements main operations of web version ChatGPT
. Passes through Cloudflare
, theoretically, it works fast.
-
Python version must be at least
3.7
. -
Run with pip
pip install Pandora-ChatGPT pandora
-
Run with compilation
pip install . pandora
-
Run with Docker Hub
docker pull pengzhile/pandora docker run -it --rm pengzhile/pandora
-
Run with Docker compilation
docker build -t pandora . docker run -it --rm pandora
-
Simple, straightforward, and elegant.
- Use
pandora --help
to view the list of program arguments. -p
or--proxy
specify a proxy, in the format ofhttp://user:pass@ip:port
.-t
or--token_file
specify a file that stores theAccess Token
, and log in using theAccess Token
.-v
or--verbose
displays debugging information, and prints the exception stack trace when an error occurs, for debugging purposes.
PANDORA_ACCESS_TOKEN
Specifies theAccess Token
string for.PANDORA_PROXY
Specifies a proxy in the format of http://user:pass@ip:port.PANDORA_VERBOSE
displays debugging information, and prints the exception stack trace when an error occurs, for debugging purposes.- When running the
Pandora
using Docker, set the corresponding environment variables, regardless of theProgram Arguments
mentioned above.
- Log in with the
Access Token
allows you to bypass the proxy. - It is usually used by those who log in to
ChatGPT
with theirGoogle
orMicrosoft
accounts. - Firstly, log in to
ChatGPT
normally, whether it's with a username and password, or withGoogle
orMicrosoft
. - After successfully logging in, go to the chat page and open the URL
https://chat.openai.com/api/auth/session
. - The long string of characters in the
accessToken
field is yourAccess Token
. - The
Access Token
can be copied and saved, and its validity period is currently1 month
. - Do not leak your
Access Token
, as it can manipulate your account.
- In the conversation interface, press
Enter
twice to send your input toChatGPT
. - In the conversation interface, use
/?
to print the supported command operations. /title
re-sets the title of the current conversation./select
returns to the conversation selection interface./reload
reloads all the contents of the current conversation, like pressingF5
./regen
if you are not satisfied withChatGPT
's current response, you can ask it to re-answer./new
opens a new conversation directly./del
deletes the current conversation and returns to the conversation selection interface./token
prints the currentAccess Token
, which you may need, but do not leak it./clear
clears the screen./exit
exits Pandora.
- If you get an error:
certificate verify failed: unable to get local issuer certificate
。 - First: Press
Command
+Space
buttons or openSpotlight
. - Second:type
Install Certificates.command
and execute it. - Problem solved.
- Pandora is an open-source project that stands on the shoulders of other giants, thank you!
- Raise an issue for any errors or bugs you encounter, and the developer will fix them as soon as possible.
- The developer may not be able to keep up with the changes in the
ChatGPT
API in the future. - If you like it, give the project a star, we are all old friends.
- This
README
is translated byChatGPT
.