Skip to content

fix(streaming): raise on thread error events#2798

Open
majiayu000 wants to merge 1 commit intoopenai:mainfrom
majiayu000:fix/stream-thread-error
Open

fix(streaming): raise on thread error events#2798
majiayu000 wants to merge 1 commit intoopenai:mainfrom
majiayu000:fix/stream-thread-error

Conversation

@majiayu000
Copy link

Summary

  • raise APIError when thread.* events include error payloads
  • add regression coverage for thread error events (sync/async)

Testing

  • PYTHONPATH=src pytest tests/test_streaming_errors.py -o addopts= -o filterwarnings= -p no:benchmark
  • PYTHONPATH=src pytest -o addopts= -o filterwarnings= -p no:benchmark (fails: 502 from http://127.0.0.1:4010/audio/transcriptions in tests/api_resources/audio/test_transcriptions.py)

@majiayu000 majiayu000 requested a review from a team as a code owner December 20, 2025 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant