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.
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.