I am bit new to using crewai. I have following version installed for crewai and open ai in my virtual env in my mac.
Name: openai
Version: 1.100.0
Name: crewai
Version: 0.159.0
When I am runnning crewai create crew I am keep gettign below error. I did check online and try to debug with Chat GPT and it kept saying - You’re still using an outdated version of crewai — one that references ResponseTextConfig, which only existed in OpenAI SDK v0.x. But the version of OpenAI installed in your virtual environment is >=1.0, where ResponseTextConfig no longer exists.
ImportError: cannot import name ‘ResponseTextConfig’ from ‘openai.types.responses.response’
I have tried all the solutions but nothing is working. Has anyone else come across this issue?
The problem is that you have OpenAI version 1.100.0 installed, but the ResponseTextConfig class was renamed to ResponseFormatTextConfig in newer versions of the OpenAI library. This is a breaking change that occurred between versions.The error suggests that crewai or one of its dependencies is trying to import the old class name ResponseTextConfig which no longer exists.
tried debugging with cursor and found below. Is this something that crewAI team can fix to avoid this compatible issue
Now I understand the issue! OpenAI 1.0.0 has a completely different structure than what crewai and litellm are expecting. The problem is that there’s a fundamental incompatibility between these package versions.