TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

25 pointsby mfiover 2 years ago
Hi all!<p>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.<p>To scratch my own itch and at the same time learn more about how to write my own command line interface, I created &#x27;askai&#x27;. &#x27;askai&#x27; is a simple CLI integration with OpenAI’s GPT3 models. I’ve primarily used it to get quick answers to technical questions, like:<p>&gt; askai &quot;How to mock user input when writing a Python pytest test?&quot;<p>&gt; askai &quot;How do I remove a conda environment?&quot;<p>As I&#x27;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&#x27;ve also uploaded it to PyPI to simplify the installation process.<p>&#x27;askai&#x27; enables you to:<p><pre><code> * 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 </code></pre> 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.<p>I hope some of you find it useful :)

3 comments

cloudkingover 2 years ago
Is it limited to asking about shell commands or can you generally ask it anything?
评论 #34155138 未加载
评论 #34153627 未加载
nero7over 2 years ago
Really useful! thanks for sharing :)
A6gYPfxNasover 2 years ago
super useful, just what I needed! Thanks!
评论 #34158814 未加载