News for hackers. Stuff that matters.
Re:Show HN: Beak.js – Custom conversational assistants for y... by IceDane on Thursday November 16, 2023 @10:40AM (#38290877)
Ideas?

There is no way to use it in the frontend securely. Communicating with OpenAI will have to happen on the backend and to prevent anyone from abusing your API, it will have to be protected by authentication.

Re:Show HN: Beak.js – Custom conversational assistants for y... by _mme on Thursday November 16, 2023 @10:50AM (#38291042)
Exactly, that's the idea - having a backend part of the library that proxies the communication with OpenAI, keeping the API key secret.
Re:Show HN: Beak.js – Custom conversational assistants for y... by blorenz on Thursday November 16, 2023 @11:37AM (#38291696)
Yes. Something like Remix or Next be a light lift to incorporate those mechanics.
Re:Show HN: Beak.js – Custom conversational assistants for y... by giovapanasiti on Thursday November 16, 2023 @10:51AM (#38291052)
Yeah sounds like OP is advertising an MVP that you can run in localhost with the sole purpose of proving a concept. There's no way this is going to any wise-man production project