-
Notifications
You must be signed in to change notification settings - Fork 318
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
Including more than 1 tool for a Gemini Model results in 400 - Request contains an invalid argument #3771
Comments
I also get the same error for using example grounding using Google search with the example provided in this, already using vertexai version 1.51.0
error return:
|
Your code seems valid, but I suspect you've not agreed to the terms for grounding. |
@expresspotato Can you please try putting all function declarations in a single Tool? P.S. AFAIK, some of the most recent models might support multiple tools. |
Sorry to hear about your troubles here. We've (Google DevRel) also heard reports from users who want to use different types of tools (e.g., grounding/retrieval tools along with FunctionDeclarations). There is a related issue in the |
Environment details
Steps to reproduce
Tool
objectCode example
Stack trace
Tried both tools on their own and the response is fine.
The text was updated successfully, but these errors were encountered: