Skip to content

[Vertex AI] Invalid JSON payload received. Unknown name "optionalProperties" at 'tools[0].function_declarations[0].parameters': Cannot find field. #8944

Open
@brandonfranke

Description

@brandonfranke

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

  1. Create a function declaration that has optionalProperties defined and pass it to the Vertex AI model creation
  2. Attempt to create a new chat and send a message.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions