Hacker News new | ask | show | jobs
by 0xbeefcab 1103 days ago
Hi there,

Visually it looks pretty good. However like what jamisonbryant said, people on this website aren't fans of when they have to sign in to test something. I made a test account to try it out, and unfortunately submitting my prompt resulted in a Error status 504 on the request with message

"An error occurred with your deployment

FUNCTION_INVOCATION_TIMEOUT"

This is probably because you are waiting for the external openAI API's response before responding to the user's request. You might want to return a response immediately and asynchronously process the openAI part of things and notify the user when its ready somehow.

1 comments

That was something I had wanted to do but couldnt figure out how to do right away so went with this slightly worse approach as a temporary thing to just get something out there, but that totally makes sense and would definitely improve the UX
One possibility would be for you to create a demo account with credentials demo/demo and pre-populate some interesting content that would demonstrate some of the interesting features. Then add some text on landing page to indicate that demo account can be used to kick the tires.
Yeah thats what my current plan is after seeing all the advice and tips that I've been given here, give new users a demo and seeing if its something they want to sign up for in the first place
My advice is ask ChatGPT if you aren’t sure. Can’t tell you how many things it’s helped me to flesh out.
I have very little webdev experience so my advice might be completely useless, but some google searches show either long polling or websockets as a solution to this problem. Either way, good job
You and me both, but I totally agree that it would be better if it was done asynchronously, either by default or as an option for the user so they can still do other things on the site