Skip to content

[BUG] Gemini Unknown name \"additionalProperties\" #2457

Closed
@pratap007x

Description

@pratap007x

Description

Failed to convert text into JSON, error: litellm.BadRequestError: VertexAIException BadRequestError - {
"error": {
"code": 400,
"message": "Invalid JSON payload received. Unknown name "additionalProperties" at 'tools[0].function_declarations[0].parameters.properties[0].value': Cannot find field.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"field": "tools[0].function_declarations[0].parameters.properties[0].value",
"description": "Invalid JSON payload received. Unknown name "additionalProperties" at 'tools[0].function_declarations[0].parameters.properties[0].value': Cannot find field."
}
]
}
]
}
}
. Using raw output instead.

Steps to Reproduce

if your JSON output is nested
then this error get produced

Expected behavior

there is not the any "additionalProperties" key

Screenshots/Code snippets

NA

Operating System

Ubuntu 20.04

Python Version

3.10

crewAI Version

0.105.0

crewAI Tools Version

0.38.0

Virtual Environment

Conda

Evidence

Image

Possible Solution

its been resolved in latest litellm version but crewai doesn't support the latest version

BerriAI/litellm#6136

Additional context

NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions