Skip to content

AI_APICallError: GenerateContentRequest.tools[0].function_declarations[32].parameters. required[0]: property is not defined with Gemini API #3140

@soyruiz

Description

@soyruiz

Related to: #2275, #2241, #3077

Bug Description

Getting AI_APICallError when using Gemini API in Opencode with
function declarations validation error.

Error Details

AI_APICallError:
GenerateContentRequest.tools[0].function_declarations[32].parameters.
required[0]:
property is not defined

Additional Context

This appears to be related to previous Gemini API issues:

The error suggests a schema validation issue where a function
declaration has a required parameter but the property name is not
properly defined in the parameters.required array.

Thanks :)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions