Skip to main content

No project description provided

Project description

ChatGPT TUI

test passing status

Terminal-based chat window with the chatGPT API

example

Install

pip install aitui

Development

  1. clone this repo
  2. pip install -e .
  3. You can now start the chat from any directory by typing the command $ ai
  4. 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 vim key bindings to prompt input
  • Open vim for multi line prompts
  • Support multi key vim keybindings. e.g. dd ciw
  • 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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aitui-0.0.2.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

aitui-0.0.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file aitui-0.0.2.tar.gz.

File metadata

  • Download URL: aitui-0.0.2.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for aitui-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8ed4bf5c2aeaf4f33f5b4d254549169d08453f435d23d6d6526134499f28a6f2
MD5 f52fe958fe62f5045caf3c6e8dc3de0a
BLAKE2b-256 f1cdf95fe8a65e4d34f99b380b183e4138a89f894886e5e93b9858fe1ca46c3d

See more details on using hashes here.

File details

Details for the file aitui-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: aitui-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for aitui-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0ff8b4e67249ba4ff7dad01e93acb243828a08ddc49291edf81078b82c242206
MD5 4df0090d5b9fe2c36e7290e82065fd36
BLAKE2b-256 8cb6465368cf60ec88be45e2db80471689e0620cba6017d798800df7172ddecb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page