ChatGPT TUI
Terminal-based chat window with the chatGPT API
Install
pip install aitui
Development
- clone this repo
pip install -e .- You can now start the chat from any directory by typing the command
$ ai - Upon startup, you will be asked for your OpenAI organization id and api-key
Running the application
Start up
When the application starts up, it will ask you what agent you want to speak with. You can save common persons with a preconditioned prompt here. e.g.:
- Personal travel agent: A chat gpt assistant that recomends things to do within your interests
- Python docstring writer
- Personal car mechanic advisor
- etc
Key Bindings
esc puts you into vim cmd mode. i or a puts you back into insert mode.
pressing v in cmd mode will open a vim editor so you and write multi-line prompts with full key bindings.
Note: There are some limitations with the vim key bindings. I've found I need to press esc twice or there is a long delay for entering into cmd mode.
Roadmap
- Add
vimkey bindings to prompt input - Open
vimfor multi line prompts - Support multi key vim keybindings. e.g.
ddciw - Initialize conversations from different common personas. e.g. travel agent
- Save conversations to a database
- Output running cost of the conversation
- Publish to PyPi
Credits
The TUI application is powered by textualize
OpenAI (of course)
Metadata
Release files for aitui 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aitui-0.0.2.tar.gz | 9.2 kB | Without provenance | Details for aitui-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aitui-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for aitui-0.0.2-py3-none-any.whl |
Total release size: 17.8 kB
Release files / aitui-0.0.2.tar.gz
| Download URL | aitui-0.0.2.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ed4bf5c2aeaf4f33f5b4d254549169d08453f435d23d6d6526134499f28a6f2
|
|
BLAKE2b-256 checksum How to use checksums |
f1cdf95fe8a65e4d34f99b380b183e4138a89f894886e5e93b9858fe1ca46c3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / aitui-0.0.2-py3-none-any.whl
| Download URL | aitui-0.0.2-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ff8b4e67249ba4ff7dad01e93acb243828a08ddc49291edf81078b82c242206
|
|
BLAKE2b-256 checksum How to use checksums |
8cb6465368cf60ec88be45e2db80471689e0620cba6017d798800df7172ddecb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for aitui 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.