HackerTrans
TopNewTrendsCommentsPastAskShowJobs

_mme

no profile record

Submissions

Ceiling is being raised: analyzing my typescript code that became a meme

ai88.substack.com
17 points·by _mme·2 năm trước·2 comments

Show HN: Beak.js – Custom conversational assistants for your React app

github.com
36 points·by _mme·3 năm trước·23 comments

Ask HN: Experiences with Flashcards and Learning?

2 points·by _mme·3 năm trước·0 comments

comments

_mme
·3 năm trước·discuss
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 năm trước·discuss
Agree!

For now, I added instructions how to run the demo.

https://github.com/mme/beakjs#run-the-demo
_mme
·3 năm trước·discuss
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 năm trước·discuss
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 năm trước·discuss
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.
_mme
·3 năm trước·discuss
Cool!

I made something similar a while ago, desktop only:

https://songmine.io/