Hm, are there similar projects that simply works as a shell filter? Prompt on std in / answer on stdout ?
Would make for a perfect vim companion - select text, hit "!gpt3" - get answer in buffer?
I'm not very keen on running some random shell commands directly - but having them pop into my editor (safe and recommended wrapper for strict shell script - or - sample python cli utility etc).
Ed: As a bonus it would also compose easily - making adding an interface like https://github.com/jayhack/llm.sh on top would be trivial...
Ed2: i see there's https://github.com/jackMort/ChatGPT.nvim and https://github.com/gakonst/rubberduck-gpt3.vim - both of which would be better if they also/just worked as filters.
I use my own similar tool (https://github com/runvnc/askleo) like this in vim
:r ! askleo a JavaScript function to reverse a string
Fixed link: