-
Notifications
You must be signed in to change notification settings - Fork 923
[Vertex AI] Invalid JSON payload received. Unknown name "optionalProperties" at 'tools[0].function_declarations[0].parameters': Cannot find field. #8944
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
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
You didn't provide any code but here's a version of it that seems to be working fine. Are you using the
|
Thanks for the reply. I've copied the exact function declaration you've provided and looks like that works however I am now getting type errors.
Works but with type errors:
No type errors but causes described error:
|
I see that, let me see what I can do to fix it. In the meantime, to unblock yourself, you can temporarily use |
Operating System
Windows 11
Environment (if applicable)
Chrome
Firebase SDK Version
11.1.0
Firebase SDK Product(s)
VertexAI
Project Tooling
Next.js app
Detailed Problem Description
When trying to provide optionalProperties to a function as part of the Vertex AI tools, I get this error:
Invalid JSON payload received. Unknown name "optionalProperties" at 'tools[0].function_declarations[0].parameters': Cannot find field.
It is typed correctly as I can see optionalProperties is available to provide to the function declaration. This is an issue as Vertex AI in Firebase treats all parameters as required unless specified as optional but I am unable to actually specify anything as optional.
Steps and code to reproduce issue
The text was updated successfully, but these errors were encountered: