Skip to content

Latest commit

 

History

History
69 lines (42 loc) · 1.91 KB

README.md

File metadata and controls

69 lines (42 loc) · 1.91 KB

Command Line ChatGPT

Demo

ChatGPT CLI Demo

Features

  • Send Messages to ChatGPT - Queries the ChatGPT API with a message and receive a completion.
  • Chat History - View historical queries and their corresponding completions.

Prerequisites and Setup

OpenAI API Key Generation

  1. Visit https://platform.openai.com/account/api-keys
  2. Select + Create New Secret Key

Use the Key

  1. Create a .env file in the directory as the executable / main.go.
    cp .env-example .env
  2. Set OPENAI_API_TOKEN with the generated key.
    OPENAI_API_TOKEN=${SET_ME}

Releases

Done by GoReleaser through GitHub Actions.

Resources and References

Demo GIF Recording

OpenAI

TUI

Bugs

The textarea model initialises with the placeholder message obscured, only appearing after a backspace.

Got

Want