News for hackers. Stuff that matters.
Re:Show HN: I built a better UI for ChatGPT by corobo on Tuesday March 07, 2023 @09:22AM (#35055633)
I whipped up a quick cli script myself haha

https://gist.github.com/cohan/7d2abfa56b2dfdaae98bf70e84c622...

All of these UIs when there's a perfectly good command line right there! The CLI is always the best way for text.

> ai what is that song with moms spaghetti

"Lose Yourself" by Eminem

Sorted.

Re:Show HN: I built a better UI for ChatGPT by webjunkie on Tuesday March 07, 2023 @09:33AM (#35055747)
Nice, I'm curious though, does the API also remember context from earlier conversations or can it be made to?
Re:Show HN: I built a better UI for ChatGPT by corobo on Tuesday March 07, 2023 @09:35AM (#35055766)
I don't believe so, but that's not something I wanted/needed for this one. It's just for one off things for my use case.

Something like

> ai give me an index match formula to link between sheets New and Current

Re:Show HN: I built a better UI for ChatGPT by singularity2001 on Tuesday March 07, 2023 @09:32AM (#35055740)
yep CLI is the way

different flavours: 'fix' acts as `thefuck` replacement in 30 lines of python

Re:Show HN: I built a better UI for ChatGPT by dragonwriter on Tuesday March 07, 2023 @07:10PM (#35063337)
CLI is a UI, too.
Re:Show HN: I built a better UI for ChatGPT by corobo on Tuesday March 07, 2023 @08:26PM (#35063960)
I know mate, haha.

I imagine someone can do much better than I did in a few minutes, but yeah use the UI that already exists instead of sprinkling electron on something text based.

In future editions of CLI AI I'd imagine a --context flag might be useful, probably a --model to override that bit too, if anyone fancies doing this properly? :)