-
Notifications
You must be signed in to change notification settings - Fork 192
Description
Is your feature request related to a problem? Please describe.
I want to test this for a JavaScript PWA I have. The problem is how to handle the API key.
Describe the solution you'd like
I am currently testing Groq as an AI for my PWA. Handling the API key there is fairly simple since you call Groq through JavaScript fetch. I store the API key on Vercel and have added a small JavaScript module there that acts as a proxy to Groq and adds the API key.
That works very well since all I do is sending a prompt to Groq and wait for the reply.
The situation here with Gemini might be more complicated. I am not sure.
But maybe you can consider adding a way to route the calls to gemini through such a proxy as I describe here?
Additional context
The JavaScript code on Vercel must be small and executed fast.