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.3 #138

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 5, 2024

Mend Renovate

This PR contains the following updates:

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

Release Notes

openai/openai-node (openai)

v4.47.3

Compare Source

Full Changelog: v4.47.2...v4.47.3

Bug Fixes
Documentation
  • azure: update example and readme to use Entra ID (#​857) (722eff1)

v4.47.2

Compare Source

Full Changelog: v4.47.1...v4.47.2

Documentation

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.

@renovate renovate bot force-pushed the renovate/openai-4.x-lockfile branch from da9b8b9 to 0c2bd51 Compare June 6, 2024 08:18
Copy link

github-actions bot commented Jun 6, 2024

anthropic debug - [puLL-Merge] - openai/openai-node@v4.47.1..v4.47.3

Description

This PR updates the openai-node library to version 4.47.3. The main changes include:

  • Allowing git imports for pnpm
  • Updating Azure OpenAI example and readme to use Entra ID for authentication
  • Adding a bundle size badge to the readme
  • Fixing the URL for the batches endpoint in the Azure client
Changes

Changes

.release-please-manifest.json, CHANGELOG.md, package.json, src/version.ts:

  • Version bumped to 4.47.3

README.md:

  • Added npm bundle size badge
  • Updated Deno import example to use version 4.47.3
  • Updated Azure OpenAI example to use DefaultAzureCredential and getBearerTokenProvider for authentication

examples/azure.ts:

  • Updated to use DefaultAzureCredential and getBearerTokenProvider for authentication

examples/package.json:

  • Added @azure/identity dependency for the Azure example

src/index.ts:

  • Removed /batches endpoint from _deployments_endpoints set

tests/lib/azure.test.ts:

  • Updated tests for batches endpoint to expect correct URL without deployment ID

Copy link

github-actions bot commented Jun 6, 2024

openai debug - [puLL-Merge] - openai/openai-node@v4.47.1..v4.47.3

Description

This pull request primarily introduces the following changes to the repository:

  • A version bump from 4.47.1 to 4.47.3
  • Bug fixes for Azure OpenAI handling
  • Documentation updates to reflect changes and usage
  • The introduction of an npm bundle size badge in the README
  • Example updates to use the new Azure configuration
  • Dependency addition for @azure/identity in examples
Changes

Changes

.release-please-manifest.json

  • Updated:
    -  ".": "4.47.1"
    +  ".": "4.47.3"

CHANGELOG.md

  • Added entries for version 4.47.2 and 4.47.3:
    +## 4.47.3 (2024-05-31)
    +
    +Full Changelog: [v4.47.2...v4.47.3](https://github.com/openai/openai-node/compare/v4.47.2...v4.47.3)
    +
    +### Bug Fixes
    +
    +* allow git imports for pnpm ([#873](https://github.com/openai/openai-node/issues/873)) ([9da9809](https://github.com/openai/openai-node/commit/9da98090e80cbe988a3d695e4c9b57439080ec3e))
    +
    +### Documentation
    +
    +* **azure:** update example and readme to use Entra ID ([#857](https://github.com/openai/openai-node/issues/857)) ([722eff1](https://github.com/openai/openai-node/commit/722eff1a7aeaa2ce3c40301709db61258c9afa16))
    +
    +## 4.47.2 (2024-05-28)
    +
    +Full Changelog: [v4.47.1...v4.47.2](https://github.com/openai/openai-node/compare/v4.47.1...v4.47.2)
    +
    +### Documentation
    +
    +* **readme:** add bundle size badge ([#869](https://github.com/openai/openai-node/issues/869)) ([e252132](https://github.com/openai/openai-node/commit/e2521327b7b4f5abe97e4c58c417b37d00079ef8))

README.md

  • Added npm bundle size badge:
    -[![NPM version](https://img.shields.io/npm/v/openai.svg)](https://npmjs.org/package/openai)
    +[![NPM version](https://img.shields.io/npm/v/openai.svg)](https://npmjs.org/package/openai) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/openai)
  • Updated import URL and Azure OpenAI example:
    -import OpenAI from 'https://deno.land/x/openai@v4.47.1/mod.ts';
    +import OpenAI from 'https://deno.land/x/openai@v4.47.3/mod.ts';
    ++
    +import { AzureOpenAI } from 'openai';
    +import { getBearerTokenProvider, DefaultAzureCredential } from '@azure/identity';
    +
    +const credential = new DefaultAzureCredential();
    +const scope = 'https://cognitiveservices.azure.com/.default';
    +const azureADTokenProvider = getBearerTokenProvider(credential, scope);
    +
    +const openai = new AzureOpenAI({ azureADTokenProvider });

examples/azure.ts

  • Added imports and updated Azure OpenAI initialization:
    +import { getBearerTokenProvider, DefaultAzureCredential } from '@azure/identity';
    +const credential = new DefaultAzureCredential();
    +const scope = 'https://cognitiveservices.azure.com/.default';
    +const azureADTokenProvider = getBearerTokenProvider(credential, scope);
    +
    +const openai = new AzureOpenAI({ azureADTokenProvider });

examples/package.json

  • Added @azure/identity as a dependency:
    +    "@azure/identity": "^4.2.0"

package.json

  • Updated version:
    -  "version": "4.47.1",
    +  "version": "4.47.3",
  • Removed prepack script:
    -    "prepack": "echo 'to pack, run yarn build && (cd dist; yarn pack)' && exit 1",

scripts/build-deno

  • Updated the version in the Deno import URL:
    -import OpenAI from "https://deno.land/x/openai@v4.47.1/mod.ts";
    +import OpenAI from "https://deno.land/x/openai@v4.47.3/mod.ts";

src/index.ts

  • Removed /batches from deployments_endpoints:
    -  '/batches',

src/version.ts

  • Updated version constant:
    -export const VERSION = '4.47.1'; // x-release-please-version
    +export const VERSION = '4.47.3'; // x-release-please-version

tests/lib/azure.test.ts

  • Consistent casing in test descriptions:
    - test('handles Batch', async () => {
    + test('handles batch', async () => {
    ```</details>
    

Copy link

github-actions bot commented Jun 6, 2024

bedrock debug - [puLL-Merge] - openai/openai-node@v4.47.1..v4.47.3

Description

This PR updates the openai-node library to version 4.47.3. The main changes include:

  • Fixing an issue to allow git imports for pnpm
  • Updating Azure OpenAI example and readme to use Entra ID for authentication
  • Adding a npm bundle size badge to the README
Changes

Changes

  • .release-please-manifest.json: Bumped version from 4.47.1 to 4.47.3
  • CHANGELOG.md:
    • Added changelog entries for versions 4.47.3 and 4.47.2
    • 4.47.3 includes a bug fix for pnpm git imports and Azure doc updates
    • 4.47.2 includes adding a bundle size badge to README
  • README.md:
    • Added npm bundle size badge
    • Updated Deno import example to use version 4.47.3
    • Updated Azure OpenAI usage example to use DefaultAzureCredential and getBearerTokenProvider for authentication
  • examples/azure.ts:
    • Updated to use DefaultAzureCredential and getBearerTokenProvider for Azure OpenAI authentication
    • Removed setting AZURE_OPENAI_API_KEY, now uses AD token provider
  • examples/package.json: Added @azure/identity dependency for the Azure example
  • package.json:
    • Bumped version to 4.47.3
    • Removed prepack script
  • scripts/build-deno: Updated Deno import example to use version 4.47.3
  • src/index.ts: Removed /batches from _deployments_endpoints set
  • src/version.ts: Updated version to 4.47.3
  • tests/lib/azure.test.ts:
    • Renamed "Batch" tests to "batch"
    • Updated expected URL for batch API to not include deployment

Security Hotspots

The main security relevant change is switching the Azure OpenAI example and docs to use DefaultAzureCredential and an Azure AD token instead of an API key. This is a more secure authentication method. No other changes appear to introduce security risks.

@thypon thypon merged commit 5dec925 into main Jun 6, 2024
8 checks passed
@thypon thypon deleted the renovate/openai-4.x-lockfile branch June 6, 2024 08:20
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