Skip to content

Update dependency openai to v5 #43888

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2025
Merged

Update dependency openai to v5 #43888

merged 1 commit into from
Jun 11, 2025

Conversation

matticbot
Copy link
Contributor

This PR contains the following updates:

Package Type Update Change
openai dependencies major 4.56.1 -> 5.3.0

Release Notes

openai/openai-node (openai)

v5.3.0

Compare Source

Full Changelog: v5.2.0...v5.3.0

Features
  • api: Add o3-pro model IDs (9988f8e)

v5.2.0

Compare Source

Full Changelog: v5.1.1...v5.2.0

Features
  • api: Add tools and structured outputs to evals (64844f1)
Bug Fixes
  • changelog: remove duplicated entries (18484cc)
Chores
  • avoid type error in certain environments (44ac3d9)
Documentation

v5.1.1

Compare Source

Full Changelog: v5.1.0...v5.1.1

Bug Fixes
  • assistants: handle thread.run.incomplete while streaming (8f5e7f3)
Chores
  • docs: use top-level-await in example snippets (065d3b0)
  • internal: fix readablestream types in node 20 (771ae81)

v5.1.0

Compare Source

Full Changelog: v5.0.2...v5.1.0

Features
  • api: add new realtime and audio models, realtime session options (1219f09)
Chores
  • adjust eslint.config.mjs ignore pattern (9b5c898)
  • api: update type names (7c296d6)

v5.0.2

Compare Source

Full Changelog: v5.0.1...v5.0.2

Bug Fixes
  • api: Fix evals and code interpreter interfaces (992a9d8)
Chores
  • deps: bump eslint-plugin-prettier (1428a8b)
  • internal: codegen related update (a65428f)

v5.0.1

Compare Source

Full Changelog: v5.0.0...v5.0.1

Chores

v5.0.0

Compare Source

This release migrates from node-fetch to builtin fetch, for full release notes see MIGRATION.md.

Full Changelog: v5.0.0-alpha.0...v5.0.0

