Change8

v2.7.0

Breaking Changes
📦 openai-python-sdk
1 breaking3 features🐛 3 fixes🔧 4 symbols

Summary

Release 2.7.0 introduces Realtime API token limits and hybrid search ranking options, while fixing resource leaks in uploads and stream handling.

⚠️ Breaking Changes

  • InputAudio has been removed from ResponseInputContent. Code relying on InputAudio within this specific content type will need to be updated to use alternative structures.

Migration Steps

  1. Update any code using ResponseInputContent to remove references to InputAudio.
  2. Ensure stream handling logic accounts for the ability to close streams early.

✨ New Features

  • Added Realtime API token_limits support.
  • Added Hybrid searching ranking options.
  • Updated ResponseInputContent to remove InputAudio.

🐛 Bug Fixes

  • Modified client to allow closing streams without requiring full consumption.
  • Updated Realtime examples in the README.
  • Fixed a file handle leak in the uploads module.

🔧 Affected Symbols

ResponseInputContentInputAudioopenai.resources.uploadsopenai.Stream