-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Grounding in Gemini throws an error "invalid argument" #536
Comments
It's possible that 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. |
I accepted the Terms of Services using the form, but I am still facing an error. I am using the sample provided by Google. Can I get get any help? model = GenerativeModel("gemini-1.5-pro-preview-0409") tool = Tool.from_google_search_retrieval(grounding.GoogleSearchRetrieval()) The Exception Traceback (most recent call last): Process finished with exit code 1 |
@ShyamKadari did you get a confirmation that you were allowlisted for the feature? |
No.
I did not get a confirmation email.
Shyam
…On Fri, Apr 26, 2024, 12:05 PM Holt Skinner ***@***.***> wrote:
@ShyamKadari <https://github.com/ShyamKadari> did you get a confirmation
that you were allowlisted for the feature?
—
Reply to this email directly, view it on GitHub
<#536 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BICC2YXXINDOQYFZHIDYQDDY7KCNPAVCNFSM6AAAAABGDUL73KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZZG43DKMZQG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
File Name
gemini/grounding/intro-grounding-gemini.ipynb
What happened?
While trying out Grounding with Generative AI, the command
response = model.generate_content(PROMPT, tools=[tool])
throws the error :Whereas
response = model.generate_content(PROMPT)
works just fine. I see that there's some issue in using thetools
parameter.Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: