#Gemini 1.5 help
1 messages · Page 1 of 1 (latest)
Just wanted to send code and stuff I didn't want to send a lot of messages in the public chat
Feel free to post it in the thread. remove the key.
Oh ok thanks!
I believe you need to use v1beta to use the 1.5 model.
You need to do that in the call to getGenerativeModel passing a second parameter that has the request options
It worked thank bro!
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
You need a second parameter, I believe:
const model = genAI.getGenerativeModel({
model: "gemini-1.5-pro-latest",
safetySettings
}, {
apiVersion: "v1beta"
});
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
It defaults to nothing in the package, which defaults to "v1"
What, exactly, does your line look like now?