ChatGPT cli version with history.
- Install
ffmpeg
if you didn't install it on your machine. - Create a virtualenv (Optional)
- Use
pip install -r requirements.txt
command to install the dependencies. - Check
python main.py --help
for more detailed arguments - Use
python main.py <args>
to run the ChatGPT-cli.
- <= python 3.8
- ffmpeg
- Dev
- Run
make setup-dev-chatpg
- Run
- Prod
- Run
make setup-chatpg
- Run
- Voice assistant
- You can hear the answer of the question by voice.
- History
- You can save history what you were asking and the answer from ChatGPT.
- Only working properly with
Turbo
model andpaid
version, currently. - The history data will be stored in
history.sqlite3
.
- continuous / single
- You can ask multiple questions or single question.
- models
- You can choose models which are proviced from ChatGPT.
- turbo
- davinci
- curie
- babbage
- ada
- You can choose models which are proviced from ChatGPT.
--con
- Ask continuous questions to ChatGPT (Default:
Single
). - example
python main.py --con
- Ask continuous questions to ChatGPT (Default:
--paid
- Use paid version (Default:
Free
). - example
python main.py --paid
- Use paid version (Default:
-m
/--model
- Please choose one of the provided models (Default:
Turbo
). - Provided models
- turbo
- davinci
- curie
- babbage
- ada
- example
python main.py -m davinci
- Please choose one of the provided models (Default:
--voice
- Enable voice assistant (Default:
disabled
) - example
python main.py --voice
- Enable voice assistant (Default:
- Pytest
- Run
make test-ci-chatpg
- Run
- Tox
- To run tox, python versions in the default setting are
3.8
,3.9
, and3.10
. You can configure the python versions intox.ini
file. - Run
make test-chatpg
- To run tox, python versions in the default setting are