crewAIInc / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
https://crewai.com
MIT License
20.79k stars 2.87k forks source link

No valid dependencies for openai, langchain with crewai #306

Closed aiswaryasankar closed 5 months ago

aiswaryasankar commented 8 months ago

I've tried nearly every permutation of dependencies but keep running into these conflicts Also why is crewai dependent on such an old version of openAI? Even if I downgrade to openai 0.28.1 it throws errors since the other apis have moved on. e.g.

ImportError: cannot import name 'OpenAI' from 'openai'```

Dep issues - 

crewai 0.1.7 requires langchain<0.0.352,>=0.0.351, but you have langchain 0.1.10 which is incompatible. crewai 0.1.7 requires openai<0.29.0,>=0.28.1, but you have openai 1.13.3 which is incompatible.

joaomdmoura commented 8 months ago

Oh you should be updating crewAI to its latest version 0.19.0 :) way better and more features

João Moura @joaomdmoura http://twitter.com/joaomdmoura

Em dom., 3 de mar. de 2024 às 20:54, aiswaryasankar < @.***> escreveu:

I've tried nearly every permutation of dependencies but keep running into these conflicts Also why is crewai dependent on such an old version of openAI? Even if I downgrade to openai 0.28.1 it throws errors since the other apis have moved on. e.g.

ImportError: cannot import name 'OpenAI' from 'openai'```

Dep issues -

crewai 0.1.7 requires langchain<0.0.352,>=0.0.351, but you have langchain 0.1.10 which is incompatible. crewai 0.1.7 requires openai<0.29.0,>=0.28.1, but you have openai 1.13.3 which is incompatible.

— Reply to this email directly, view it on GitHub https://github.com/joaomdmoura/crewAI/issues/306, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFC3N2SW7THRY5SREENM3LYWOZ33AVCNFSM6AAAAABEELIOXCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE3DKNRTGAZDAMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Wladastic commented 5 months ago

This is fixed by updating crewai as well as langchain dependency.

joaomdmoura commented 5 months ago

thanks!