Skip to content

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

Open
@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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions