CLI GPT is a simple command line application build around go-openai offering a ChatGPT like experience.
Install the application
go install github.com/alwitt/cli-gpt@latestCreate a user friendly alias
alias gpt="cli-gpt"First, create a new user entry.
gpt create userStart a new chat session. Select turbo to use the model ChatGPT is based on. For more information regarding the request parameters, see OpenAI API documentation.
gpt create chatTo append to the currently active chat session (the active chat session has in-focus set to true)
gpt chatTo change the currently active chat session
gpt context select-chatTo view the complete history of a chat session
gpt describe chatThe application associates chats with a user, and supports multiple users. However, only one user can be active at any point in time.
To change the currently active user
gpt context select-userFirst verify all unit-tests are passing.
go test ./...Then build the application.
go build -o gpt .




