Skip to content

[BUG] 400 Bad Request: Missing items in tool schema (follow_up) #1570

Description

@Xavier-M

Describe the bug
Using an OpenAI-compatible endpoint backed by Gemini / Vertex AI and a company API Gateway causes a 400 Bad Request error because the follow_up tool parameter schema is missing the items field.
The follow_up parameter is defined with "type": "array" but lacks the mandatory "items" schema definition required.

To Reproduce
I think you would need the API Gateway of my company, but I just have to to /init to reproduce it with a Gemini 3.7 Flash model for instance.

Expected behavior
The request should comply with strict JSON schema validation and succeed.

Screenshots
N/A

Video
N/A

What version of zoo are you running
3.82.0

Additional context
Error log : INVALID_ARGUMENT: GenerateContentRequest.tools[0].function_declarations[1].parameters.properties[follow_up].items: missing field.
The follow_up parameter is defined with "type": "array" but lacks the mandatory "items" schema definition required by Gemini/Vertex AI.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions