#Gemini 1.5 help

1 messages · Page 1 of 1 (latest)

civic quiver
#

Any reason you don't want to discuss it publicly?

calm barn
#

Just wanted to send code and stuff I didn't want to send a lot of messages in the public chat

civic quiver
#

Feel free to post it in the thread. remove the key.

calm barn
#

Oh ok thanks!

civic quiver
calm barn
#

It worked thank bro!

timber wagon
#

Hey guys how did you solve it. Here is my code: "const model = genAI.getGenerativeModel({ model: "gemini-1.5-pro-latest", safetySettings });" Where do I put the v1beta

civic quiver
#

You need a second parameter, I believe:

const model = genAI.getGenerativeModel({
  model: "gemini-1.5-pro-latest", 
  safetySettings 
}, {
  apiVersion: "v1beta"
});
timber wagon
#

Didn't work unfortunately. I think the default is set to v1 in my node modules google package. I'm trying to find the file to change the default to v1beta

civic quiver
#

What, exactly, does your line look like now?

timber wagon
#

Under \node_modules@google\generative-ai\dist I found index.js file. In there I changed the API_VERSION from v1 to v1beta then it worked.

#

Maybe my package was not up to date