Skip to content

agnlt64/go-gpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go GPT

A terminal-based ChatGPT client written in Go.

Quick Start

You'll need an OpenAI API key, You can get one here. Put it in .env, and then run:

$ go mod tidy
$ go run .

Use the /help for all the available commands.

Config file

Your config must be in gpt_config.toml. Here is an example:

Model = "gpt-4o-mini"
RenderMarkdown = true
DefaultHistoryPath = "history.json"
SystemPrompt = "You are a terminal-based chat assistant. Give relatively short answers, while being as accurate as possible."
CommandPrefix = "/"
Theme = "dark"

CommandPrefix must be a single character. Theme should be a valid glamour theme.

About

ChatGPT client written in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages