yes, I did, no luck.
createGoogleGenerativeAI({
apiKey,
baseURL: `https://gateway.helicone.ai/v1beta/models/model-name:generateContent?key=${apiKey}`, <-- from the gemini js doc
headers: {
"Helicone-Auth": `Bearer ${process.env.PLASMO_PUBLIC_HELICONE_API_KEY}`,
"Helicone-Target-Url":
"https://generativelanguage.googleapis.com",
},
})
it failed at the preflight phase,
cors error
. I'm working on a web extension, everything happens in the browser only. all api keys are saved in the browser local storage.
but, the interesting thing is that the code for groq works great in the same env, π€£ .