Comparing version 4.56.0 to 4.56.1
@@ -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 @@ } |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2543029
43868