ChatGPT. In your terminal!
ChatGPT is awesome, and the web interface is great, but as I'm a CLI freak, I wanted ChatGPT be under my finger tips.
The goal is to make the CLI as close to web experience as possible. For that matter I've implemented a REPL. But in case I need quickly ask something, I wanted this to work:
$ gogpt List sources to learn golang interfaces
Another goal was to learn Go. Being a larva of a gopher I very much welcome contributions. Feel free to open up a PR and/or school me how to go ;)
There are a few things can be done now to improve the REPL, the experimental markdown renderer, in particular.
For now gogpt
is NOT distributed via popular package managers such as brew, choco, yum, etc.
Distribution via the main package managers is on the roadmap, but for now you can use one of the following methods (the drawback is updates are not automated, so if you like gogpt
check back in once in a while):
curl https://i.jpillora.com/Nemoden/gogpt! | bash
it will install the binary to /usr/local/bin
Visit the releases page and download the appropriate archive, unarchive it and drop the binary anywhere you like (ideally on of the directories that are on your $PATH
.
go install github.com/nemoden/gogpt@latest
it will install the binary in your $GOBIN
directory
Simply delete the binary and (if they exist)
~/.config/gopgt
~/.gogpt
gogpt config
command: more configurable options (max tokens, temperature etc)<essay>
in the style of <John Doe>
" where user only needs to type <essay>
and <John Doe>
)\config renderer=markdown
, or \prompt ...