Skip to content

fix(deps): update dependency openai to v5 #346

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 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 2, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
openai ^4.85.4 -> ^5.0.0 age adoption passing confidence

Release Notes

openai/openai-node (openai)

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

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 /v1/responses and built-in tools (0612242)
  • api: add get /chat/completions endpoint (9697139)
  • api: add get /chat/completions endpoint (16c67be)
  • api: add get /responses/{response_id}/input_items endpoint (f2c5aba)
  • api: add get /responses/{response_id}/input_items endpoint (3676d34)
  • api: add container endpoint (3ffca5c)
  • api: add container endpoint (e973476)
  • api: Add evalapi to sdk (70092d7)
  • api: Add evalapi to sdk (#​1456) (33b66f5)
  • api: add gpt-4.5-preview (1d4478d)
  • api: add gpt-4.5-preview (#​1349) (bb269a1)
  • api: add image sizes, reasoning encryption (0c25021)
  • api: add image sizes, reasoning encryption (31cd88f)
  • api: add o3 and o4-mini model IDs (19cda5d)
  • api: add o3 and o4-mini model IDs (a0d0000)
  • api: Add reinforcement fine-tuning api support (e6bbaf5)
  • api: Add reinforcement fine-tuning api support (fabe6ec)
  • api: add support for storing chat completions (59da177)
  • api: add support for storing chat completions (#​1327) (be1ca6b)
  • api: adding gpt-4.1 family of model IDs (8a2a745)
  • api: adding gpt-4.1 family of model IDs (840e7de)
  • api: adding new image model support (a0010fd)
  • api: adding new image model support (c353531)
  • api: Config update for pakrym-stream-param (71c3d31)
  • api: Config update for pakrym-stream-param (b4d1b46)
  • api: Config update for pakrym-stream-param (469ad7b)
  • api: further updates for evals API (3019a7e)
  • 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 (0cc8994)
  • api: new API tools (fb4014f)
  • api: new models for TTS, STT, + new audio features for Realtime (1eab9ed)
  • api: new models for TTS, STT, + new audio features for Realtime (#​1407) (d11b13c)
  • api: new streaming helpers for background responses (c071491)
  • api: new streaming helpers for background responses (1ddd6ff)
  • api: o1-pro now available through the API (3540b06)
  • api: o1-pro now available through the API (#​1398) (aefd267)
  • api: responses x eval api (b349ade)
  • api: responses x eval api (ea1d56c)
  • api: Updating Assistants and Evals API schemas (e68f598)
  • 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)
  • version 5 (855144b)
  • version 5 (855144b)
Bug Fixes
  • api: add missing file rank enum + more metadata (b943a0a)
  • api: correct some Responses types (3ca8965)
  • api: correct some Responses types (#​1391) (e983d0c)
  • api: improve type resolution when importing as a package (b6bf469)
  • 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 (752f4f1)
  • mcp: remove unused tools.ts (#​1445) (4ba9947)
  • optimize sse chunk reading off-by-one error (a7effe8)
  • optimize sse chunk reading off-by-one error (#​1339) (b0b4189)
  • package: add chat/completions.ts back in (#​1333) (ee34833)
  • package: add chat/completions.ts back in (#​1333) (1f38cc1)
  • parsing: remove tool_calls default empty array (#​1341) (40e8dd2)
  • 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 (1698b95)
  • 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 (96ed4db)
  • 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 hash of OpenAPI spec/config inputs to .stats.yml (48921aa)
  • add missing type alias exports (5d75cb9)
  • add missing type alias exports (#​1390) (f4647cc)
  • api: updates to supported Voice IDs (28130c7)
  • api: updates to supported Voice IDs (#​1424) (fb0e96a)
  • ci: add timeout thresholds for CI jobs (5775451)
  • ci: add timeout thresholds for CI jobs (939f636)
  • ci: bump node version for release workflows (bbf5d45)
  • ci: only use depot for staging repos (c59c3b5)
  • ci: only use depot for staging repos (214da39)
  • ci: run on more branches and use depot runners (e17a4f8)
  • ci: run on more branches and use depot runners (ead76fc)
  • client: drop support for EOL node versions (a326944)
  • client: expose headers on some streaming errors (#​1423) (6c93a23)
  • client: minor internal fixes (5032c28)
  • client: minor internal fixes (6558b7c)
  • 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)
  • deprecate Assistants API (1726e6b)
  • deprecate Assistants API (5b34fcd)
  • docs: add missing deprecation warnings (5495529)
  • docs: add missing deprecation warnings (995075b)
  • docs: grammar improvements (d5d62b0)
  • 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 (0da1c16)
  • 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 (6d3cc5c)
  • improve publish-npm script --latest tag logic (1f59811)
  • improve publish-npm script --latest tag logic (6207a2a)
  • internal: add aliases for Record and Array (8957ff4)
  • 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 (00ce31b)
  • internal: add missing return type annotation (#​1334) (13aab10)
  • internal: add proxy ecosystem tests (619711a)
  • internal: bump migration cli version (a899c97)
  • internal: codegen related update (fa48353)
  • internal: codegen related update (c735a3c)
  • internal: fix devcontainers setup (873e273)
  • internal: fix devcontainers setup (#​1343) (9485f5d)
  • internal: fix eslint ignores (ad5a9b6)
  • internal: fix examples (db23ff3)
  • internal: fix examples (#​1457) (a100f0a)
  • internal: fix format script (3e1ea40)
  • internal: fix formatting (6469d53)
  • internal: fix lint (45a372c)
  • internal: fix release workflows (0e4b982)
  • 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 (bb39dba)
  • internal: reduce CI branch coverage (77fc77f)
  • internal: refactor utils (e7fbfbc)
  • internal: remove CI condition (ef43345)
  • 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 (5b81f62)
  • internal: skip broken test (#​1458) (58f4559)
  • internal: update @​types/bun (d94b41a)
  • internal: update release workflows (2cbf49a)
  • internal: upload builds and expand CI branch coverage (3dcbe17)
  • internal: upload builds and expand CI branch coverage (#​1460) (2d45287)
  • internal: version bump (b40e830)
  • internal: version bump (5123fe0)
  • internal: version bump (#​1393) (2e49526)
  • migration: add beta handling (3508099)
  • move ChatModel type to shared (236dbf4)
  • package: remove engines (500a82f)
  • perf: faster base64 decoding (11b9534)
  • Remove deprecated/unused remote spec feature (00bdda3)
  • Remove deprecated/unused remote spec feature (71950f6)
  • revert temporary version change (47a8350)
  • tests: improve enum examples (0b30331)
  • 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
  • add examples to tsdocs (e8d2092)
  • fix "procesing" -> "processing" in realtime examples (#​1406) (dfbdc65)
  • migration: mention function renames (eb773ee)
  • migration: mention zod helpers error (43b870d)
  • readme: fix typo (c44ed98)
  • readme: fix typo (0989ddc)
  • update URLs from stainlessapi.com to stainless.com (e4e737d)
  • update URLs from stainlessapi.com to stainless.com (#​1352) (634a209)
Refactors
  • client: remove deprecated runFunctions method (e29a009)
  • functions: rename function helper methods to include tools (fdd6f66)

Configuration

📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (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 was generated by Mend Renovate. View the repository job log.

Copy link
Contributor

coderabbitai bot commented Jun 2, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Join our Discord community for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@riderx
Copy link
Contributor

riderx commented Jun 2, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

Copy link

sonarqubecloud bot commented Jun 2, 2025

Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedopenai@​5.0.1100100100100100

View full report

Copy link
Contributor

github-actions bot commented Jun 2, 2025

🚀 Preview deployed: https://renovate/openai-5.x.capgo-website.pages.dev

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.

1 participant