Features
  • add audio helpers (ec5067d)
  • add migration guide (cfd2088)
  • add SKIP_BREW env var to ./scripts/bootstrap (7ea4a24)
  • api: add /v1/responses and built-in tools (91af47c)
  • api: add get /chat/completions endpoint (9697139)
  • api: add get /responses/{response_id}/input_items endpoint (f2c5aba)
  • api: add container endpoint (3ffca5c)
  • api: Add evalapi to sdk (70092d7)
  • api: add gpt-4.5-preview (1d4478d)
  • api: add image sizes, reasoning encryption (0c25021)
  • api: add o3 and o4-mini model IDs (19cda5d)
  • api: Add reinforcement fine-tuning api support (e6bbaf5)
  • api: add support for storing chat completions (59da177)
  • api: adding gpt-4.1 family of model IDs (8a2a745)
  • api: adding new image model support (a0010fd)
  • api: Config update for pakrym-stream-param (469ad7b)
  • api: further updates for evals API (3f6f248)
  • api: manual updates (debe529)
  • api: manual updates (e83286b)
  • api: manual updates (959eace)
  • api: manual updates (179a607)
  • api: manual updates (0cb0c86)
  • api: manual updates (678ae6b)
  • api: manual updates (4560dc6)
  • api: manual updates (554c3b1)
  • api: manual updates (b893d81)
  • api: manual updates (c1c2819)
  • api: manual updates (efce6d3)
  • api: manual updates (32afb00)
  • api: new API tools (fb4014f)
  • api: new models for TTS, STT, + new audio features for Realtime (#​1407) (d11b13c)
  • api: new streaming helpers for background responses (1ddd6ff)
  • api: o1-pro now available through the API (#​1398) (aefd267)
  • api: responses x eval api (ea1d56c)
  • api: Updating Assistants and Evals API schemas (8cc63d3)
  • client: accept RFC6838 JSON content types (67da9ce)
  • client: add Realtime API support (7737d25)
  • client: add withOptions helper (7e9ea85)
  • client: improve logging (ead0ba4)
  • client: promote beta completions methods to GA (4c622f9)
Bug Fixes
  • api: add missing file rank enum + more metadata (b943a0a)
  • api: correct some Responses types (#​1391) (e983d0c)
  • api: improve type resolution when importing as a package (#​1444) (4af79dd)
  • assistants: handle thread.run.incomplete event (a2714bb)
  • audio: correctly handle transcription streaming (9c7d352)
  • avoid type error in certain environments (#​1413) (f395e95)
  • azure/audio: use model param for deployments (0eda70a)
  • azure: add /images/edits to deployments endpoints (#​1509) (4b18059)
  • azure: add /images/edits to deployments endpoints (#​1509) (84fc31a)
  • azure: use correct internal method (a9c7821)
  • client: always overwrite when merging headers (c160550)
  • client: fix export map for index exports (#​1328) (26d5868)
  • client: fix export map for index exports, accept BunFile (9416c96)
  • client: fix TypeError with undefined File (0e980d0)
  • client: remove duplicate types (bee2ce5)
  • client: remove duplicate types (#​1410) (23fd3ff)
  • client: return binary content from get /containers/{container_id}/files/{file_id}/content (8502966)
  • client: return binary content from get /containers/{container_id}/files/{file_id}/content (899869b)
  • client: return binary content from get /containers/{container_id}/files/{file_id}/content (83129d7)
  • client: send X-Stainless-Timeout in seconds (5a272a7)
  • client: send X-Stainless-Timeout in seconds (#​1442) (5e5e460)
  • client: send all configured auth headers (ee01414)
  • compat with more runtimes (f743730)
  • correct imports (21f2107)
  • correctly decode multi-byte characters over multiple chunks (f3d7083)
  • docs: correct docstring on responses.stream (1847673)
  • ecosystem-tests/bun: bump dependencies (1e52734)
  • ecosystem-tests/cloudflare-worker: ignore lib errors for now (157248a)
  • ecosystem-tests: correct ecosystem tests setup (6fa0675)
  • embeddings: correctly decode base64 data (#​1448) (d6b99c8)
  • exports: add missing type exports (a816029)
  • exports: add missing type exports (#​1417) (06c03d7)
  • exports: ensure resource imports don't require /index (d028ad7)
  • helpers/zod: error on optional + not nullable fields (6e424b5)
  • internal: add mts file + crypto shim types (a06deb8)
  • internal: clean up undefined File test (da43aa9)
  • internal: fix file uploads in node 18 jest (abfff03)
  • internal: work around https://github.com/vercel/next.js/issues/76881 (#​1427) (84edc62)
  • jsr: correct zod config (04e30c0)
  • jsr: export realtime helpers (0ea64eb)
  • jsr: export zod helpers (77e1180)
  • mcp: remove unused tools.ts (#​1445) (4ba9947)
  • optimize sse chunk reading off-by-one error (#​1339) (b0b4189)
  • package: add chat/completions.ts back in (#​1333) (1f38cc1)
  • parsing: remove tool_calls default empty array (#​1341) (6d056bf)
  • realtime: call .toString() on WebSocket url (#​1324) (6e9444c)
  • responses: correct computer use enum value (66fb815)
  • responses: correct reasoning output type (9cb9576)
  • responses: correctly add output_text (8ae07cc)
  • responses: support streaming retrieve calls (657807c)
  • tests/embeddings: avoid cross-realm issue (aceaac0)
  • tests: don't rely on OPENAI_API_KEY env variable (087580a)
  • tests: manually reset node:buffer File (1d18ed4)
  • tests: port tests to new setup (9eb9854)
  • tests: stop using node:stream (317a04d)
  • threads: remove unused duplicative types (0b77c7c)
  • types: export AssistantStream (#​1472) (bc492ba)
  • types: export ParseableToolsParams (#​1486) (3e7c92c)
  • types: ignore missing id in responses pagination (d2be74a)
  • types: improve responses type names (#​1392) (4548326)
  • zod: warn on optional field usage (#​1469) (aea2d12)
Performance Improvements
Chores
  • add hash of OpenAPI spec/config inputs to .stats.yml (1b0a94d)
  • add missing type alias exports (5d75cb9)
  • api: updates to supported Voice IDs (28130c7)
  • ci: add timeout thresholds for CI jobs (5775451)
  • ci: bump node version for release workflows (bbf5d45)
  • ci: only use depot for staging repos (c59c3b5)
  • ci: run on more branches and use depot runners (e17a4f8)
  • client: drop support for EOL node versions (a326944)
  • client: expose headers on some streaming errors (#​1423) (6c93a23)
  • client: minor internal fixes (5032c28)
  • client: more accurate streaming errors (0c21914)
  • client: move misc public files to new core/ directory, deprecate old paths (38c9d54)
  • client: only accept standard types for file uploads (53e35c8)
  • deprecate Assistants API (0be23b9)
  • docs: add missing deprecation warnings (995075b)
  • docs: grammar improvements (7761cfb)
  • docs: improve docs for withResponse/asResponse (9f4c30b)
  • docs: improve migration doc (732d870)
  • docs: update zod tool call example, fix azure tests (f18ced8)
  • exports: cleaner resource index imports (#​1396) (023d106)
  • exports: stop using path fallbacks (09af7ff)
  • exports: stop using path fallbacks (#​1397) (7c3d212)
  • fix example types (20f179d)
  • improve publish-npm script --latest tag logic (6207a2a)
  • internal: add aliases for Record and Array (#​1443) (1cb66b6)
  • internal: add back release workflow (ca6266e)
  • internal: add Bun.File ecosystem test (cb4194f)
  • internal: add missing return type annotation (#​1334) (13aab10)
  • internal: add proxy ecosystem tests (619711a)
  • internal: bump migration cli version (a899c97)
  • internal: codegen related update (c735a3c)
  • internal: fix devcontainers setup (#​1343) (9485f5d)
  • internal: fix eslint ignores (ad5a9b6)
  • internal: fix examples (#​1457) (a100f0a)
  • internal: fix format script (3e1ea40)
  • internal: fix formatting (6469d53)
  • internal: fix lint (45a372c)
  • internal: fix release workflows (353349d)
  • internal: fix tests failing on node v18 (c54270a)
  • internal: fix tests not always being type checked (0266b41)
  • internal: improve node 18 shims (ee3f483)
  • internal: minor client file refactoring (d1aa00a)
  • internal: only run examples workflow in main repo (#​1450) (93569f3)
  • internal: reduce CI branch coverage (77fc77f)
  • internal: refactor utils (e7fbfbc)
  • internal: remove CI condition (#​1381) (e905c95)
  • internal: remove unnecessary todo (b55321e)
  • internal: run CI on update-specs branch (9c45ef3)
  • internal: run example files in CI (#​1357) (1044c48)
  • internal: share typescript helpers (2470933)
  • internal: skip broken test (#​1458) (58f4559)
  • internal: update @​types/bun (d94b41a)
  • internal: update release workflows (2cbf49a)
  • internal: upload builds and expand CI branch coverage (#​1460) (2d45287)
  • migration: add beta handling (3508099)
  • move ChatModel type to shared (236dbf4)
  • package: remove engines (500a82f)
  • perf: faster base64 decoding (11b9534)
  • tests: improve enum examples (#​1454) (15a86c9)
  • tests: stop using node-fetch, don't directly upload FormDataFile (ebd464f)
  • tests: switch proxy tests to fetchOptions (da6ed5f)
  • types: improved go to definition on fetchOptions (f1712cd)
  • update next to 14.2.25 for CVE-2025-29927 (1ed4288)
  • workaround build errors (e4a7f67)
  • workaround build errors (d6b396b)
Documentation
Refactors
  • client: remove deprecated runFunctions method (e29a009)
  • functions: rename function helper methods to include tools (fdd6f66)

v4.104.0

Compare Source

Full Changelog: v4.103.0...v4.104.0

Features
  • api: Config update for pakrym-stream-param (469ad7b)
Bug Fixes
  • azure: add /images/edits to deployments endpoints (#​1509) (84fc31a)
  • client: return binary content from get /containers/{container_id}/files/{file_id}/content (83129d7)
Chores
  • deprecate Assistants API (5b34fcd)
  • improve publish-npm script --latest tag logic (6207a2a)
  • internal: fix release workflows (353349d)

v4.103.0

Compare Source

Full Changelog: v4.102.0...v4.103.0

Features
  • api: new streaming helpers for background responses (1ddd6ff)

v4.102.0

Compare Source

Full Changelog: v4.101.0...v4.102.0

Features
  • api: add container endpoint (e973476)

v4.101.0

Compare Source

Full Changelog: v4.100.0...v4.101.0

Features
Chores
  • docs: grammar improvements (7761cfb)
  • internal: version bump (b40e830)

v4.100.0

Compare Source

Full Changelog: v4.99.0...v4.100.0

Features
  • api: further updates for evals API (3f6f248)
Chores

v4.99.0

Compare Source

Full Changelog: v4.98.0...v4.99.0

Features
  • api: manual updates (75eb804)
  • api: responses x eval api (5029f1a)
  • api: Updating Assistants and Evals API schemas (27fd517)

v4.98.0

Compare Source

Full Changelog: v4.97.0...v4.98.0

Features
  • api: Add reinforcement fine-tuning api support (4aa7a79)
Chores
  • ci: bump node version for release workflows (2961f63)
  • internal: fix formatting (91a44fe)
Documentation

v4.97.0

Compare Source

Full Changelog: v4.96.2...v4.97.0

Features
  • api: add image sizes, reasoning encryption (9c2113a)
Chores
  • docs: add missing deprecation warnings (253392c)
Documentation

v4.96.2

Compare Source

Full Changelog: v4.96.1...v4.96.2

Bug Fixes
Chores
  • ci: only use depot for staging repos (214da39)
  • ci: run on more branches and use depot runners (ead76fc)

v4.96.1

Compare Source

Full Changelog: v4.96.0...v4.96.1

Bug Fixes
Chores
  • ci: only use depot for staging repos (e80af47)
  • ci: run on more branches and use depot runners (b04a801)

v4.96.0

Compare Source

Full Changelog: v4.95.1...v4.96.0

Features
  • api: adding new image model support (a00d331)
Bug Fixes
Chores
  • ci: add timeout thresholds for CI jobs (e465063)

v4.95.1

Compare Source

Full Changelog: v4.95.0...v4.95.1

Bug Fixes

v4.95.0

Compare Source

Full Changelog: v4.94.0...v4.95.0

Features
  • api: add o3 and o4-mini model IDs (4845cd9)

v4.94.0

Compare Source

Full Changelog: v4.93.0...v4.94.0

Features
  • api: adding gpt-4.1 family of model IDs (bddcbcf)
  • api: manual updates (7532f48)
Chores
  • client: minor internal fixes (d342f17)
  • internal: reduce CI branch coverage (a49b94a)
  • internal: upload builds and expand CI branch coverage (#​1460) (7e23bb4)
  • workaround build errors (913eba8)

v4.93.0

Compare Source

Full Changelog: v4.92.1...v4.93.0

Features
Chores

v4.92.1

Compare Source

Full Changelog: v4.92.0...v4.92.1

Chores

v4.92.0

Compare Source

Full Changelog: v4.91.1...v4.92.0

Features
Bug Fixes
Chores

v4.91.1

Compare Source

Full Changelog: v4.91.0...v4.91.1

Bug Fixes
  • docs: correct docstring on responses.stream (1c8cd6a)
Chores
  • Remove deprecated/unused remote spec feature (ce3dfa8)

v4.91.0

Compare Source

Full Changelog: v4.90.0...v4.91.0

Features
  • api: add get /responses/{response_id}/input_items endpoint (ef0e0ac)
Performance Improvements

v4.90.0

Compare Source

Full Changelog: v4.89.1...v4.90.0

Features
  • api: add get /chat/completions endpoint (2d6710a)
Bug Fixes
Chores
  • add hash of OpenAPI spec/config inputs to .stats.yml (45db35e)
  • api: updates to supported Voice IDs (#​1424) (404f4db)
  • client: expose headers on some streaming errors (#​1423) (b0783cc)

v4.89.1

Compare Source

Full Changelog: v4.89.0...v4.89.1

Bug Fixes
Chores

v4.89.0

Compare Source

Full Changelog: v4.88.0...v4.89.0

Features
  • add audio helpers (ea1b6b4)
  • api: new models for TTS, STT, + new audio features for Realtime (#​1407) (142933a)
Chores

v4.88.0

Compare Source

Full Changelog: v4.87.4...v4.88.0

Features
Chores

v4.87.4

Compare Source

Full Changelog: v4.87.3...v4.87.4

Bug Fixes
Chores

Configuration

📅 Schedule: Branch creation - Between 12:00 AM and 02:59 AM, on day 1 of the month ( * 0-2 1 * * ) in timezone UTC, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@matticbot matticbot requested a review from jeherve as a code owner June 10, 2025 19:17
@matticbot matticbot added [Status] Needs Review This PR is ready for review. [Type] Janitorial labels Jun 10, 2025
@matticbot matticbot requested a review from a team June 10, 2025 19:17
@matticbot matticbot added [Status] Needs Review This PR is ready for review. [Type] Janitorial labels Jun 10, 2025
Copy link
Contributor

github-actions bot commented Jun 10, 2025

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (Jetpack or WordPress.com Site Helper), and enable the renovate/openai-5.x branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack renovate/openai-5.x
bin/jetpack-downloader test jetpack-mu-wpcom-plugin renovate/openai-5.x

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions github-actions bot added [Action] Repo Gardening Github Action: manage PR and issues in your Open Source project Actions GitHub actions used to automate some of the work around releases and repository management labels Jun 10, 2025
@anomiex
Copy link
Contributor

anomiex commented Jun 10, 2025

I don't know how to test this. The secret that was mentioned in #39152 is not accessible to me (yay reorgs). @jeherve Will you handle this?

Copy link

Code Coverage Summary

This PR did not change code coverage!

That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷

Full summary · PHP report · JS report

Copy link
Member

@jeherve jeherve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It tests well for me:
jeherve#207 (comment)

The secret that was mentioned in #39152 is not accessible to me (yay reorgs)

Same same, but I still had it set up on my fork from last time I worked on this. 😅

@jeherve jeherve added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Review This PR is ready for review. labels Jun 11, 2025
@jeherve jeherve merged commit a786b6d into trunk Jun 11, 2025
85 of 86 checks passed
@jeherve jeherve deleted the renovate/openai-5.x branch June 11, 2025 06:11
@github-actions github-actions bot removed the [Status] Ready to Merge Go ahead, you can push that green button! label Jun 11, 2025
@tbradsha
Copy link
Contributor

The secret [...] is not accessible to me

Access is restored now. :^)

mikestottuk pushed a commit that referenced this pull request Jun 26, 2025
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Action] Repo Gardening Github Action: manage PR and issues in your Open Source project Actions GitHub actions used to automate some of the work around releases and repository management [Type] Janitorial
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants