ubuntu,debian
sudo apt install -y python3-pip
sudo apt install -y git
fedora, centos
sudo dnf install -y python3-pip
sudo dnf install -y git
pip install git+https://github.com/mmabrouk/chatgpt-wrapper
git clone https://github.com/mmabrouk/chatgpt-wrapper.git
Install the development package:
cd chatgpt-wrapper
pip install -e .
if is not working with an ERROR: “externally managed environment”
pip install -r requirements.txt --break-system-packages
or
sudo apt install pipx
Export the key into your local environment:
export OPENAI_API_KEY=<API_KEY>
config info
chatgpt config
chatgpt
Build a docker image for testing chatgpt-wrapper
:
Make sure your OpenAI key has been exported into your host environment as OPENAI_API_KEY
Run the following commands:
docker-compose build && docker-compose up -d docker exec -it chatgpt-wrapper-container /bin/bash -c “chatgpt”
Follow the instructions to create the first user.
Enjoy the chat!
The project uses Pytest.
pip install pytest
To run all tests:
pytest