News for hackers. Stuff that matters.

Show HN: I built a simple CLI helper integrating with GPT-3

https://github.com/maxvfischer/askai

Hi all!

I don’t think CHATGPT has gone unnoticed by anyone here on Hackernews. I’ve myself played around a bit with it, but felt it was annoying to always have to log into their GUI to ask the questions.

To scratch my own itch and at the same time learn more about how to write my own command line interface, I created 'askai'. 'askai' is a simple CLI integration with OpenAI’s GPT3 models. I’ve primarily used it to get quick answers to technical questions, like:

> askai "How to mock user input when writing a Python pytest test?"

> askai "How do I remove a conda environment?"

As I've found it quite helpful, I decided to spend some time to package it in a nicer way to share it with all of you. I've also uploaded it to PyPI to simplify the installation process.

'askai' enables you to:

    * Ask questions and get the answers straight into your terminal

    * Configure which model and model parameters you want to use

    * Overwrite saved configurations when you ask questions
Currently, it only supports OpenAI’s models, but my plan is to integrate more endpoints as soon as new capable NLP endpoints are popping up.

I hope some of you find it useful :)

( 6 comments | on HN )
Re:Show HN: I built a simple CLI helper integrating with GPT-3 by cloudking on Tuesday December 27, 2022 @03:20PM (#34153258)
Is it limited to asking about shell commands or can you generally ask it anything?
Re:Show HN: I built a simple CLI helper integrating with GPT-3 by worldsavior on Tuesday December 27, 2022 @03:51PM (#34153627)
It's just a frontend for OpenAI models.
Re:Show HN: I built a simple CLI helper integrating with GPT-3 by mfi on Tuesday December 27, 2022 @06:09PM (#34155138)
I’ve primarily used it for that, but you are able to ask anything
Re:Show HN: I built a simple CLI helper integrating with GPT-3 by A6gYPfxNas on Tuesday December 27, 2022 @07:50PM (#34156063)
super useful, just what I needed! Thanks!
Re:Show HN: I built a simple CLI helper integrating with GPT-3 by mfi on Wednesday December 28, 2022 @03:22AM (#34158814)
Glad that someone else found use for it! Happy holidays :)
Re:Show HN: I built a simple CLI helper integrating with GPT-3 by nero7 on Wednesday December 28, 2022 @04:35PM (#34166295)
Really useful! thanks for sharing :)