[pull] main from openai:main - #149
Merged
Merged
Conversation
Automated Release PR --- ## [3.6.0](v3.5.0...v3.6.0) (2026-08-27) ### Features * **api:** add compute_units to Responses and Chat Completions usage ([#3749](#3749)) ([52421d1](52421d1)) ### Bug Fixes * **auth:** harden X.509 workload identity integration ([#3740](#3740)) ([fc3ad6c](fc3ad6c)) ### Chores * **deps-dev:** bump @stdy/cli from 0.22.1 to 0.22.2 ([#3719](#3719)) ([4f5598c](4f5598c)) * **deps-dev:** bump mypy from 1.17 to 2.3.1 ([#3747](#3747)) ([0b52c9e](0b52c9e)) * **deps-dev:** bump pandas-stubs from 2.2.2.240807 to 2.3.3.260113 ([#3659](#3659)) ([95f0b43](95f0b43)) * **deps-dev:** bump pyright from 1.1.399 to 1.1.413 ([#3744](#3744)) ([9917c6e](9917c6e)) * **deps-dev:** bump rich from 14.2.0 to 15.0.0 ([#3717](#3717)) ([7a5484d](7a5484d)) * **deps:** bump actions/checkout from 6.0.2 to 7.0.1 ([#3665](#3665)) ([d0a2550](d0a2550)) * **deps:** bump actions/download-artifact from 6.0.0 to 8.0.1 ([#3669](#3669)) ([f627619](f627619)) * **deps:** bump github/codeql-action/init from 4.37.1 to 4.37.7 ([#3745](#3745)) ([a36010d](a36010d)) ### Build System * **deps:** bump actions/setup-python from 5.6.0 to 7.0.0 ([#3672](#3672)) ([d765db7](d765db7)) * **deps:** bump pypa/gh-action-pypi-publish from 1.14.0 to 1.14.2 ([#3666](#3666)) ([dacbb66](dacbb66)) --- 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>
- [x] I understand that this repository is auto-generated and my pull request may not be merged ## Changes being requested Avoid calling has_numpy() once per returned embedding when the default embeddings decoder handles a bulk base64 response. The parser now checks whether any encoded vectors need decoding, resolves NumPy availability once per response, and reuses that result for every encoded vector. Add focused regressions that verify multiple encoded vectors trigger one availability check and responses containing only already-decoded vectors do not inspect NumPy. ## Additional context & links Closes #3753 Parser-only benchmark for 1,500 vectors x 1,536 dimensions with NumPy unavailable: 86.0 ms -> 20.5 ms median across 30 alternating runs, a 76.1% reduction and 4.18x speedup. With NumPy installed, performance was effectively unchanged/slightly improved: 24.0 ms -> 23.5 ms. Validation: - 79 focused embeddings tests passed under Pydantic v2 - 79 focused embeddings tests passed under Pydantic v1 - 11,232 full-suite tests passed; 144 skipped - Ruff format/check passed - Pyright passed - mypy passed - Three adversarial review rounds completed; the final two consecutive rounds were clean
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )