Skip to content

Conversation

@xjacka
Copy link

@xjacka xjacka commented Aug 19, 2025

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

fix #2564

Additional context & links

@xjacka xjacka requested a review from a team as a code owner August 19, 2025 11:59
@jldec
Copy link

jldec commented Aug 19, 2025

@xjacka I tried the change in your PR with litellm and it still results in a different (related) error. I think additional changes would be needed, not just that line.

To test

  • pip install litellm in a venv with openai
  • then run the following python script
import litellm response = litellm.completion(model="gpt-4o-mini", messages=[{"role": "user", "content": "Hello, how are you?"}]) print(response)

with openai v1.99.9

Assuming you have exported OPENAI_API_KEY, the code works, and a result is returned ModelResponse(id='... etc.

with openai v1.100.0 and v1.100.1

 File "/Users/jldec/openai/openai-python/.venv/lib/python3.9/site-packages/litellm/litellm_core_utils/core_helpers.py", line 8, in <module> from litellm.types.llms.openai import AllMessageValues File "/Users/jldec/openai/openai-python/.venv/lib/python3.9/site-packages/litellm/types/llms/openai.py", line 36, in <module> from openai.types.responses.response import ( ImportError: cannot import name 'ResponseTextConfig' from 'openai.types.responses.response' (/Users/jldec/openai/openai-python/src/openai/types/responses/response.py) 

with this PR (xjacka/patch-1)

 File "/Users/jldec/openai/openai-python/.venv/lib/python3.9/site-packages/litellm/litellm_core_utils/core_helpers.py", line 8, in <module> from litellm.types.llms.openai import AllMessageValues File "/Users/jldec/openai/openai-python/.venv/lib/python3.9/site-packages/litellm/types/llms/openai.py", line 44, in <module> from openai.types.responses.response_create_params import ( ImportError: cannot import name 'ResponseTextConfigParam' from 'openai.types.responses.response_create_params' (/Users/jldec/openai/openai-python/src/openai/types/responses/response_create_params.py) 
@xjacka
Copy link
Author

xjacka commented Aug 20, 2025

This should be fixed in 1.100.2

@xjacka xjacka closed this Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants