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.54.0 #166

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 7, 2024

Mend Renovate

This PR contains the following updates:

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

Release Notes

openai/openai-node (openai)

v4.54.0

Compare Source

Full Changelog: v4.53.2...v4.54.0

Features
Chores
Documentation
  • README: link Lifecycle in Polling Helpers section (#​962) (c610c81)

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.

Copy link

github-actions bot commented Aug 7, 2024

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

Description

This pull request updates the version of the OpenAI Node SDK from 4.53.2 to 4.54.0. The update includes various changes such as the extraction of new models (ImageModel, AudioModel, SpeechModel), updates in enums, documentation enhancements, CI pipeline improvements, and internal refactoring.

Changes

Changes

Version and Configuration Files

  • .release-please-manifest.json

    -  ".": "4.53.2"
    +  ".": "4.54.0"
  • .stats.yml

    - openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-77cfff37114bc9f141c7e6107eb5f1b38d8cc99bc3d4ce03a066db2b6b649c69.yml
    + openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-b04761ffd2adad3cc19a6dc6fc696ac445878219972f891881a967340fa9a6b0.yml
  • package.json

    -  "version": "4.53.2",
    +  "version": "4.54.0",
  • src/version.ts

    -export const VERSION = '4.53.2'; // x-release-please-version
    +export const VERSION = '4.54.0'; // x-release-please-version

Documentation

  • CHANGELOG.md: Added entries for version 4.54.0 detailing new features, chores, and documentation updates.

  • README.md

    -import OpenAI from 'https://deno.land/x/[email protected]/mod.ts';
    +import OpenAI from 'https://deno.land/x/[email protected]/mod.ts';

API and Models

  • api.md: Added ImageModel, AudioModel, SpeechModel, and ModerationModel.

  • src/index.ts

    +  static DEFAULT_TIMEOUT = 600000; // 10 minutes
    +  export import ImageModel = API.ImageModel;
    +  export import AudioModel = API.AudioModel;
    +  export import ModerationModel = API.ModerationModel;
  • src/resources/audio/audio.ts, src/resources/audio/index.ts, src/resources/audio/speech.ts, src/resources/audio/transcriptions.ts, src/resources/audio/translations.ts, src/resources/images.ts, src/resources/moderations.ts

    • Added new models (AudioModel, SpeechModel, ImageModel, ModerationModel).
  • src/resources/beta/assistants.ts, src/resources/beta/threads/runs/runs.ts, src/resources/beta/threads/threads.ts

    • Updated model definitions to use the new extracted models.

Refactoring

  • src/lib/AbstractChatCompletionRunner.ts, src/lib/AssistantStream.ts, src/lib/ChatCompletionRunner.ts, src/lib/ChatCompletionStream.ts

    • Combined and refactored event handling into a more generic EventStream class.
  • bin/publish-npm

    +# Extract the pre-release tag if it exists
    +if [[ "$VERSION" =~ -([a-zA-Z]+) ]]; then
    +  TAG="${BASH_REMATCH[1]}"
    +else
    +  TAG="latest"
    +fi
    +
    +# Publish with the appropriate tag
    +yarn publish --access public --tag "$TAG"

Possible Issues

  1. Backward Compatibility:

    • Extracting out models such as ImageModel, AudioModel, and SpeechModel and updating enum types may cause compatibility issues for those who depend on the older structure.
  2. Publishing Script:

    • The introduction of a logic to extract pre-release tags might need extensive testing to ensure tags are correctly determined and applied during publish time.

Security Hotspots

No apparent new security vulnerabilities introduced in the changes made.


The updates are well-scoped with clear documentation and changelog entries. However, thorough testing, especially on backward compatibility and the new publishing script, is recommended before merging.

Copy link

github-actions bot commented Aug 7, 2024

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

Description

This PR updates the OpenAI Node.js library from version 4.53.2 to 4.54.0. It includes several feature additions, internal improvements, and documentation updates.

Changes

Changes

  1. Version bump:

    • Updated version from 4.53.2 to 4.54.0 in multiple files.
  2. New features:

    • Extracted ImageModel, AudioModel, SpeechModel, and ModerationModel types.
    • Made enums non-nominal, allowing for more flexible type usage.
  3. Internal improvements:

    • Added a constant DEFAULT_TIMEOUT set to 10 minutes.
    • Refactored event stream helpers, introducing a new EventStream class.
    • Removed AbstractAssistantStreamRunner in favor of the new EventStream class.
  4. Documentation updates:

    • Updated README with a link to the Run Lifecycle documentation.
    • Added new model types to the API documentation.
  5. CI/CD improvements:

    • Updated the npm publish script to correctly tag pre-release packages.
  6. Type improvements:

    • Updated various parameters to use the newly extracted model types for better type safety.
  7. Deno import URL update:

    • Updated the Deno import URL to reflect the new version.

These changes improve the library's type safety, internal structure, and documentation while adding new features and fixing some internal processes.

Copy link

github-actions bot commented Aug 7, 2024

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

Description

This PR bumps the version of the openai-node library from 4.53.2 to 4.54.0. It includes several new features, chores, and documentation updates.

Changes

Changes

  • .release-please-manifest.json, package.json: Bumped version to 4.54.0
  • .stats.yml: Updated openapi spec URL
  • CHANGELOG.md, README.md, api.md, scripts/build-deno: Updated for new version and changes
  • bin/publish-npm: Improved npm publishing script to correctly tag pre-release versions
  • src/index.ts:
    • Added DEFAULT_TIMEOUT constant
    • Exported new types: ImageModel, AudioModel, SpeechModel, ModerationModel
  • src/lib/AbstractChatCompletionRunner.ts:
    • Extracted event handling to new EventStream class
    • Made enums non-nominal
  • src/lib/AssistantStream.ts, src/lib/ChatCompletionRunner.ts, src/lib/ChatCompletionStream.ts:
    • Refactored to use new EventStream class
  • src/lib/EventStream.ts:
    • New class extracted from AbstractAssistantStreamRunner to handle event streaming
  • src/resources:
    • Extracted ImageModel, AudioModel, SpeechModel, ModerationModel types
    • Updated usages to reference the new exported model types

Documentation

  • README.md: Fixed link to Run Lifecycle docs

So in summary, this PR bumps the version, extracts some shared event streaming logic, makes enums non-nominal, exports some new model types from the resources, and includes some chore items around publishing and documentation. The changes look reasonable and I don't see any major issues or security concerns with this update.

@thypon thypon merged commit a0f7f58 into main Aug 8, 2024
8 checks passed
@thypon thypon deleted the renovate/openai-4.x-lockfile branch August 8, 2024 15:39
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