treyhunner / chatgpt-tui

A TUI to the chatGPT API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChatGPT TUI

Terminal-based chat window with the chatGPT API

example

The application currently supports:

  • Markdown on the user prompt and agent response
  • vim key bindings

Other features added soon (see roadmap at the bottom)

The TUI application is powered by textualize, and can be launched with the shell command ai.

TUI question

Install

  1. clone this repo
  2. Add a secrets.yaml file at the root level with you company id and api key
  3. pip install -e .
  4. You can now start the chat from any directory by typing the command $ ai

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.

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

About

A TUI to the chatGPT API


Languages

Language:Python 97.0%Language:CSS 2.4%Language:Makefile 0.6%