Skip to content

New JSON Schema Requirement Bumps with LiteLLM #1029

Closed
@rawkintrevo

Description

@rawkintrevo

Initial Checks

Description

On this commit,
c8bbfc0#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711R34

A new dependency was added "jsonschema==4.20.0" authored by @bhosmer-ant

The issue is the hard req on 4.20.0 bumps with LiteLLM

I don't see any notes in the PR that 4.20.0 precisely needs to be used. Changing it to >= anecdotally works in my case.

LiteLLM is a pretty popular package, would be nice to maintain compatibility.

The conflict is caused by:
    mcp 1.9.5.dev23+c8bbfc0 depends on jsonschema==4.20.0
    litellm 1.73.1 depends on jsonschema<5.0.0 and >=4.22.0
    litellm 1.73.0 depends on jsonschema<5.0.0 and >=4.22.0
    litellm 1.72.9 depends on jsonschema<5.0.0 and >=4.22.0

It goes on like this back to 1.72.0 released may 31, at least.

Example Code

Python & MCP Python SDK

Python 3.11
mcp 1.9.5.dev23+c8bbfc0

Metadata

Metadata

Assignees

No one assigned

    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