Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Jan 23, 2026

Summary

Fixes #4270

The openai dependency was constrained to ~=1.83.0 which only allows versions >=1.83.0,<1.84.0. This prevented integration with OpenLit which requires openai >= 1.92.0.

Changed the constraint to >=1.83.0,<2 to:

  • Allow OpenLit and other integrations that need newer openai versions
  • Prevent potential breaking changes from openai 2.x

Added tests to verify the constraint allows OpenLit-compatible versions while maintaining an upper bound for stability. Tests use tomli as a fallback for Python 3.10 compatibility (since tomllib is only available in Python 3.11+).

Review & Testing Checklist for Human

  • Verify crewAI works with openai 1.92.0+: The tests only verify the constraint allows these versions, but don't test actual compatibility. Consider running the test suite with openai>=1.92.0 installed.
  • Test OpenLit integration end-to-end: Install openlit and verify the integration works as documented without dependency conflicts.
  • Check for breaking changes in openai 1.83→1.92+: Review openai changelog for any API changes that could affect crewAI.

Recommended test plan:

  1. Install crewAI with the updated constraint
  2. Install openlit (pip install openlit)
  3. Run a simple crew with OpenLit telemetry enabled per the docs
  4. Verify no dependency conflicts and telemetry is collected

Notes

The openai dependency was constrained to ~=1.83.0 which only allows
versions >=1.83.0,<1.84.0. This prevented integration with OpenLit
which requires openai >= 1.92.0.

Changed the constraint to >=1.83.0,<2 to:
- Allow OpenLit and other integrations that need newer openai versions
- Prevent potential breaking changes from openai 2.x

Added tests to verify the constraint allows OpenLit-compatible versions
while maintaining an upper bound for stability.

Fixes #4270

Co-Authored-By: João <joao@crewai.com>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

devin-ai-integration bot and others added 2 commits January 23, 2026 10:20
Co-Authored-By: João <joao@crewai.com>
tomllib is only available in Python 3.11+, so we need to use tomli
as a fallback for Python 3.10.

Co-Authored-By: João <joao@crewai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Conflicting versions for openai when using OpenLit

0 participants