Skip to content

[pull] main from openai:main - #149

Merged
pull[bot] merged 2 commits into
gitupdates:mainfrom
openai:main
Aug 29, 2026
Merged

[pull] main from openai:main#149
pull[bot] merged 2 commits into
gitupdates:mainfrom
openai:main

Conversation

@pull

@pull pull Bot commented Aug 29, 2026

Copy link
Copy Markdown

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 : )

openai-sdks Bot and others added 2 commits August 28, 2026 22:20
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
@pull pull Bot locked and limited conversation to collaborators Aug 29, 2026
@pull pull Bot added the ⤵️ pull label Aug 29, 2026
@pull
pull Bot merged commit b19c216 into gitupdates:main Aug 29, 2026
3 of 5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant