Skip to content

[Bug]: openai dependency still pinned to <3.0.0 in latest release, blocks packages requiring openai>=3.0.0 #40317

Closed

Description

@bachya

What Happened

litellm's pyproject.toml pins openai>=2.20.0,<3.0.0 even in the latest
release (1.100.0). This makes it impossible to install litellm alongside
any package that requires openai>=3.0.0.

openai's v3.x line has been on PyPI for a while now (currently 3.9.0), so
the <3.0.0 ceiling appears to be stale rather than an active compatibility
guard.

Reproduction

In a project that depends on both litellm==1.99.0 (or 1.100.0) and another
package requiring openai>=3.0.0, uv lock fails to resolve:

× No solution found when resolving dependencies for split (markers:
│ python_full_version == '3.14.7' and sys_platform == 'win32'):
╰─▶ Because some-package[openai]==X.Y.Z depends on openai>=3.0.0 and
    litellm==1.99.0 depends on openai>=2.20.0,<3.0.0, we can conclude that
    litellm==1.99.0 and some-package[openai]==X.Y.Z are incompatible.
    And because llm depends on litellm==1.99.0, we can conclude that llm and
    some-package[openai]==X.Y.Z are incompatible.
    And because llm depends on some-package[openai]==X.Y.Z and your
    workspace requires llm[all], we can conclude that your workspace's
    requirements are unsatisfiable.

Relevant Log Output

No response

Are you a ML Ops Team?

No

What areas was the bug in?

Dependencies

Twitter / LinkedIn details

No response

Activity

  1. pdeitel commented on Sep 15, 2026

    @pdeitel

    any updates on this?

  2. marcuswood-oai commented on Sep 28, 2026

    @marcuswood-oai
    Contributor

    Howdy! I’m one of OpenAI’s Python SDK maintainers, new to LiteLLM. #43209 attempts SDK 2/3 compatibility; limitations are detailed there. I’d appreciate feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions