Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hirokisan/chatty
CLI for your conversation partner
https://github.com/hirokisan/chatty
chatgpt cli conversation go golang openai
Last synced: 9 days ago
JSON representation
CLI for your conversation partner
- Host: GitHub
- URL: https://github.com/hirokisan/chatty
- Owner: hirokisan
- License: mit
- Created: 2023-03-11T12:47:21.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-14T13:27:35.000Z (almost 2 years ago)
- Last Synced: 2024-06-20T06:28:17.854Z (6 months ago)
- Topics: chatgpt, cli, conversation, go, golang, openai
- Language: Go
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Go Report Card](https://goreportcard.com/badge/github.com/hirokisan/chatty)](https://goreportcard.com/report/github.com/hirokisan/chatty)
[![test](https://github.com/hirokisan/chatty/actions/workflows/test.yml/badge.svg)](https://github.com/hirokisan/chatty/actions/workflows/test.yml)# 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.
```console
$ 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
```console
$ export CHATTY_MESSAGES_PATH={filepath}# e.g. export CHATTY_MESSAGES_PATH=~/chatty-history.json
```## Installation
```console
$ go install github.com/hirokisan/chatty@latest
```## Usage
```console
$ chatty my name is chatty
Hello, Chatty! How can I assist you today?
```