Skip to content

A Golang-based CLI tool to interact with OpenAI's GPT models directly from your terminal.

Notifications You must be signed in to change notification settings

harshal-rembhotkar/Chat-Gpt-Cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat-Gpt-Cli

  1. Install Required Libraries:

    go get github.com/sashabaranov/go-openai
    go get github.com/spf13/cobra
    go get github.com/spf13/viper
  2. Create a .env File: Add your OpenAI API key to a .env file in the same directory:

    API_KEY=your-openai-api-key
  3. Run the Program:

    go run .
  4. Interact with ChatGPT: Type your questions into the console. Type quit to exit.

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

No packages published

Languages