Pandora, talking with ChatGPT in command lines, and with more surprises.
It implements almost everything as ChatGPT official website. Besides, it's unimaginably fast because of mysterious optimizations.
Pandora, talking with ChatGPT in command lines, and with more surprises.
README in 中文 »
Demo View
·
Bug Report
·
Feature Request
- Why using Pandora
- Screenshots
- Make it run
- Start parameters
- Docker
- Access Token things
- HTTP RESTful API
- Commands
- Cloud mode
- Misc
- bypassing some official rate limits during peak hours.
- responsing as fast as PLUS, but it's free.
- surviving in sometime while the official site is down.
- running in web, command line or RESTful API mode, as you wish.
- avoiding disconnecting or error messages while the official site suffers.
-
Python version no less than
3.7
-
install from
pip
pip install pandora-chatgpt pandora
-
gpt-3.5-turbo
mode:pip install 'pandora-chatgpt[api]' pandora
-
cloud
mode:pip install 'pandora-chatgpt[cloud]' pandora-cloud
-
-
install from source
pip install . pandora
-
gpt-3.5-turbo
mode:pip install '.[api]' pandora
-
cloud
mode:pip install '.[cloud]' pandora-cloud
-
-
Docker Hub
docker pull pengzhile/pandora docker run -it --rm pengzhile/pandora
-
Docker build
docker build -t pandora . docker run -it --rm pandora
-
login with your credentials
-
stay simple, stay naive, stay elegant
pandora --help
for help text.-p
or--proxy
for setting the proxy. the value should beprotocol://user:pass@ip:port
.-t
or--token_file
for indicating the file that storesAccess Token
. You will login with access token if this option is in use.-s
or--server
starts the HTTP server, by which you could open a web page and interact with it in a fancy UI. the value should beip:port
.-a
or--api
usegpt-3.5-turbo
API in backend. NOTICE: you will be charged if this option is in use.--tokens_file
indicating a file storing multipleAccess Token
s. The file content should be like{"key": "token"}
.--sentry
sending error messages to author for improving Pandora. Sensitive information won't be leaked.-v
or--verbose
for verbose debugging messages.
These docker environment variables will override start parameters.
PANDORA_ACCESS_TOKEN
=Access Token
string.PANDORA_TOKENS_FILE
= the path of file which keepsAccess Token
s.PANDORA_PROXY
=protocol://user:pass@ip:port
.PANDORA_SERVER
=ip:port
.PANDORA_API
for usinggpt-3.5-turbo
API. NOTICE: you will be charged if this option is in use.PANDORA_SENTRY
for sending error messages to author to improve Pandora. Sensitive information won't be leaked.PANDORA_VERBOSE
for verbose debugging messages.
- no need for proxy if login with
Access Token
. - you could obtain your access token safely with this service.
Access Token
has a expiration time as1 month
, you could save it and keep using within this period.- leaking your
Access Token
will lead to loss of your account.
- if you start Pandora with
-s
/--server
/PANDORA_SERVER
, you could access a web UI withhttp://ip:port
. - you could switch access token by passing a different one with
http://ip:port/?token=xxx
. - API documents: doc/HTTP-API.md
- double
Enter
to send prompt toChatGPT
. /?
for help text./title
for setting the title of current conversation./select
back to conversation choosing page./reload
for refreshing./regen
for regenerating answers if you are not satisfied with the last one./continue
makeChatGPT
to append responses./edit
for editing your previous prompt./new
to start a new conversation./del
to delete current conversation and back to conversation choosing page./token
for printing current access token./copy
for copying the last response ofChatGPT
to pasteboard./copy_code
for copying the code in the last response ofChatGPT
to pasteboard./clear
for cleaning the screen./version
for printing the version of Pandora./exit
to exit Pandora.
- setting up a service just like official
ChatGPT
website. it's so same as only jesus could tell it apart.
- you need to use
pandora-cloud
instead ofpandora
to start Pandora. - enabling
PANDORA_CLOUD
if you are using Docker to start Pandora. - Other parameters are same as these guys in normal mode.
- The Pandora, it is by standing upon the shoulders of giants.
- If you submit an issue regarding errors or bugs, I will fix them.
- Star, pls, Dad.
- PHP is the best programming language in the world.
Thx for these adorable people.