A terminal-based ChatGPT client written in Go.
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.
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.