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.65.0 #186

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 2, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
openai 4.58.1 -> 4.65.0 age adoption passing confidence

Release Notes

openai/openai-node (openai)

v4.65.0

Compare Source

Full Changelog: v4.64.0...v4.65.0

Features

v4.64.0

Compare Source

Full Changelog: v4.63.0...v4.64.0

Features
Bug Fixes
Chores

v4.63.0

Compare Source

Full Changelog: v4.62.1...v4.63.0

Features
Chores

v4.62.1

Compare Source

Full Changelog: v4.62.0...v4.62.1

Bug Fixes

v4.62.0

Compare Source

Full Changelog: v4.61.1...v4.62.0

Features
  • client: add ._request_id property to object responses (#​1078) (d5c2131)
Chores
  • internal: add ecosystem test for qs reproduction (0199dd8)
  • internal: add query string encoder (#​1079) (f870682)
  • internal: fix some types (#​1082) (1ec41a7)
  • tests: add query string tests to ecosystem tests (36be724)

v4.61.1

Compare Source

Full Changelog: v4.61.0...v4.61.1

Bug Fixes
Chores

v4.61.0

Compare Source

Full Changelog: v4.60.1...v4.61.0

Bug Fixes
  • client: partial parsing update to handle strings (46e8eb6)
  • examples: handle usage chunk in tool call streaming (#​1068) (e4188c4)
Chores
  • examples: add a small delay to tool-calls example streaming (a3fc659)
Documentation

v4.60.1

Compare Source

Full Changelog: v4.60.0...v4.60.1

Bug Fixes
  • zod: correctly add $ref definitions for transformed schemas (#​1065) (9b93b24)

v4.60.0

Compare Source

Full Changelog: v4.59.0...v4.60.0

Features

v4.59.0

Compare Source

Full Changelog: v4.58.2...v4.59.0

Features
Documentation

v4.58.2

Compare Source

Full Changelog: v4.58.1...v4.58.2

Bug Fixes
Chores

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 Oct 2, 2024

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

Description

This pull request (PR) makes several updates to the OpenAI Node.js SDK. These updates include the addition of new features, enhancements, bug fixes, and documentation updates. Notable changes include the introduction of the omni-moderation model, improvements to ecosystem tests, the handling of retry count headers, and updates to various type definitions. This PR also includes extensive updates to testing and documentation to reflect these changes.

Changes

Changes

  1. Version Increment

    • .release-please-manifest.json
      -  ".": "4.58.1"
      +  ".": "4.65.0"
    • package.json
      -  "version": "4.58.1",
      +  "version": "4.65.0",
    • README.md, scripts/build-deno, CHANGELOG.md
      -import OpenAI from 'https://deno.land/x/[email protected]/mod.ts';
      +import OpenAI from 'https://deno.land/x/[email protected]/mod.ts';
  2. OpenAPI Specification URL Update

    • .stats.yml
      -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-85a85e0c08de456441431c0ae4e9c078cc8f9748c29430b9a9058340db6389ee.yml
      +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-17ddd746c775ca4d4fbe64e5621ac30756ef09c061ff6313190b6ec162222d4c.yml
  3. Changelog Update

    • CHANGELOG.md
      • Added changes for versions 4.59.0 to 4.65.0.
  4. Contributing and Documentation Updates

    • CONTRIBUTING.md
      -  `src/lib/` and `examples/` directories are exceptions and will never be overridden.
      +  Modifications to code will be persisted between generations, but may result in merge conflicts.
    • README.md
      • Added extra section for Request IDs and made formatting updates for Azure URLs.
  5. Api Types Updates

    • api.md
      • Added several types such as EmbeddingModel, AudioResponseFormat, and other updates related to types and methods.
  6. Security Fixes and Enhancements

    • ecosystem-tests/cli.ts, ecosystem-tests/cli.ts
      +  if (stdout) process.stderr.write(stdout);
  7. Additional Ecosystem Tests

    • Added test cases in different test scripts inside ecosystem-tests/
  8. Internal Utilities and Libraries Updates

    • Removed qs package and added custom implementation under src/internal/qs.
    • src/core.ts
      • Changes to handle retry counts, additional functionality to manage _request_id.
  9. Source Code and Library Updates

    • src/resources/, src/version.ts
      • Enhanced and added several models, inputs, and params to different resources including Audio, Moderations, Embeddings, and more.
    • src/_vendor/
      • Updates to partial JSON parser, zod-to-json-schema parser enhancements.
  10. Test Updates

    • Added new tests and updated existing ones inside tests/.

Possible Issues

None identified. The changes appear comprehensive and well-tested, ensuring backward compatibility while adding new features.

Security Hotspots

  1. Ecosystem Tests CLI Update (ecosystem-tests/cli.ts)

    • Added stdout logging for errors which might expose sensitive data when running tests.
      +  if (stdout) process.stderr.write(stdout);
  2. Removed Dependency on qs and Added Custom Implementation

    • This change needs thorough testing to ensure that query string manipulation remains secure and reliable.
  3. Retry Header Manipulation (src/core.ts)

    • The headers method now includes retry counts, which should be validated and sanitized to prevent header injection.
      +reqHeaders['x-stainless-retry-count'] = String(retryCount);

These hotspots need careful review to prevent any potential security vulnerabilities from being introduced.

Copy link

github-actions bot commented Oct 2, 2024

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

Description

This PR introduces several updates and improvements to the OpenAI Node.js SDK. The changes include version updates, new features, bug fixes, and enhancements to existing functionality.

Changes

Changes

  1. Version Update:

    • Updated version from 4.58.1 to 4.65.0
  2. API Updates:

    • Added new chat models: 'o1-preview', 'o1-mini', and related versions
    • Updated moderation models to include 'omni-moderation' versions
    • Added new types for audio response formats and moderation inputs
  3. Feature Additions:

    • Added support for request IDs in API responses
    • Introduced max_completion_tokens parameter for chat completions
    • Added completion_tokens_details to CompletionUsage type
  4. Bug Fixes:

    • Fixed issues with partial JSON parsing
    • Corrected response format translations type in audio resources
  5. Improvements:

    • Enhanced query string handling and encoding
    • Updated error handling and type definitions
    • Improved documentation and examples
  6. Testing:

    • Added new tests for query string handling, partial JSON parsing, and request ID functionality
  7. Dependencies:

    • Removed direct dependency on 'qs' package, replaced with internal implementation

Possible Issues

  • The removal of the 'qs' package dependency and its replacement with an internal implementation may lead to slight differences in query string handling in edge cases.
  • The addition of new models and parameters may require updates to existing code that relies on specific model names or parameter sets.

Security Hotspots

No significant security vulnerabilities were introduced in this change. However, as always, care should be taken when handling and processing user inputs, especially in areas related to query string parsing and JSON handling.

Copy link

github-actions bot commented Oct 2, 2024

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

Description

This PR includes several major updates and improvements to the OpenAI Node.js SDK. Key changes include:

  1. Updating the SDK version to 4.65.0
  2. Adding support for new models (o1-preview, o1-mini)
  3. Enhancing error handling and request ID tracking
  4. Improving query string handling
  5. Updating various API types and parameters
  6. Adding and updating tests

The motivation for these changes appears to be keeping the SDK up-to-date with the latest OpenAI API features and improvements, as well as enhancing the developer experience and robustness of the library.

Changes

Changes

  1. package.json:

    • Updated version to 4.65.0
    • Removed dependency on qs library
    • Added new devDependencies
  2. src/index.ts:

    • Added support for new models and types
    • Updated Azure OpenAI configuration options
  3. src/core.ts:

    • Added _request_id property to API responses
    • Improved error handling and retry logic
  4. src/resources/:

    • Updated various API types and parameters across multiple resources
  5. src/internal/qs/:

    • Added a custom query string handling implementation
  6. tests/:

    • Added new tests for query string handling, request IDs, and other features
    • Updated existing tests to reflect changes in the SDK
  7. README.md and CONTRIBUTING.md:

    • Updated documentation to reflect new features and changes

Possible Issues

  • The removal of the qs library dependency and implementation of a custom query string handler may introduce subtle differences in query string parsing or generation.
  • Changes to API types and parameters may require updates in applications using this SDK.

Security Hotspots

No significant security issues are apparent in this change. However, as always, care should be taken when handling API keys and sensitive data.

@thypon thypon merged commit 67567c6 into main Oct 4, 2024
8 checks passed
@thypon thypon deleted the renovate/openai-4.x-lockfile branch October 4, 2024 08:41
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