Skip to content

Add support for PWA #1188

@lborgman

Description

@lborgman

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.

Metadata

Metadata

Assignees

Labels

priority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions