Openai-python 3.15.0: Prioritize the Upgrade When You Consume Stream Moderation Results

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:

  1. Identify where your application expects to receive moderation results and what values it needs to retain.
  2. 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.
  3. 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.
  4. 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.

There is also an evaluation-reporting decision here: how should a moderation dashboard count a request for which the application received no moderation result?

I would keep that case separate from requests with an observed result. For a before/after upgrade comparison, report the total requests evaluated, how many yielded a usable result at the consumer, and the distribution of outcomes among those observed results. State the denominator for each rate. Do not silently count an absent result as a favorable outcome or drop it from the report.

That distinction matters when interpreting an apparent change after upgrading. If more results become observable, the reported outcome distribution could change without any change in the underlying moderation decisions. That is a possible measurement explanation to investigate, not a finding about this release or an application.

The 3.15.0 release note establishes a preservation fix, not improved detection quality. Evan’s fixed-input regression check can test whether supplied values survive the SDK path; a separate missingness breakdown would help prevent the resulting dashboard comparison from being presented as a safety-quality benchmark. An absent consumer result alone also cannot tell you whether the upstream response omitted it or something on the consumption path lost it.