# ImportError: cannot import name 'ResponseTextConfig' from 'openai.types.responses.response'

**URL:** <https://community.crewai.com/t/importerror-cannot-import-name-responsetextconfig-from-openai-types-responses-response/6938>\
**Category:** CrewAI Community Support\
**Created:** [August 18, 2025, 9:42pm UTC](https://community.crewai.com/t/importerror-cannot-import-name-responsetextconfig-from-openai-types-responses-response/6938 "2025-08-18T21:42:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![maannaash](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@maannaash](https://community.crewai.com/u/maannaash)\
**Post date:** [August 18, 2025, 9:42pm UTC](https://community.crewai.com/t/importerror-cannot-import-name-responsetextconfig-from-openai-types-responses-response/6938/1 "2025-08-18T21:42:57Z")

</div>

Hello,

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?

---

<div class="post-metadata">

**Author:** ![maannaash](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@maannaash](https://community.crewai.com/u/maannaash)\
**Post date:** [August 18, 2025, 9:47pm UTC](https://community.crewai.com/t/importerror-cannot-import-name-responsetextconfig-from-openai-types-responses-response/6938/2 "2025-08-18T21:47:01Z")

</div>

ChatGPT also suggested below which I tried but still not working. I installed latest CrewAIcode from Github but still getting same error.

To use `crewai create`, you must install the **latest CrewAI code from GitHub** , **not PyPI** , because:

- The **PyPI release (0.159.0)** still imports `ResponseTextConfig`

- The **GitHub `main` branch** has moved to OpenAI `>=1.0` compatibility and YAML configs.

---

<div class="post-metadata">

**Author:** ![maannaash](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@maannaash](https://community.crewai.com/u/maannaash)\
**Post date:** [August 18, 2025, 10:10pm UTC](https://community.crewai.com/t/importerror-cannot-import-name-responsetextconfig-from-openai-types-responses-response/6938/3 "2025-08-18T22:10:29Z")

</div>

Did some research and found following:

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.

---

<div class="post-metadata">

**Author:** ![maxmoura](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/maxmoura/32/4206_2.png) [@maxmoura](https://community.crewai.com/u/maxmoura)\
**Post date:** [August 19, 2025, 12:39am UTC](https://community.crewai.com/t/importerror-cannot-import-name-responsetextconfig-from-openai-types-responses-response/6938/4 "2025-08-19T00:39:23Z")

</div>

```bash
uv add "openai<1.100.0"

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex025/uploads/crewai/original/1X/ecda97e72f77c7100e0a761444b1c991925cc789.png) [@system](https://community.crewai.com/u/system)\
**Post date:** [August 20, 2025, 12:39am UTC](https://community.crewai.com/t/importerror-cannot-import-name-responsetextconfig-from-openai-types-responses-response/6938/5 "2025-08-20T00:39:39Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
