Hacker News new | ask | show | jobs
by carl_dr 109 days ago
Am I right in thinking you’re asking me to put an API in frontend code?
1 comments

No and please don’t do that.

If you only use it as a personal assistant. You can connect to your llm service directly.

If you plan to integrate it into your web app. It’s better to have a proxy api for the llm and auth the request with cookie or something.