Skip to content

tatthien/askgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

askgpt

Ask ChatGPT without leaving your terminal

Screenshot 2023-03-31 at 01 13 56

No thing special here! It's the OpenAI's Chat Completion that supports context.

The code is taken from https://github.com/sashabaranov/go-openai examples with a litle bit tweak in displaying the messages in a beautiful format - thanks to glamour.

Prerequisites

You need to have OPENAI_API_KEY environemnt variable configured.

export OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Installation

Using go

go install github.com/tatthien/cmdgpt@latest

More CLI tools using AI

  • cmdgpt - CLI tool that using ChatGPT to generate linux commands from your natural language

About

Ask ChatGPT without leaving your terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages