News for hackers. Stuff that matters.
Re:Show HN: I built a better UI for ChatGPT by trungdq88 on Tuesday March 07, 2023 @06:28AM (#35054154)
I was annoyed by the default OpenAI ChatGPT slow-typing animation and logging me out every day, so I built a new UI client on top of its API.

It's a static web app, you can host it yourself, data is stored locally on your browser, API requests are made directly to OpenAI API without any middle server.

It has some more convenient features that make your that experience way better. Like search chat history, prompt library, integrations, etc.

Would love to hear all the feedback!

Re:Show HN: I built a better UI for ChatGPT by pablosr11 on Tuesday March 07, 2023 @06:45AM (#35054277)
Agree on both issues, specially the one logging you out daily. Congrats on the quick launch!

Can already see the whisper model makings its way through the product :)

Re:Show HN: I built a better UI for ChatGPT by trungdq88 on Tuesday March 07, 2023 @07:10AM (#35054442)
thank you!
Re:Show HN: I built a better UI for ChatGPT by Loeffelmann on Tuesday March 07, 2023 @07:49AM (#35054719)
Ohh man I wanted to publish my own electron app today :(

It's basically doing the same thing. I found that using API keys is also significantly cheaper than using the subscription with moderate usage.

Congrats on the release.

Re:Show HN: I built a better UI for ChatGPT by singularity2001 on Tuesday March 07, 2023 @08:29AM (#35055079)
Don't worry there are only about 10,000 people working on similar apps right now ;)
Re:Show HN: I built a better UI for ChatGPT by itsuka on Tuesday March 07, 2023 @08:56AM (#35055343)
I'm also building a personal ChatGPT client for a similar reason as the OP, which is to address the issues of buggy and slow UX, among others. As you mentioned, many people are currently working on projects using ChatGPT API. In fact, in the past 24 hours, around 12 new apps that have been showcased on OpenAI Discord channel alone. Some of these apps are open source, which makes them a great source of learning and inspiration for me.
Re:Show HN: I built a better UI for ChatGPT by behnamoh on Tuesday March 07, 2023 @09:12AM (#35055524)
> Some of these apps are open source, which makes them a great source of learning and inspiration for me.

Do you then reference those open source apps?

Re:Show HN: I built a better UI for ChatGPT by Loeffelmann on Tuesday March 07, 2023 @09:24AM (#35055651)
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? :)

Re:Show HN: I built a better UI for ChatGPT by Loeffelmann on Tuesday March 07, 2023 @10:21AM (#35056293)
Haha I felt better after reading this thread. I mean it was a fun weekend project!
Re:Show HN: I built a better UI for ChatGPT by jw1224 on Tuesday March 07, 2023 @08:04AM (#35054853)
> I was annoyed by the default OpenAI ChatGPT slow-typing animation

I’d assumed ChatGPT’s slow-typing was actually the model’s real-time output, streamed to the browser token-by-token. When I’ve made GPT3 API calls it’s worked like this, with streaming switched off I might need to wait ~20 seconds for a long response back.

I just tried your UI, and it’s so much faster! Was my assumption about real-time output wrong?

Great project, looking forward to using it more :)

Re:Show HN: I built a better UI for ChatGPT by IanCal on Tuesday March 07, 2023 @08:23AM (#35055014)
ChatGPTs paid version is extremely fast, and this is using the paid API. The paid API feels slower than the paid UI, but this may be the difference between streaming results and getting everything in one payload.
Re:Show HN: I built a better UI for ChatGPT by trungdq88 on Tuesday March 07, 2023 @08:07AM (#35054888)
Yep, I was surprised I about the response time too. I'm not sure what's going on under the hood, maybe OpenAI did something with the stream output that causes the slowness.
Re:Show HN: I built a better UI for ChatGPT by lordnacho on Tuesday March 07, 2023 @08:39AM (#35055182)
Perhaps it is simply a way to limit the number of queries? If you force people to wait 10s for an answer they aren't writing new questions all the time.
Re:Show HN: I built a better UI for ChatGPT by TeMPOraL on Tuesday March 07, 2023 @09:08AM (#35055481)
For me it's been consistently the case that after 2-3 messages, the animation would start to visibly lag, and eventually (on 3rd or 4th reply) slow to a halt, sometimes mid-sentence, completely bricking the session. It's been like this since ChatGPT was first opened to public. I initially assumed it's just the usual case of a bloated SPA, but now I think maybe I'm being throttled on purpose?
Re:Show HN: I built a better UI for ChatGPT by weird-eye-issue on Tuesday March 07, 2023 @10:35AM (#35056463)
It uses a different model. ChatGPT Plus is fast too.
Re:Show HN: I built a better UI for ChatGPT by SomewhatLikely on Tuesday March 07, 2023 @10:41AM (#35056551)
I think the slow responses are the real generation rate when you time share the GPU. If you are willing to let GPUs occasionally sit idle though, you can probably get a faster generation rate by dedicating more of the GPU time to that one client.
Re:Show HN: I built a better UI for ChatGPT by mellosouls on Tuesday March 07, 2023 @09:29AM (#35055712)
It's a static web app, you can host it yourself

Note for anybody else wondering, it's not open source, you have to download a binary. More FAQ by clicking the Gift (?) icon at the top and scrolling down.

Re:Show HN: I built a better UI for ChatGPT by seanw444 on Tuesday March 07, 2023 @10:35AM (#35056466)
Moving on...
Re:Show HN: I built a better UI for ChatGPT by Terretta on Tuesday March 07, 2023 @10:47AM (#35056648)
Entrust your AI key to a closed binary? Bot what could possibly go wrong?
Re:Show HN: I built a better UI for ChatGPT by xslvrxslwt on Tuesday March 07, 2023 @11:06AM (#35056939)
I'm not defending anyone here but just strace the program if you're really worried about it. If you don't know what strace is: it exports every syscall the program has made, so you'd see if it's doing anything suspicious.
Re:Show HN: I built a better UI for ChatGPT by kilgnad on Tuesday March 07, 2023 @11:11AM (#35057010)
Or don't use it, and warn others of the issues and let them decide if they want to use it.
Re:Show HN: I built a better UI for ChatGPT by xslvrxslwt on Tuesday March 07, 2023 @11:28AM (#35057255)
Well I don't see why not, also I don't see which issues if you're not using it as you couldn't encounter any to begin with. Being closed source is not an issue.
Re:Show HN: I built a better UI for ChatGPT by kilgnad on Tuesday March 07, 2023 @11:05AM (#35056923)
Careful with the sarcasm. Only positive vibes are allowed on showHN or the admin goes ballistic. I've seen it happen.
Re:Show HN: I built a better UI for ChatGPT by screamingninja on Tuesday March 07, 2023 @11:45PM (#35065365)
> Only positive vibes are allowed on showHN

Sarcasm?

Re:Show HN: I built a better UI for ChatGPT by kilgnad on Wednesday March 08, 2023 @10:56AM (#35070589)
No. It's real. According to dang, showHN is suppose to be a "safe space". You could make absolute crap, everyone is suppose to be positive about it. Dang will flag people who don't do this.

Nothing dang can do though is hundreds of people hate it though. Things with actual security issues for example he'll likely just be quiet about it.

Re:Show HN: I built a better UI for ChatGPT by screamingninja on Wednesday March 08, 2023 @01:28PM (#35072797)
That is unfortunate. You would think that the intent behind posting ShowHN is to get constructive feedback but based on what you described, it appears that the expectation is to make those creators feel good instead.
Re:Show HN: I built a better UI for ChatGPT by kilgnad on Wednesday March 08, 2023 @03:19PM (#35074194)
You still can, just have to be excessively nice about it. Huge emphasis on excessively.
Re:Show HN: I built a better UI for ChatGPT by vishal0123 on Tuesday March 07, 2023 @06:07PM (#35062640)
What could go wrong? It is static site and there is no backend, so the key is only in the browser.
Re:Show HN: I built a better UI for ChatGPT by worldsavior on Tuesday March 07, 2023 @10:54AM (#35056750)
It is open source. Your browser retrives all the JS and html sources. Even if it were somehow closed source, it doesn't really matter. You can view web requests and other, and see for yourself.
Re:Show HN: I built a better UI for ChatGPT by xslvrxslwt on Tuesday March 07, 2023 @11:05AM (#35056909)
What Just because you can see HTML and JS that THE BACKEND SENT doesn't mean you can see the actual logic (code)
Re:Show HN: I built a better UI for ChatGPT by arthur_sav on Tuesday March 07, 2023 @01:07PM (#35058770)
This is a static website, no backend.
Re:Show HN: I built a better UI for ChatGPT by filoleg on Tuesday March 07, 2023 @03:41PM (#35060903)
All logic is clientside in the downloaded JS and HTML. After the initial page load, it should send nothing to the backend of the website, only API calls to chatGPT API itself.

Theoretically, you should block any outgoing connections to the website domain (after it loads all necessary HTML and JS), and it should still work fine. "Theoretically" because it might attempt delay-loading some static assets, but you get the idea.

Re:Show HN: I built a better UI for ChatGPT by kilgnad on Tuesday March 07, 2023 @11:10AM (#35056986)
The ability to reverse engineer the source through the browser doesn't make something qualify as open source anymore than reverse engineering a binary with some other tool.

I can view web requests but let's say on the 365th web request it sends my API key to an unknown location. How would I know if this was closed source?

Re:Show HN: I built a better UI for ChatGPT by RohMin on Tuesday March 07, 2023 @11:14AM (#35057063)
Forgive me if I’m just being naive but couldn’t you look at the source from the browser dev tools?
Re:Show HN: I built a better UI for ChatGPT by freedomben on Tuesday March 07, 2023 @11:45AM (#35057465)
Sure, if you're checking the first 365 requests or you get really lucky and just happen to look that time. Quite unlikely though.
Re:Show HN: I built a better UI for ChatGPT by worldsavior on Tuesday March 07, 2023 @01:49PM (#35059400)
It's not similar to a binary file, since re a binary file is a pain in the ass and looking at JS with some obfuscation is much easier.

Your example is valid, but it's like asking "how can I know that my iPhone doesn't record me while I'm sleeping?"

Re:Show HN: I built a better UI for ChatGPT by kilgnad on Tuesday March 07, 2023 @03:49PM (#35061018)
I trust apple over some random person on the internet.
Re:Show HN: I built a better UI for ChatGPT by tottenval on Tuesday March 07, 2023 @12:44PM (#35058456)
If you're looking for an open source ChatGPT UI, I built one with React + Typescript:

https://github.com/cogentapps/chat-with-gpt

https://chatwithgpt.netlify.app/

Re:Show HN: I built a better UI for ChatGPT by singularity2001 on Tuesday March 07, 2023 @12:59PM (#35058655)
why is the System Prompt reset after a few seconds!?
Re:Show HN: I built a better UI for ChatGPT by tottenval on Tuesday March 07, 2023 @01:32PM (#35059156)
Just pushed a fix for this (refresh to get the update), let me know if it happens again!
Re:Show HN: I built a better UI for ChatGPT by birdyrooster on Tuesday March 07, 2023 @02:39PM (#35060108)
But why is it closed source? It makes no sense why you would obfuscate this.