Skip to content

chore(deps): update dependency openai to v5 #5889

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dane-ai-mastra[bot]
Copy link
Contributor

@dane-ai-mastra dane-ai-mastra bot commented Jul 13, 2025

This PR contains the following updates:

Package Type Update Change
openai dependencies major ^4.104.0 -> ^5.10.1

Release Notes

openai/openai-node (openai)

v5.10.1

Compare Source

Full Changelog: v5.10.0...v5.10.1

Chores
  • internal: version bump (896b418)
  • ts: reorder package.json imports (2f8d2f7)

v5.10.0

Compare Source

Full Changelog: v5.9.2...v5.10.0

Features
Chores

v5.9.2

Compare Source

Full Changelog: v5.9.1...v5.9.2

Chores
  • api: update realtime specs (4a20a3d)
  • internal: version bump (103e8de)

v5.9.1

Compare Source

Full Changelog: v5.9.0...v5.9.1

Chores
  • api: update realtime specs, build config (bb4649f)

v5.9.0

Compare Source

Full Changelog: v5.8.4...v5.9.0

Features
  • api: add file_url, fix event ID (5f5d39e)

v5.8.4

Compare Source

Full Changelog: v5.8.3...v5.8.4

Chores
  • internal: bump undici version in tests (6f38b80)
  • make some internal functions async (841940d)

v5.8.3

Compare Source

Full Changelog: v5.8.2...v5.8.3

Bug Fixes
Chores
  • add docs to RequestOptions type (3735172)
  • ci: only run for pushes and fork pull requests (e200bc4)
  • client: improve path param validation (b5a043b)
  • internal/tests: pin bun types version (fcffa88)

v5.8.2

Compare Source

Full Changelog: v5.8.1...v5.8.2

Bug Fixes
  • client: get fetchOptions type more reliably (b3c959d)

v5.8.1

Compare Source

Full Changelog: v5.8.0...v5.8.1

Bug Fixes
  • client: ensure addOutputText is called on responses.retrieve (d55bb64)
Chores
  • api: remove unsupported property (1966954)
  • docs: update README to include links to docs on Webhooks (586d5da)
  • webhooks: make private methods really private (0ee396a)

v5.8.0

Compare Source

Full Changelog: v5.7.0...v5.8.0

Features
  • api: webhook and deep research support (f2b4f66)
Bug Fixes
  • ci: release-doctor — report correct token name (aed2587)
Refactors
  • types: replace Record with mapped types (7865910)

v5.7.0

Compare Source

Full Changelog: v5.6.0...v5.7.0

Features
  • api: update api shapes for usage and code interpreter (f2100e8)

v5.6.0

Compare Source

Full Changelog: v5.5.1...v5.6.0

Features
  • api: make model and inputs not required to create response (52211c0)
Bug Fixes
  • client: explicitly copy fetch in withOptions (0efacae)
Chores
  • readme: update badges (6898954)
  • readme: use better example snippet for undocumented params (668611f)

v5.5.1

Compare Source

Full Changelog: v5.5.0...v5.5.1

Chores
  • ci: enable for pull requests (e1cf00c)

v5.5.0

Compare Source

Full Changelog: v5.4.0...v5.5.0

Features

v5.4.0

Compare Source

Full Changelog: v5.3.0...v5.4.0

Features
  • api: add reusable prompt IDs (c720bb3)
  • client: add support for endpoint-specific base URLs (05f558b)
Bug Fixes
  • publish script — handle NPM errors correctly (a803cce)
Chores
  • client: refactor imports (9eb4470)
  • internal: add pure annotations, make base APIResource abstract (418eb02)

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)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.

Copy link

codesandbox bot commented Jul 13, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

changeset-bot bot commented Jul 13, 2025

🦋 Changeset detected

Latest commit: 45c0e66

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@mastra/voice-openai Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Jul 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
assistant-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 20, 2025 0:37am
mastra-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 20, 2025 0:37am
openapi-spec-writer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 20, 2025 0:37am

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Greptile Summary

This PR updates the OpenAI Node.js SDK from v4.104.0 to v5.9.0 in the voice/openai package. This is a major version upgrade that represents a significant architectural change in how the SDK handles HTTP requests, moving from node-fetch to built-in fetch. The upgrade brings important improvements including better streaming error handling, improved type safety, and enhanced runtime compatibility. Notable changes include:

  • Migration to built-in fetch API for better cross-environment compatibility
  • New Realtime API support and audio features
  • Improved streaming error handling and type safety
  • Better support for various response types and base64 encoding
  • Removal of deprecated methods and improved resource imports

Confidence score: 2/5

  1. This PR requires careful testing of OpenAI integrations before merging
  2. Low confidence score due to major version bump and architectural changes that could affect voice functionality
  3. Files needing attention:
    • voice/openai/package.json
    • Any files that directly interact with OpenAI streaming responses
    • Any files using deprecated OpenAI SDK methods

1 file reviewed, no comments
Edit PR Review Bot Settings | Greptile

@dane-ai-mastra dane-ai-mastra bot force-pushed the renovate/openai-5.x branch from 99c7960 to 43f5fa5 Compare July 17, 2025 00:49
@dane-ai-mastra dane-ai-mastra bot force-pushed the renovate/openai-5.x branch from 9624d56 to b3b0019 Compare July 17, 2025 18:32
@dane-ai-mastra dane-ai-mastra bot force-pushed the renovate/openai-5.x branch from 4013157 to 81d8616 Compare July 18, 2025 18:31
@dane-ai-mastra dane-ai-mastra bot force-pushed the renovate/openai-5.x branch from 872e23d to cf0fe7c Compare July 19, 2025 00:29
@dane-ai-mastra dane-ai-mastra bot force-pushed the renovate/openai-5.x branch from 287749c to 2390960 Compare July 19, 2025 18:10
@dane-ai-mastra dane-ai-mastra bot force-pushed the renovate/openai-5.x branch from 83e75a4 to 93027e9 Compare July 20, 2025 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants