Skip to content
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

fix(deps): update dependency openai to v4.53.2 #163

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 31, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
openai 4.52.7 -> 4.53.2 age adoption passing confidence

Release Notes

openai/openai-node (openai)

v4.53.2

Compare Source

Full Changelog: v4.53.1...v4.53.2

Chores

v4.53.1

Compare Source

Full Changelog: v4.53.0...v4.53.1

Bug Fixes
  • compat: remove ReadableStream polyfill redundant since node v16 (#​954) (78b2a83)
Chores

v4.53.0

Compare Source

Full Changelog: v4.52.7...v4.53.0

Features
Chores
  • docs: mention support of web browser runtimes (#​938) (123d19d)
  • docs: use client instead of package name in Node examples (#​941) (8b5db1f)

Configuration

📅 Schedule: Branch creation - "* 0-4 * * 3" (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.

@renovate renovate bot force-pushed the renovate/openai-4.x-lockfile branch from e9849bd to e9ccd34 Compare July 31, 2024 09:07
Copy link

anthropic debug - [puLL-Merge] - openai/openai-node@v4.52.7..v4.53.2

Description

This PR updates the OpenAI Node.js client library from version 4.52.7 to 4.53.2. It includes several new features, bug fixes, and documentation improvements.

Changes

Changes

  1. Version Update:

    • Updated version from 4.52.7 to 4.53.2 in various files.
  2. New Features:

    • Added support for new GPT-4o-mini models.
    • Implemented new uploads endpoints and related functionality.
  3. API Changes:

    • Updated the number of configured endpoints from 64 to 68.
    • Updated the OpenAPI spec URL.
  4. Documentation Updates:

    • Added mention of web browser runtime support.
    • Updated code examples to use client instead of openai for consistency.
    • Added explanation about the potential security risks of enabling browser support.
  5. Dependency Changes:

    • Removed web-streams-polyfill dependency.
    • Updated to use native ReadableStream from node:stream/web.
  6. Testing Updates:

    • Added new tests for the uploads endpoints.
    • Updated existing tests to use client instead of openai.
  7. Build Process:

    • Updated the Prism mock server version.
  8. Bug Fixes:

    • Removed redundant ReadableStream polyfill for Node.js v16+.

Possible Issues

  • The removal of the web-streams-polyfill dependency might affect compatibility with older Node.js versions or certain environments that relied on this polyfill.

Security Hotspots

  • The addition of browser support (disabled by default) could potentially expose API credentials if not used carefully. The PR includes a detailed explanation of the risks and appropriate use cases for enabling this feature.

Copy link

openai debug - [puLL-Merge] - openai/openai-node@v4.52.7..v4.53.2

Description

This pull request primarily focuses on version updates, the introduction of the new Uploads resource class, and significant documentation improvements. The version has been updated from 4.52.7 to 4.53.2, reflecting changes in various files to support new endpoints and the removal of a deprecated polyfill.

Possible Issues

  1. Breaking change with variable renaming in examples: The change from openai to client for instantiated objects in documentation could cause confusion if users are not aware of the renaming when updating from an older version.
  2. Backward compatibility: The removal of the ReadableStream polyfill might cause issues for users on Node versions older than v16.
  3. Documentation verbosity: The added detailed warning about dangerouslyAllowBrowser might be too verbose for the main README.

Security Hotspots

  1. dangerouslyAllowBrowser flag: Enabling this flag might expose API keys on the client-side. It is risky and the consequences of such should be seriously considered by users.
Changes

Changes

.release-please-manifest.json

  • Updated version from 4.52.7 to 4.53.2.

.stats.yml

  • Increased configured endpoints from 64 to 68.
  • Updated openapi_spec_url to a new version.

CHANGELOG.md

  • Added entries for versions 4.53.0 to 4.53.2, detailing features, bug fixes, and documentation updates.

README.md

  • Updated import paths and version to v4.53.2.
  • Renamed instantiated variable openai to client in examples.
  • Added detailed warnings about the dangerouslyAllowBrowser flag.

api.md

  • Added Uploads resource documentation with types and methods.

package.json

  • Incremented version from 4.52.7 to 4.53.2.
  • Removed web-streams-polyfill from dependencies.

scripts/build-deno and scripts/mock

  • Updated the script to use the latest version v4.53.2.

src/_shims/node-runtime.ts

  • Replaced web-streams-polyfill import with node:stream/web.

src/index.ts

  • Added uploads to the instantiated resources.

src/resources/beta/assistants.ts

  • Added gpt-4o-mini models to the assistant parameters.

src/resources/beta/threads

  • Added gpt-4o-mini models for threads and runs parameters.

src/resources/chat

  • Added gpt-4o-mini models for chat completion and updated documentation to specify the default behavior when service_tier is not set.

src/resources/uploads

  • Added new sub-resources for handling uploads and parts.

src/version.ts

  • Incremented version to 4.53.2.

Tests

  • Updated instantiation in tests to the client variable.
  • Added new tests for the uploads endpoint under tests/api-resources/uploads.

Overall, the PR aims to introduce new features, remove deprecated dependencies, and provide extensive documentation updates. The changes seem well-structured and documented, making it a significant update.

Copy link

bedrock debug - [puLL-Merge] - openai/openai-node@v4.52.7..v4.53.2

Description

This PR updates the OpenAI Node.js library to version 4.53.2. The main changes include:

  • Adding support for new gpt-4o-mini models
  • Adding new uploads endpoints for chunked file uploads
  • Fixing an issue with redundant ReadableStream polyfill
  • Updating documentation and tests
Changes

Changes

  • .release-please-manifest.json: Version bumped to 4.53.2
  • .stats.yml: Updated configured endpoint count and openapi spec URL
  • CHANGELOG.md: Added changelog entries for versions 4.53.0 to 4.53.2
  • README.md:
    • Updated import examples to use version 4.53.2
    • Changed variable name from openai to client in code examples for consistency
    • Added note about dangerouslyAllowBrowser option and explanation of when to use it
  • api.md: Added new Uploads section documenting the new uploads endpoints
  • package.json:
    • Version bumped to 4.53.2
    • Removed web-streams-polyfill dependency since it's redundant in Node v16+
  • scripts/build-deno: Updated import example to use version 4.53.2
  • scripts/mock: Updated to use a specific prism version (5.8.4)
  • src/_shims/node-runtime.ts: Switched to using Node's built-in ReadableStream instead of polyfill
  • src/index.ts, src/resources/beta/assistants.ts, src/resources/beta/threads/runs/runs.ts, src/resources/chat/chat.ts:
    Added gpt-4o-mini and gpt-4o-mini-2024-07-18 model names
  • src/resources/index.ts, src/resources/uploads/*: Added new uploads endpoints
  • src/version.ts: Version bumped to 4.53.2
  • tests/*:
    • Changed variable name from openai to client for consistency
    • Added tests for new uploads endpoints

Chores

  • Updated prism version used in tests
  • Fixed incorrect variable names in docs
  • Mentioned support for web browser runtimes in docs

@thypon thypon merged commit b6e6c01 into main Jul 31, 2024
8 checks passed
@thypon thypon deleted the renovate/openai-4.x-lockfile branch July 31, 2024 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant