Before adopting openai-python v3.14.0, check whether your error handlers match API error codes as integers. The official release notes dated September 14, 2026 list one relevant bug fix: “normalize API error codes to strings” (#3532, commit 233d955, closing #3531). This is the SDK version, not the Python interpreter version.
The practical decision is whether your existing error-dispatch rules and fixtures need a type migration. It is not a reason to create new retry categories.
Where a match can disappear
If a handler expects a numeric code, receiving a string can make an equality check fail or an integer-keyed lookup fall through to its default. That is a conditional consequence of the type change, not a migration failure demonstrated by the release notes.
For example, this is a Python matching illustration, not an SDK call or a real API-code definition:
code = "123" # Invented example API code, not an HTTP status.
old_rules = {123: "existing_rule"}
string_rules = {"123": "existing_rule"}
assert code != 123
assert old_rules.get(code, "fallback") == "fallback"
assert string_rules.get(code, "fallback") == "existing_rule"
Changing the key type preserves the intended match in this illustration; it says nothing about what that rule should do. No SDK migration tests were run for this article.
A bounded pre-upgrade check
- Trace the API-code value into application logic. Inspect comparisons, membership checks, dispatch dictionaries and fixtures that feed those branches. Keep HTTP status handling separate: an API error code and an HTTP status code are not interchangeable, and this note does not establish a status-code type change.
- Align affected matches with string codes. Where a rule currently relies on an integer API code, update its comparison or key and its corresponding fixture together. Preserve the code as a string rather than adding an integer conversion to retain the old table shape. The notes do not establish that every possible code is numeric text.
- Assert the selected branch, not just the lack of an exception. For each affected existing rule, add a string-code fixture and check that it selects the same intended action. Include an unrecognized string to check the existing fallback. These are proposed regression checks, not reported test results.
If your handlers already match strings, or never inspect API error codes, this particular change may require no type migration. If integer assumptions exist, resolve those matches before adopting the version. Neither outcome is a complete compatibility assessment of the release.
The release notes do not supply a complete code taxonomy, missing/null-code behavior, or new retryability rules. The linked implementation and tests have not been inspected here, and the release does not establish behavior through another API provider. Keep the upgrade decision narrow: verify that existing recovery rules still match the code representation, without changing their meaning.