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

openai

Package Overview
Dependencies
Maintainers
5
Versions
210
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.39.1 to 4.40.0

8

CHANGELOG.md
# Changelog
## 4.40.0 (2024-05-01)
Full Changelog: [v4.39.1...v4.40.0](https://github.com/openai/openai-node/compare/v4.39.1...v4.40.0)
### Features
* **api:** delete messages ([#811](https://github.com/openai/openai-node/issues/811)) ([9e37dbd](https://github.com/openai/openai-node/commit/9e37dbd554e4ca48fda1577b1aad612e9d30534d))
## 4.39.1 (2024-04-30)

@@ -4,0 +12,0 @@

2

package.json
{
"name": "openai",
"version": "4.39.1",
"version": "4.40.0",
"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.39.1/mod.ts';
import OpenAI from 'https://deno.land/x/openai@v4.40.0/mod.ts';
```

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

@@ -156,6 +156,6 @@ import * as Core from 'openai/core';

/**
* The endpoint to be used for all requests in the batch. Currently only
* `/v1/chat/completions` is supported.
* The endpoint to be used for all requests in the batch. Currently
* `/v1/chat/completions` and `/v1/embeddings` are supported.
*/
endpoint: '/v1/chat/completions';
endpoint: '/v1/chat/completions' | '/v1/embeddings';
/**

@@ -162,0 +162,0 @@ * The ID of an uploaded file that contains requests for the new batch.

@@ -24,2 +24,6 @@ import * as Core from 'openai/core';

list(threadId: string, options?: Core.RequestOptions): Core.PagePromise<MessagesPage, Message>;
/**
* Deletes a message.
*/
del(threadId: string, messageId: string, options?: Core.RequestOptions): Core.APIPromise<MessageDeleted>;
}

@@ -26,0 +30,0 @@ export declare class MessagesPage extends CursorPage<Message> {

@@ -72,2 +72,11 @@ "use strict";

}
/**
* Deletes a message.
*/
del(threadId, messageId, options) {
return this._client.delete(`/threads/${threadId}/messages/${messageId}`, {
...options,
headers: { 'OpenAI-Beta': 'assistants=v2', ...options?.headers },
});
}
}

@@ -74,0 +83,0 @@ exports.Messages = Messages;

@@ -121,2 +121,7 @@ import * as Core from 'openai/core';

/**
* The Unix timestamp (in seconds) for when the fine-tuning job is estimated to
* finish. The value will be null if the fine-tuning job is not running.
*/
estimated_finish?: number | null;
/**
* A list of integrations to enable for this fine-tuning job.

@@ -123,0 +128,0 @@ */

@@ -217,6 +217,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

/**
* The endpoint to be used for all requests in the batch. Currently only
* `/v1/chat/completions` is supported.
* The endpoint to be used for all requests in the batch. Currently
* `/v1/chat/completions` and `/v1/embeddings` are supported.
*/
endpoint: '/v1/chat/completions';
endpoint: '/v1/chat/completions' | '/v1/embeddings';

@@ -223,0 +223,0 @@ /**

@@ -75,2 +75,12 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

}
/**
* Deletes a message.
*/
del(threadId: string, messageId: string, options?: Core.RequestOptions): Core.APIPromise<MessageDeleted> {
return this._client.delete(`/threads/${threadId}/messages/${messageId}`, {
...options,
headers: { 'OpenAI-Beta': 'assistants=v2', ...options?.headers },
});
}
}

@@ -77,0 +87,0 @@

@@ -184,2 +184,8 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

/**
* The Unix timestamp (in seconds) for when the fine-tuning job is estimated to
* finish. The value will be null if the fine-tuning job is not running.
*/
estimated_finish?: number | null;
/**
* A list of integrations to enable for this fine-tuning job.

@@ -186,0 +192,0 @@ */

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

export const VERSION = '4.39.1'; // x-release-please-version
export const VERSION = '4.40.0'; // x-release-please-version

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

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

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

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