Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: openai/openai-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.16.0
Choose a base ref
...
head repository: openai/openai-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.16.1
Choose a head ref
  • 2 commits
  • 49 files changed
  • 3 contributors

Commits on Sep 18, 2026

  1. fix(api): avoid loading unrelated API resources on first use (#3898)

    Importing the SDK or accessing one API resource currently loads
    unrelated resources, including Assistants. Load resource exports and
    streaming helpers when first accessed to reduce startup work.
    
    Existing import paths, class identity, static typing, wildcard imports,
    and discovery are preserved. Code that inspects module dictionaries
    directly may observe exports appearing later; import work and import
    errors move to first access.
    
    Regression tests cover import isolation, public exports, runtime
    annotations, pickling, reloads, sync/async requests and streams, and
    concurrent first access. Endpoint methods, models, dependencies, and
    webhook behavior are unchanged.
    
    Validation: 682 focused tests passed (14 skipped), along with Mypy,
    Pyright, and Ruff. Python 3.10/3.14, HTTPX2, build, lint, and baseline
    checks passed on the final revision. End-to-end testing also passed.
    
    Co-authored-by: marcuswood-oai <323319819+marcuswood-oai@users.noreply.github.com>
    marcuswood-oai and marcuswood-oai authored Sep 18, 2026
    Configuration menu
    Copy the full SHA
    68e4317 View commit details
    Browse the repository at this point in the history
  2. release: 3.16.1 (#3899)

    Automated Release PR
    ---
    
    
    ##
    [3.16.1](v3.16.0...v3.16.1)
    (2026-09-18)
    
    
    ### Bug Fixes
    
    * **api:** avoid loading unrelated API resources on first use
    ([#3898](#3898))
    ([68e4317](68e4317))
    
    ---
    This PR was generated with [Release
    Please](https://github.com/googleapis/release-please). See
    [documentation](https://github.com/googleapis/release-please#release-please).
    
    Co-authored-by: openai-sdks[bot] <284451331+openai-sdks[bot]@users.noreply.github.com>
    openai-sdks[bot] authored Sep 18, 2026
    Configuration menu
    Copy the full SHA
    bccad31 View commit details
    Browse the repository at this point in the history
Loading