Skip to content

hirokisan/chatty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Report Card test

chatty

chatty is a cli application that will be your conversation partner in your spare time.

Preparation

Create OpenAI account and get API Key.

ref: https://platform.openai.com/account/api-keys

And then, set the key in the environment variable.

$ export OPEN_AI_KEY={key}

If you wish to record past exchanges and conversations, please specify a file path for the record in an environment variable.

The file will be saved in json format

$ export CHATTY_MESSAGES_PATH={filepath}

# e.g. export CHATTY_MESSAGES_PATH=~/chatty-history.json

Installation

$ go install github.com/hirokisan/chatty@latest

Usage

$ chatty my name is chatty
Hello, Chatty! How can I assist you today?