OpenAI的逆向工程ChatGPT API。可扩展用于聊天机器人等。
在LinkedIn上与我联系以支持这个项目。(尚未开放商业机会。太忙了)
你也可以在推特上关注我以保持最新状态。
此存储库的更新频率很高。预期重大更改。在更新或打开问题之前,请务必阅读文档和自述文件
更新3 2023/02/08:模型始终过载。我正在恢复制作 ChatGPT 代理(无浏览器)服务的工作。请使用浏览器版本,直至另行通知。
免费、无浏览器且无速率限制。对 ChatGPT 使用过时的基本模型。
pip3 install revChatGPT
python3 -m revChatGPT.Official --api_key API_KEY --stream
浏览器是必需的。违反服务条款。
pip3 install revChatGPT[unofficial]
所需配置:
{
"email": "<your email>",
"password": "your password"
}
可选配置:
{
"conversation_id": "UUID...",
"parent_id": "UUID...",
"proxy": "...",
}
$HOME/.config/revChatGPT/config.json
python3 -m revChatGPT.Unofficial
!help - Show this message !reset - Forget the current conversation !refresh - Refresh the session authentication !config - Show the current configuration !rollback x - Rollback the conversation (x being the number of messages to rollback) !exit - Exit this program
from revChatGPT.Unofficial import Chatbot
chatbot = Chatbot({
"email": "<your email>",
"password": "your password"
}, conversation_id=None, parent_id=None) # You can start a custom conversation
response = chatbot.ask("Prompt", conversation_id=None, parent_id=None) # You can specify custom conversation and parent ids. Otherwise it uses the saved conversation (yes. conversations are automatically saved)
print(response)
# {
# "message": message,
# "conversation_id": self.conversation_id,
# "parent_id": self.parent_id,
# }
有关高级开发人员用法,请参阅 wiki
python3 -m revChatGPT.GPTserver
HTTP POST 请求:
{
"session_token": "eyJhbGciOiJkaXIiL...",
"prompt": "Your prompt here"
}
自选:
{
"session_token": "eyJhbGciOiJkaXIiL...",
"prompt": "Your prompt here",
"conversation_id": "UUID...",
"parent_id": "UUID..."
}
如果要将很酷的项目添加到列表中,请打开一个问题。
这不是官方的OpenAI产品。这是一个个人项目,与OpenAI没有任何关系。不要起诉我