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.47.1 #136

Merged
merged 1 commit into from
May 29, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 29, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
openai 4.40.2 -> 4.47.1 age adoption passing confidence

Release Notes

openai/openai-node (openai)

v4.47.1

Compare Source

Full Changelog: v4.47.0...v4.47.1

Chores
  • internal: add slightly better logging to scripts (#​848) (139e690)

v4.47.0

Compare Source

Full Changelog: v4.46.1...v4.47.0

Features

v4.46.1

Compare Source

Full Changelog: v4.46.0...v4.46.1

Refactors

v4.46.0

Compare Source

Full Changelog: v4.45.0...v4.46.0

Features

v4.45.0

Compare Source

Full Changelog: v4.44.0...v4.45.0

Features
Chores

v4.44.0

Compare Source

Full Changelog: v4.43.0...v4.44.0

Features

v4.43.0

Compare Source

Full Changelog: v4.42.0...v4.43.0

Features

v4.42.0

Compare Source

Full Changelog: v4.41.1...v4.42.0

Features
Bug Fixes

v4.41.1

Compare Source

Full Changelog: v4.41.0...v4.41.1

Bug Fixes

v4.41.0

Compare Source

Full Changelog: v4.40.2...v4.41.0

Features

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 has been generated by Mend Renovate. View repository job log here.

Copy link

openai debug - [puLL-Merge] - openai/[email protected]

Description

This pull request (PR) adds support for Azure OpenAI integration, updates configurations, and includes several refactorings and improvements. Key changes include adding the AzureOpenAI class for easier integration with Azure, modifying example scripts, updating dependencies, and adding new unit tests.

Changes

Changes

Configuration Files

  • .github/workflows/ci.yml

    • Streamlined 'Install dependencies' step.
    • Replaced 'Check types' step's command from yarn build to ./scripts/lint.
  • .release-please-manifest.json

    • Updated version from 4.40.2 to 4.47.1.
  • .stats.yml

    • Updated openapi_spec_url.
  • CHANGELOG.md

    • Added entries for versions 4.41.0 through 4.47.1, informing of various features, refactors, chores, and bug fixes.
  • README.md

    • Updated OpenAI version imports for Deno from v4.40.2 to v4.47.1.
    • Expanded Azure OpenAI usage documentation.
  • package.json

    • Updated the version from 4.40.2 to 4.47.1.
  • scripts/build-deno, scripts/format, scripts/lint

    • Updated to reflect new version and added lint fixing script.

New Files

  • SECURITY.md
    • Added new security policy file.

Example Scripts

  • examples/azure.ts

    • Updated to use AzureOpenAI class, simplifying configuration by eliminating the need to hardcode resource name and API key.
  • examples/fine-tuning-data.jsonl

    • Corrected system role names from "Marv" to "Marvin".
  • examples/fine-tuning.ts

    • Changed status check from 'created' to 'queued' in the example.
  • ecosystem-tests/vercel-edge/package.json

    • Updated next dependency from 13.5.6 to 14.1.1.

Source Code

  • src/index.ts

    • Added AzureOpenAI class.
    • Various other imports and exports added related to Azure OpenAI integration.
  • src/resources/*

    • Numerous updates to different resource files to ensure they point to the correct paths and updated specifications.
  • src/version.ts

    • Updated version to 4.47.1.

Tests

  • tests/*
    • Added new and updated existing tests to validate AzureOpenAI integration, multi-byte character handling, and retries along with new features and updates in completions, files, and chat completion-related logic.

Security Hotspots

  • SECURITY.md
    • Provides a formalized policy and contact information for responsible disclosure of security vulnerabilities.

Possible Issues

No immediate issues noted. However, since this PR introduces significant updates, including new major features (Azure integration), thorough testing and a possible beta release can help ensure its robustness before a full rollout.

Copy link

anthropic debug - [puLL-Merge] - openai/[email protected]

Description

This PR makes several changes and additions to the OpenAI Node.js SDK:

  1. Adds an AzureOpenAI client for interfacing with the Azure OpenAI API. This allows using the SDK with Azure endpoints and deployments.

  2. Updates the README and examples to document the new Azure client.

  3. Adds tests for the Azure client.

  4. Updates the CHANGELOG for new releases up to v4.47.1.

  5. Updates dependencies like Next.js to newer versions.

  6. Adds a new SECURITY.md file.

Changes

Changes

  • .github/workflows/ci.yml: Updates the CI workflow to use a lint script.

  • .release-please-manifest.json, package.json, scripts/build-deno: Bumps version to 4.47.1.

  • CHANGELOG.md: Adds changelog entries for versions 4.41.1 to 4.47.1.

  • README.md:

    • Documents the new AzureOpenAI client and how to use it.
    • Updates version in Deno import example to 4.47.1.
  • SECURITY.md: Adds a new security policy file.

  • api.md: Regenerates API docs, adding new Azure related types.

  • examples/:

    • azure.ts: Updates the Azure example to use the new AzureOpenAI client.
    • fine-tuning-data.jsonl: Renames "Marv" to "Marvin" in data.
    • fine-tuning.ts: Updates tuning job status check.
    • package.json: Bumps Next.js dependency.
  • scripts/:

    • Adds a new format script to run eslint --fix.
    • Updates lint script to just run eslint.
    • Updates test script output.
    • utils/fix-index-exports.cjs: Updates exports fixing for new Azure client.
  • src/:

    • index.ts: Adds AzureOpenAI client class and related types/logic.
    • lib/AssistantStream.ts: Updates types for streaming.
    • resources/: Updates imports to be relative. Regenerates API bindings.
    • version.ts: Bumps version to 4.47.1.
  • tests/: Adds tests for the new AzureOpenAI client. Updates some existing tests.

Overall, this is a significant update that adds Azure support to the SDK while also including various smaller improvements and updates.

Copy link

bedrock debug - [puLL-Merge] - openai/[email protected]

Description

This PR updates the OpenAI Node.js library to version 4.47.1, adding support for Azure OpenAI and making various other improvements and fixes. The key changes include:

  • Added a new AzureOpenAI client for interfacing with the Azure OpenAI API. This allows using the library with Azure OpenAI deployments.
  • Added support for new gpt-4o models.
  • Added stream_options parameter to chat completions and completions to enable getting token usage when streaming.
  • Added support for image URLs and more granular image detail options in message content for the Assistants beta API.
  • Expanded the purposes allowed when uploading files.
  • Various fixes and improvements to error handling, typing, and examples.
Changes

Changes

  • README.md:
    • Updated usage examples for Azure OpenAI and bumped version to 4.47.1
  • src/index.ts:
    • Added AzureOpenAI client class for Azure OpenAI
    • Added handling for api-version and deployment options
    • Added auth handling for Azure AD tokens
  • src/lib/ChatCompletionStream.ts:
    • Added stream_options support
    • Updated types for message content changes
  • src/resources/files.ts:
    • Added new supported file purposes like vision and batch
  • Examples:
    • Added Azure OpenAI example
    • Fixed fine-tuning example
    • Bumped Next.js version
  • Tests:
    • Added Azure tests
    • Fixed tests broken by message content changes

Security Hotspots

None. The changes don't appear to introduce any new security risks. The addition of the AzureOpenAI client increases the attack surface slightly but it follows the same security practices as the existing client. Sensitive information like API keys and AD tokens are not logged or exposed.

Copy link

[puLL-Merge] - openai/[email protected]

Description

This PR makes several changes to the OpenAI Node.js SDK to add support for Microsoft Azure OpenAI:

  • Adds a new AzureOpenAI client class for interfacing with the Azure OpenAI API. This client takes Azure-specific configuration options like apiVersion, endpoint, deployment, apiKey, and azureADTokenProvider.
  • Updates the README.md with documentation on how to use the new Azure client.
  • Adds an examples/azure.ts file demonstrating usage of the Azure client.
  • Adds tests for the new Azure functionality.

The motivation appears to be to enable developers to use this SDK with Azure OpenAI in addition to the core OpenAI API.

Changes

Changes

  • .github/workflows/ci.yml: Minor updates to the CI configuration
  • .release-please-manifest.json, CHANGELOG.md, package.json: Version bumped to 4.47.1
  • README.md:
    • Adds documentation for the Azure OpenAI client
    • Updates the Deno import example to use the latest version
  • SECURITY.md: New file outlining the security policy and reporting procedures
  • api.md: Regenerated API documentation
  • examples/azure.ts: New example demonstrating usage of the Azure OpenAI client
  • examples/fine-tuning-data.jsonl, examples/fine-tuning.ts: Minor updates to the fine-tuning examples
  • examples/package.json, ecosystem-tests/vercel-edge/package.json: Upgrades Next.js to v14.1.1
  • scripts/build-deno, scripts/format, scripts/lint, scripts/test, scripts/utils/fix-index-exports.cjs: Minor build script updates
  • src/index.ts:
    • Adds the new AzureOpenAI client class with Azure-specific configuration
    • Updates exports to include the Azure client
  • Various files under src/:
    • Updates to the AssistantStream to support image URLs
    • Regenerated API resource files with minor type updates
    • Adds ChatCompletionStreamOptions type
  • src/version.ts: Updated to 4.47.1
  • tests/: Adds several new tests for the Azure OpenAI client functionality

Security Hotspots

This PR does not appear to introduce any major new security risks. The added AzureOpenAI client does allow providing custom token retrieval logic via the azureADTokenProvider option which could potentially be a vector for leaking credentials if misused, but this seems like an acceptable and necessary risk to enable the Azure AD authentication flow.

@thypon thypon merged commit 8f743d1 into main May 29, 2024
9 checks passed
@thypon thypon deleted the renovate/openai-4.x-lockfile branch May 29, 2024 13:53
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