Ceiling is being raised: analyzing my typescript code that became a memeai88.substack.com17 ポイント·投稿者 _mme·2 年前·2 コメント
Show HN: Beak.js – Custom conversational assistants for your React appgithub.com36 ポイント·投稿者 _mme·3 年前·23 コメント
_mme·3 年前·議論Nice project! I made Beak.js which has a similar way to connect a language model to the UI via React hooks: https://github.com/mme/beakjs
_mme·3 年前·議論Agree!For now, I added instructions how to run the demo.https://github.com/mme/beakjs#run-the-demo
_mme·3 年前·議論Exactly, that's the idea - having a backend part of the library that proxies the communication with OpenAI, keeping the API key secret.
_mme·3 年前·議論Thank you!This should be already possible, but it will give you a compiler error if you use Typescript. I will add support in the next version.
_mme·3 年前·議論You don't! As mentioned in the README:"Note: Don't expose your API key in public-facing apps. We will be adding a solution for securely using your API key soon."I have ideas how to implement this, but I would like to get some feedback first.