Skip to content

[BUG] CrewAI 1.7.0 dependency conflict with litellm[proxy] - incompatible openai version requirements #4079

@juishuyeh

Description

@juishuyeh

Description

CrewAI 1.7.0 cannot be installed alongside litellm[proxy]>=1.74.9 due to conflicting openai package version requirements. This prevents users from upgrading to CrewAI 1.7.0 when using LiteLLM proxy for model management.

Steps to Reproduce

  1. Create a new Python 3.13 project
  2. Try to install CrewAI 1.7.0 with litellm proxy:
uv add 'litellm[proxy]>=1.74.9'
uv add 'crewai[tools]==1.7.0' 

Expected behavior

❯ uv add 'crewai[tools]==1.7.0'
× No solution found when resolving dependencies for split (markers: python_full_version >= '3.14'):
╰─▶ Because crewai==1.7.0 depends on openai>=1.83.0,<1.84.dev0 and litellm==1.80.9 depends on openai>=2.8.0, we can conclude that litellm==1.80.9 and crewai[tools]==1.7.0 are
incompatible.
And because only litellm[proxy]<=1.80.9 is available, we can conclude that crewai[tools]==1.7.0 and litellm[proxy]>=1.80.9 are incompatible.
And because your project depends on crewai[tools]==1.7.0 and litellm[proxy]>=1.80.9, we can conclude that your project's requirements are unsatisfiable.

  hint: While the active Python version is 3.12, the resolution failed for other Python versions supported by your project. Consider limiting your project's supported Python
  versions using `requires-python`.

help: If you want to add the package regardless of the failed resolution, provide the --frozen flag to skip locking and syncing.

Screenshots/Code snippets

NA

Operating System

Other (specify in additional context)

Python Version

3.12

crewAI Version

crewai==1.7.0

crewAI Tools Version

crewai==1.7.0

Virtual Environment

Venv

Evidence

agent_crewai on  master [✘+?] is 📦 v0.1.0 via 🐍 v3.9.6 took 2s
❯ uv add "litellm[proxy]"
Using CPython 3.12.12
Creating virtual environment at: .venv
Resolved 177 packages in 26ms
Installed 101 packages in 169ms
[...]

agent_crewai on  master [✘+?] is 📦 v0.1.0 via 🐍 v3.9.6
❯ uv add 'crewai[tools]==1.7.0'
  × No solution found when resolving dependencies for split (markers: python_full_version >= '3.14'):
  ╰─▶ Because crewai==1.7.0 depends on openai>=1.83.0,<1.84.dev0 and litellm==1.80.9 depends on openai>=2.8.0, we can conclude that litellm==1.80.9 and crewai[tools]==1.7.0 are
      incompatible.
      And because only litellm[proxy]<=1.80.9 is available, we can conclude that crewai[tools]==1.7.0 and litellm[proxy]>=1.80.9 are incompatible.
      And because your project depends on crewai[tools]==1.7.0 and litellm[proxy]>=1.80.9, we can conclude that your project's requirements are unsatisfiable.

      hint: While the active Python version is 3.12, the resolution failed for other Python versions supported by your project. Consider limiting your project's supported Python
      versions using `requires-python`.
  help: If you want to add the package regardless of the failed resolution, provide the `--frozen` flag to skip locking and syncing.

Possible Solution

None

Additional context

This issue affects users who:

  • Use LiteLLM proxy for multi-model management
  • Want to access new features in CrewAI 1.7.0 (e.g., akickoff() for native async)
  • Need to maintain litellm[proxy] for production environments

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