Skip to content

imfing/gptui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gptui

Release

Terminal UI for OpenAI ChatGPT

gptui

Features

  • Elegant and easy-to-use command line interface
  • Automatic syntax highlighting
  • Save and restore chat history locally

Installation

Using Homebrew:

$ brew install imfing/tap/gptui

Or go to Release page and manually install it.

Usage

OpenAI API key is required. Pass it as a command line argument or set an environment variable:

export OPENAI_API_KEY=<your-openai-api-key>

To start chat:

❯ gptui chat

Available flags:

❯ gptui chat --help
Given a chat conversation, the model will return a chat completion response.

Usage:
  gptui chat [flags]

Flags:
  -h, --help                     help for chat
      --history string           path to conversation history file to restore from
      --max-context-length int   maximum number of tokens for GPT context (default 1024)
  -m, --message string           message for the chat input
      --model string             model to use for chat completion (default "gpt-3.5-turbo")
      --stream                   if set, partial message deltas will be sent, like in ChatGPT (default true)
      --system string            system message that helps set the behavior of the assistant

Global Flags:
      --openai-api-base string   OpenAI API endpoint (default "https://api.openai.com/v1")
      --openai-api-key string    OpenAI API key

Roadmap

License

See LICENSE