Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Fix: Make embedchain optional to resolve browser-use compatibility (fixes #2702)#292

Closed
devin-ai-integration[bot] wants to merge 4 commits intomainfrom
devin/1745811503-fix-browser-use-compatibility
Closed

Fix: Make embedchain optional to resolve browser-use compatibility (fixes #2702)#292
devin-ai-integration[bot] wants to merge 4 commits intomainfrom
devin/1745811503-fix-browser-use-compatibility

Conversation

@devin-ai-integration
Copy link
Contributor

Fix: Make embedchain optional to resolve browser-use compatibility

This PR resolves the dependency conflict between browser-use>=0.1.40 and crewAI[tools]>=0.114.0 by making embedchain an optional dependency and providing alternative adapters.

Issue

When users try to use browser-use>=0.1.40 together with crewAI[tools]>=0.114.0, they encounter a dependency conflict due to incompatible langchain-openai version requirements:

  • browser-use>=0.1.40 requires langchain-openai==0.3.1 or higher
  • embedchain (used by crewAI-tools) requires langchain-openai<0.3.0,>=0.2.1

This fixes issue #2702.

Changes

  • Made embedchain an optional dependency
  • Created custom adapters that don't depend on embedchain
  • Modified RagTool and PDFSearchTool to use the custom adapters when embedchain is not available
  • Added tests to verify the fix

Testing

  • Added tests for the custom adapters
  • Added a compatibility test to verify that the solution fixes the browser-use compatibility issue

Link to Devin run: https://app.devin.ai/sessions/db87bfd9f9ec4ff5a273bd6ebc19bbfc
Requested by: Joe Moura (joao@crewai.com)

…ixes #2702)

Co-Authored-By: Joe Moura <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 3 commits April 28, 2025 03:50
…hain dependency

Co-Authored-By: Joe Moura <joao@crewai.com>
@devin-ai-integration
Copy link
Contributor Author

Closing due to inactivity for more than 7 days.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants