通过命令使用 ChatGPT
ChatGPT Wrapper is an open-source unofficial Power CLI, Python API and Flask API that lets you interact programmatically with ChatGPT.
安装
必要条件
- macOS
brew install moreutils
- Ubuntu
sudo apt install moreutils
创建虚拟环境
mkdir chatgpt-wrapper && cd chatgpt-wrapper
python -m venv env
source ./env/bin/activate
使用 GitHub 安装最新版本
pip install --upgrade pip
pip install git+https://github.com/mmabrouk/chatgpt-wrapper
在 Playwright 中安装浏览器,默认为 firefox。
playwright install
ChatGPT 安装
以安装模式启动程序。 这将打开一个浏览器窗口。 在浏览器窗口中登录 ChatGPT,然后停止该程序。