Thanks to visit codestin.com
Credit goes to github.com

Skip to content

OpenAI with LiteLLM tool usage throws error that doesnt appear when using Gemini or Claude #1389

@kanlanc

Description

@kanlanc

I have an MCP toolset that I am using which doesnt throw any errors when using Gemini or Claude but when using Openai it gives me this error

 litellm.BadRequestError: OpenAIException - Invalid schema for function 'scrape_webpage': 'BOOLEAN' is not valid under any of the given schemas.

Some other times its 'STRING' as well

Any one else facing this same issue

Metadata

Metadata

Assignees

Labels

bot triaged[Bot] This issue is triaged by ADK botmodels[Component] Issues related to model support

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions