Closed haggman closed 2 months ago
OH! FYI, the InvalidArgument: 400 Request contains an invalid argument.
is also thrown if you use the JSON and curl the service directly.
Bet this is a me issue. I see not that the grounding in Google Search feature is still allow-list only. I just did the form to request access. Will try again in a day or three.
Same issue as #536
You need to accept the additional Terms of Service for Grounding with Google Search in Gemini. You can find this in Vertex AI Studio:
And you can access the form directly here:
https://docs.google.com/forms/d/e/1FAIpQLSfj7SJNAqXOe7vB9Re-WtwJedTWjHkBKZ6OHaLoGoXRG93ymg/viewform
I'll update the notebook to include this step.
Originally posted by @holtskinner in https://github.com/GoogleCloudPlatform/generative-ai/issues/536#issuecomment-2051998134
File Name
gemini/grounding/intro-grounding-gemini.ipynb
What happened?
On the Cloud Insiders email list, someone reported a bug he was running into while working on a web search grounding example. His issue is over here if you'd like to see. I remembered a working notebook in this repo (the one I'm reporting) which did the same thing, so I thought I'd do some research. Looks like your notebook is throwing the same error as his. I'm guessing there's a change happening in the API, but that's only a guess.
Relevant log output
Code of Conduct