Ceiling is being raised: analyzing my typescript code that became a memeai88.substack.com17 points·by _mme·2년 전·2 comments
Show HN: Beak.js – Custom conversational assistants for your React appgithub.com36 points·by _mme·3년 전·23 comments
_mme·3년 전·discussNice 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년 전·discussAgree!For now, I added instructions how to run the demo.https://github.com/mme/beakjs#run-the-demo
_mme·3년 전·discussExactly, that's the idea - having a backend part of the library that proxies the communication with OpenAI, keeping the API key secret.
_mme·3년 전·discussThank 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년 전·discussYou 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.