If your Python application consumes moderation results from a chat stream, put an evaluation of openai-python 3.15.0 near the front of your dependency-update queue. The reason is specific: the September 18 release notes list “preserve chat stream moderation results” under Bug Fixes, with references to #3864 and commit b77076d.
That is a reason to check a data-preservation dependency, not evidence that upgrading makes an application safe.
Decide Whether This Fix Is on Your Path
Start with the code that consumes your stream. Does any downstream logic depend on moderation results supplied through that path? If so, my recommendation is to evaluate the upgrade alongside a focused regression check, rather than treating it as an unrelated dependency bump.
If your application does not consume those results, this particular fix gives you less reason to accelerate the update. That is not a judgment on the rest of the release; it is a way to prioritize this change by its relevance to your application.
The release note does not specify the affected version range, exact failure mechanism, result fields, or triggering conditions. It cannot establish that your current pin loses data, and the linked implementation has not been examined here.
Test Preservation, Not Just Stream Completion
A useful regression check would follow the supplied result all the way to its consumer. This is a proposed test plan, not a report of tests performed:
- Identify where your application expects to receive moderation results and what values it needs to retain.
- Prepare a sanitized fixture or controlled response that you have confirmed contains those results. Use a harness that exercises SDK stream handling; injecting an object directly into downstream business logic would bypass the dependency you are checking.
- Run the same case against your current dependency pin and the 3.15.0 candidate. Assert that the expected supplied values reach the consuming logic intact. A completed stream or correct generated text is not that assertion.
- Record the input, dependency versions, and observed values. If both versions pass, you have a preservation regression case, not proof that your application reproduced the reported bug. If the candidate fails, investigate before relying on it.
A response without moderation results cannot demonstrate that results were preserved. Establish that the test input contains them before interpreting a pass or failure.
Keep the Upgrade Claim Narrow
Preserving supplied results and generating or acting on those results are different questions. This release page does not establish broader moderation coverage, better detection quality, enforcement timing, or correct end-to-end application behavior.
The practical decision is therefore bounded: prioritize the upgrade evaluation when your application depends on these results, and pair it with an explicit preservation assertion. Keep any assessment of the application’s safety policy separate from that SDK regression check.