Arrgh-I is a simple but entertaining text-based chatbot powered by the Cohere AI language model. They'll answer your questions but with a healthy dose of pirate-y sass.
- A Cohere AI account and API key. A free trial is fine for this simple implementation.
- The Go programming language installed (https://go.dev/)
-
Clone this repository: https://github.com/mischegoss/Simple-Command-Line-Chat-Tool-Go.git
-
Create a .env file in the project directory and add the following line, replacing YOUR_API_KEY with your actual Cohere API key:
COHERE_KEY=YOUR_API_KEY
-
Install dependencies using
go get
command -
Run code in command line using
go run main.go
.
Type your questions after the prompt and press Enter. The program will end when you type 'n' at the "Do you have another question?" prompt.
This project is a very simple chatbot for demonstration purposes, it uses the Cohere AI Chat endpoint.