3 ms·
Nice, although you did that so you can avoid having an API when running some web application you make for yourself or am I misunderstanding you sorry? Because
by james-revisoai 4y ago
Nice, although you did that so you can avoid having an API when running some web application you make for yourself or am I misunderstanding you sorry?
Because the other distribution paradigms are...
- sharing your key with the user on client side is risky, so you have API side requests.
- one day LLMs might be local and can then run off-browser
- williamcotton 4y agoThe approach I’ve been using is to keep the API requests server-side and to expose a client interface, thus keeping the keys safe, but the response is eval’d client-side so when OpenAI starts referencing document.body in a completion it affects the browser runtime directly.
- james-revisoai 4y agoYeah it's a smart idea I see now, you can use it as a universal database as such for all clients, like having a Python dict for all the outputs or something, but you can also easily spin up the UIs enabling your cool examples.