Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(deps): update dependency openai to v4.71.1 #206

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 13, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
openai 4.70.2 -> 4.71.1 age adoption passing confidence

Release Notes

openai/openai-node (openai)

v4.71.1

Compare Source

Full Changelog: v4.71.0...v4.71.1

Bug Fixes

v4.71.0

Compare Source

Full Changelog: v4.70.3...v4.71.0

Features

v4.70.3

Compare Source

Full Changelog: v4.70.2...v4.70.3

Bug Fixes
  • change streaming helper imports to be relative (e73b7cf)

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

anthropic debug - [puLL-Merge] - openai/openai-node@v4.70.2..v4.71.1

Description

This PR updates the OpenAI Node.js library from version 4.70.2 to 4.71.1. It includes various changes to the API, documentation updates, and some minor tweaks to the build process.

Changes

Changes

  1. Version Updates:

    • .release-please-manifest.json: Updated version to 4.71.1
    • package.json: Updated version to 4.71.1
    • jsr.json: Updated version to 4.71.1
    • src/version.ts: Updated VERSION constant to 4.71.1
  2. Changelog Updates:

    • CHANGELOG.md: Added entries for versions 4.71.1, 4.71.0, and 4.70.3
  3. API Documentation Updates:

    • Various files: Updated links to OpenAI documentation
    • api.md: Added ChatCompletionPredictionContent to the list of types
  4. API Changes:

    • src/resources/chat/completions.ts:
      • Added ChatCompletionPredictionContent interface
      • Added prediction field to ChatCompletionCreateParamsBase
    • src/resources/completions.ts:
      • Added accepted_prediction_tokens and rejected_prediction_tokens to CompletionTokensDetails
    • src/resources/files.ts:
      • Updated FileObjectsPage to extend CursorPage instead of Page
      • Added order parameter to FileListParams
  5. Build Process Changes:

    • scripts/build-deno: Added README.md to the list of files copied to dist-deno
  6. Import Path Updates:

    • Various files: Updated import paths to use relative imports instead of absolute imports
  7. Test Updates:

    • tests/api-resources/chat/completions.test.ts: Added prediction field to test case
    • tests/api-resources/files.test.ts: Updated test case for file listing to include new parameters

These changes primarily focus on updating the library to support new features in the OpenAI API, improving documentation, and making minor adjustments to the build process and internal structure of the library.

Copy link

bedrock debug - [puLL-Merge] - openai/openai-node@v4.70.2..v4.71.1

Description

This PR updates the OpenAI Node.js library from version 4.70.2 to 4.71.1. It includes various changes to the API, documentation updates, and some minor bug fixes.

Changes

Changes

  1. Version Updates:

    • Updated version in .release-please-manifest.json and package.json from 4.70.2 to 4.71.1
    • Updated version in src/version.ts from 4.70.2 to 4.71.1
  2. API Documentation Updates:

    • Updated various links to OpenAI's documentation throughout the codebase
    • Added new types and parameters to several API interfaces, such as ChatCompletionPredictionContent
  3. API Changes:

    • Added support for predicted outputs in chat completions
    • Updated CompletionUsage to include new fields for predicted tokens
    • Added prediction parameter to ChatCompletionCreateParamsBase
    • Updated FileListParams to include cursor-based pagination and sorting options
  4. Build and Release Process:

    • Modified release-please-config.json to handle jsr.json version updates
    • Updated scripts/build-deno to copy README.md to the Deno distribution
  5. Code Refactoring:

    • Changed streaming helper imports to be relative in AbstractChatCompletionRunner.ts, AssistantStream.ts, and other files
  6. Test Updates:

    • Updated tests in completions.test.ts and files.test.ts to reflect new API parameters
  7. Changelog:

    • Added entries for versions 4.71.1, 4.71.0, and 4.70.3 in CHANGELOG.md

Possible Issues

The change from absolute to relative imports in some files (e.g., AbstractChatCompletionRunner.ts, AssistantStream.ts) might potentially cause issues if there are circular dependencies or if the file structure changes in the future. However, this change seems intentional and likely improves the module structure.

Copy link

openai debug - [puLL-Merge] - openai/openai-node@v4.70.2..v4.71.1

Description

This PR primarily updates the OpenAI Node library to version 4.71.1 and introduces several key changes including:

  1. Adding support for ChatCompletionPredictionContent.
  2. Updating release configuration and OpenAPI spec URL.
  3. Making documentation-related URL updates.
  4. Adjusting the internal module imports organization.
  5. Adding new details in the tests/api-resources for completion and file list.

Possible Issues

  1. Release Configuration Update: The change to release-please-config.json for jsr.json might fail if the JSON path or structure is not correctly formatted.
  2. Internal Module Imports: Changing module imports from paths like openai/... to ../... can potentially break functionality if not all references have been updated correctly.

Security Hotspots

None identified.

Changes

Changes

Configuration

  • .release-please-manifest.json

    -  ".": "4.70.2"
    +  ".": "4.71.1"
  • .stats.yml

    - openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-7b0a5d715d94f75ac7795bd4d2175a0e3243af9b935a86c273f371e45583140f.yml
    + openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-2f8ca92b9b1879fd535b685e4767338413fcd533d42f3baac13a9c41da3fce35.yml

Documentation

  • CHANGELOG.md
    Added entries for versions 4.71.0 and 4.71.1 detailing new features and bug fixes.

API

  • api.md
    + <code><a href="./src/resources/chat/completions.ts">ChatCompletionPredictionContent</a></code>

Source Code

  • package.json

    - "version": "4.70.2",
    + "version": "4.71.1",
  • jsr.json

    - "version": "4.47.1",
    + "version": "4.71.1",
    
    - "exclude": ["!."]
    + "exclude": ["!."]
  • release-please-config.json

    - "jsr.json"
    + {
    +   "type": "json",
    +   "path": "jsr.json",
    +   "jsonpath": "$.version"
    + }
  • scripts/build-deno
    Added README.md to the files copied during deno build.

    - for file in LICENSE CHANGELOG.md; do
    + for file in README.md LICENSE CHANGELOG.md; do
  • src/index.ts

    + ChatCompletionPredictionContent,
  • src/lib/*.ts
    Adjusted imports from openai/... to relative imports like ../....

  • src/resources/chat/completions.ts

    +/**
    + * Static predicted output content, such as the content of a text file that is
    + * being regenerated.
    + */
    +export interface ChatCompletionPredictionContent { ... }

Tests

  • tests/api-resources/chat/completions.test.ts

    + prediction: { content: 'string', type: 'content' },
  • tests/api-resources/files.test.ts
    Extended file list test to include more parameters.

    + { after: 'after', limit: 0, order: 'asc', purpose: 'purpose' },
    ```</details>
    

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants