My terminal is always at my fingertips, unlike my browser. Moreover, it allows
- tinkering with some GPT parameters,
- saving and loading conversation context,
- using GPT-4 without paying 20$ a month.
And, to be honest, I also just wanted to play around with OpenAI API and Typer.
- Show what the model is typing instead of just "Typing" spinner
- Improve README with usage demos.
The easiest is to install it with pipx:
pipx install git+https://gitlab.com/nickto/gpt-cli.git
TODO
Install required Python version with pyenv
You can skip this if you system version is already compatible with the
requirements in pyproject.toml
.
pyenv install 3.11.2 # or any other compatible version
If you are using system Python:
/usr/bin/env python -m venv .venv
If you are using pyenv:
$(pyenv shell 3.11.2; python -m venv .venv)
source .venv/bin/activate
and when done working on this project:
deactivate
Alternatively, automate it with direnv:
echo 'source .venv/bin/activate\nunset PS1' >> .envrc && direnv allow
poetry install
Make sure you have installed all the dependencies:
poetry install | grep -q 'No dependencies to install or update' && echo "All good\!" || echo "Some packages are missing :("