-
Install Required Libraries:
go get github.com/sashabaranov/go-openai go get github.com/spf13/cobra go get github.com/spf13/viper
-
Create a
.env
File: Add your OpenAI API key to a.env
file in the same directory:API_KEY=your-openai-api-key
-
Run the Program:
go run .
-
Interact with ChatGPT: Type your questions into the console. Type
quit
to exit.
-
Notifications
You must be signed in to change notification settings - Fork 0
harshal-rembhotkar/Chat-Gpt-Cli
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A Golang-based CLI tool to interact with OpenAI's GPT models directly from your terminal.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published