Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

openai

Package Overview
Dependencies
Maintainers
5
Versions
208
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openai - npm Package Compare versions

Comparing version 4.56.0 to 4.56.1

8

index.js

@@ -233,3 +233,9 @@ "use strict";

async prepareOptions(opts) {
if (opts.headers?.['Authorization'] || opts.headers?.['api-key']) {
/**
* The user should provide a bearer token provider if they want
* to use Azure AD authentication. The user shouldn't set the
* Authorization header manually because the header is overwritten
* with the Azure AD token if a bearer token provider is provided.
*/
if (opts.headers?.['api-key']) {
return super.prepareOptions(opts);

@@ -236,0 +242,0 @@ }

2

package.json
{
"name": "openai",
"version": "4.56.0",
"version": "4.56.1",
"description": "The official TypeScript library for the OpenAI API",

@@ -5,0 +5,0 @@ "author": "OpenAI <support@openai.com>",

@@ -22,3 +22,3 @@ # OpenAI Node API Library

```ts
import OpenAI from 'https://deno.land/x/openai@v4.56.0/mod.ts';
import OpenAI from 'https://deno.land/x/openai@v4.56.1/mod.ts';
```

@@ -25,0 +25,0 @@

@@ -488,3 +488,9 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

protected override async prepareOptions(opts: Core.FinalRequestOptions<unknown>): Promise<void> {
if (opts.headers?.['Authorization'] || opts.headers?.['api-key']) {
/**
* The user should provide a bearer token provider if they want
* to use Azure AD authentication. The user shouldn't set the
* Authorization header manually because the header is overwritten
* with the Azure AD token if a bearer token provider is provided.
*/
if (opts.headers?.['api-key']) {
return super.prepareOptions(opts);

@@ -491,0 +497,0 @@ }

@@ -1,1 +0,1 @@

export const VERSION = '4.56.0'; // x-release-please-version
export const VERSION = '4.56.1'; // x-release-please-version

@@ -1,2 +0,2 @@

export declare const VERSION = "4.56.0";
export declare const VERSION = "4.56.1";
//# sourceMappingURL=version.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VERSION = void 0;
exports.VERSION = '4.56.0'; // x-release-please-version
exports.VERSION = '4.56.1'; // x-release-please-version
//# sourceMappingURL=version.js.map

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc