openai 4.43.0 → 4.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +1 -1
- package/lib/AssistantStream.d.ts.map +1 -1
- package/lib/AssistantStream.js +1 -1
- package/lib/AssistantStream.js.map +1 -1
- package/lib/AssistantStream.mjs +1 -1
- package/lib/AssistantStream.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/threads/index.d.ts +1 -1
- package/resources/beta/threads/index.d.ts.map +1 -1
- package/resources/beta/threads/index.js.map +1 -1
- package/resources/beta/threads/index.mjs.map +1 -1
- package/resources/beta/threads/messages.d.ts +90 -6
- package/resources/beta/threads/messages.d.ts.map +1 -1
- package/resources/beta/threads/messages.js.map +1 -1
- package/resources/beta/threads/messages.mjs.map +1 -1
- package/resources/beta/threads/runs/runs.d.ts +9 -8
- package/resources/beta/threads/runs/runs.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.js.map +1 -1
- package/resources/beta/threads/runs/runs.mjs.map +1 -1
- package/resources/beta/threads/threads.d.ts +14 -8
- package/resources/beta/threads/threads.d.ts.map +1 -1
- package/resources/beta/threads/threads.js.map +1 -1
- package/resources/beta/threads/threads.mjs.map +1 -1
- package/resources/files.d.ts +5 -4
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js.map +1 -1
- package/resources/files.mjs.map +1 -1
- package/src/lib/AssistantStream.ts +5 -6
- package/src/resources/beta/threads/index.ts +6 -0
- package/src/resources/beta/threads/messages.ts +104 -6
- package/src/resources/beta/threads/runs/runs.ts +9 -8
- package/src/resources/beta/threads/threads.ts +14 -8
- package/src/resources/files.ts +12 -4
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -9,6 +9,7 @@ import { sleep } from "../../../../core";
|
|
|
9
9
|
import { RunSubmitToolOutputsParamsStream } from "../../../../lib/AssistantStream";
|
|
10
10
|
import * as RunsAPI from "./runs";
|
|
11
11
|
import * as AssistantsAPI from "../../assistants";
|
|
12
|
+
import * as MessagesAPI from "../messages";
|
|
12
13
|
import * as ThreadsAPI from "../threads";
|
|
13
14
|
import * as StepsAPI from "./steps";
|
|
14
15
|
import { CursorPage, type CursorPageParams } from "../../../../pagination";
|
|
@@ -747,9 +748,9 @@ export interface RunCreateParamsBase {
|
|
|
747
748
|
export namespace RunCreateParams {
|
|
748
749
|
export interface AdditionalMessage {
|
|
749
750
|
/**
|
|
750
|
-
* The
|
|
751
|
+
* The text contents of the message.
|
|
751
752
|
*/
|
|
752
|
-
content: string
|
|
753
|
+
content: string | Array<MessagesAPI.MessageContentPartParam>;
|
|
753
754
|
|
|
754
755
|
/**
|
|
755
756
|
* The role of the entity that is creating the message. Allowed values include:
|
|
@@ -999,9 +1000,9 @@ export interface RunCreateAndPollParams {
|
|
|
999
1000
|
export namespace RunCreateAndPollParams {
|
|
1000
1001
|
export interface AdditionalMessage {
|
|
1001
1002
|
/**
|
|
1002
|
-
* The
|
|
1003
|
+
* The text contents of the message.
|
|
1003
1004
|
*/
|
|
1004
|
-
content: string
|
|
1005
|
+
content: string | Array<MessagesAPI.MessageContentPartParam>;
|
|
1005
1006
|
|
|
1006
1007
|
/**
|
|
1007
1008
|
* The role of the entity that is creating the message. Allowed values include:
|
|
@@ -1204,9 +1205,9 @@ export interface RunCreateAndStreamParams {
|
|
|
1204
1205
|
export namespace RunCreateAndStreamParams {
|
|
1205
1206
|
export interface AdditionalMessage {
|
|
1206
1207
|
/**
|
|
1207
|
-
* The
|
|
1208
|
+
* The text contents of the message.
|
|
1208
1209
|
*/
|
|
1209
|
-
content: string
|
|
1210
|
+
content: string | Array<MessagesAPI.MessageContentPartParam>;
|
|
1210
1211
|
|
|
1211
1212
|
/**
|
|
1212
1213
|
* The role of the entity that is creating the message. Allowed values include:
|
|
@@ -1409,9 +1410,9 @@ export interface RunStreamParams {
|
|
|
1409
1410
|
export namespace RunStreamParams {
|
|
1410
1411
|
export interface AdditionalMessage {
|
|
1411
1412
|
/**
|
|
1412
|
-
* The
|
|
1413
|
+
* The text contents of the message.
|
|
1413
1414
|
*/
|
|
1414
|
-
content: string
|
|
1415
|
+
content: string | Array<MessagesAPI.MessageContentPartParam>;
|
|
1415
1416
|
|
|
1416
1417
|
/**
|
|
1417
1418
|
* The role of the entity that is creating the message. Allowed values include:
|
|
@@ -284,9 +284,9 @@ export interface ThreadCreateParams {
|
|
|
284
284
|
export namespace ThreadCreateParams {
|
|
285
285
|
export interface Message {
|
|
286
286
|
/**
|
|
287
|
-
* The
|
|
287
|
+
* The text contents of the message.
|
|
288
288
|
*/
|
|
289
|
-
content: string
|
|
289
|
+
content: string | Array<MessagesAPI.MessageContentPartParam>;
|
|
290
290
|
|
|
291
291
|
/**
|
|
292
292
|
* The role of the entity that is creating the message. Allowed values include:
|
|
@@ -623,9 +623,9 @@ export namespace ThreadCreateAndRunParams {
|
|
|
623
623
|
export namespace Thread {
|
|
624
624
|
export interface Message {
|
|
625
625
|
/**
|
|
626
|
-
* The
|
|
626
|
+
* The text contents of the message.
|
|
627
627
|
*/
|
|
628
|
-
content: string
|
|
628
|
+
content: string | Array<MessagesAPI.MessageContentPartParam>;
|
|
629
629
|
|
|
630
630
|
/**
|
|
631
631
|
* The role of the entity that is creating the message. Allowed values include:
|
|
@@ -973,9 +973,9 @@ export namespace ThreadCreateAndRunPollParams {
|
|
|
973
973
|
export namespace Thread {
|
|
974
974
|
export interface Message {
|
|
975
975
|
/**
|
|
976
|
-
* The
|
|
976
|
+
* The text contents of the message.
|
|
977
977
|
*/
|
|
978
|
-
content: string
|
|
978
|
+
content: string | Array<MessagesAPI.MessageContentPartParam>;
|
|
979
979
|
|
|
980
980
|
/**
|
|
981
981
|
* The role of the entity that is creating the message. Allowed values include:
|
|
@@ -1302,9 +1302,9 @@ export namespace ThreadCreateAndRunStreamParams {
|
|
|
1302
1302
|
export namespace Thread {
|
|
1303
1303
|
export interface Message {
|
|
1304
1304
|
/**
|
|
1305
|
-
* The
|
|
1305
|
+
* The text contents of the message.
|
|
1306
1306
|
*/
|
|
1307
|
-
content: string
|
|
1307
|
+
content: string | Array<MessagesAPI.MessageContentPartParam>;
|
|
1308
1308
|
|
|
1309
1309
|
/**
|
|
1310
1310
|
* The role of the entity that is creating the message. Allowed values include:
|
|
@@ -1503,14 +1503,20 @@ export namespace Threads {
|
|
|
1503
1503
|
export import ImageFileContentBlock = MessagesAPI.ImageFileContentBlock;
|
|
1504
1504
|
export import ImageFileDelta = MessagesAPI.ImageFileDelta;
|
|
1505
1505
|
export import ImageFileDeltaBlock = MessagesAPI.ImageFileDeltaBlock;
|
|
1506
|
+
export import ImageURL = MessagesAPI.ImageURL;
|
|
1507
|
+
export import ImageURLContentBlock = MessagesAPI.ImageURLContentBlock;
|
|
1508
|
+
export import ImageURLDelta = MessagesAPI.ImageURLDelta;
|
|
1509
|
+
export import ImageURLDeltaBlock = MessagesAPI.ImageURLDeltaBlock;
|
|
1506
1510
|
export import Message = MessagesAPI.Message;
|
|
1507
1511
|
export import MessageContent = MessagesAPI.MessageContent;
|
|
1508
1512
|
export import MessageContentDelta = MessagesAPI.MessageContentDelta;
|
|
1513
|
+
export import MessageContentPartParam = MessagesAPI.MessageContentPartParam;
|
|
1509
1514
|
export import MessageDeleted = MessagesAPI.MessageDeleted;
|
|
1510
1515
|
export import MessageDelta = MessagesAPI.MessageDelta;
|
|
1511
1516
|
export import MessageDeltaEvent = MessagesAPI.MessageDeltaEvent;
|
|
1512
1517
|
export import Text = MessagesAPI.Text;
|
|
1513
1518
|
export import TextContentBlock = MessagesAPI.TextContentBlock;
|
|
1519
|
+
export import TextContentBlockParam = MessagesAPI.TextContentBlockParam;
|
|
1514
1520
|
export import TextDelta = MessagesAPI.TextDelta;
|
|
1515
1521
|
export import TextDeltaBlock = MessagesAPI.TextDeltaBlock;
|
|
1516
1522
|
export import MessagesPage = MessagesAPI.MessagesPage;
|
package/src/resources/files.ts
CHANGED
|
@@ -149,10 +149,17 @@ export interface FileObject {
|
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
151
|
* The intended purpose of the file. Supported values are `assistants`,
|
|
152
|
-
* `assistants_output`, `batch`, `batch_output`, `fine-tune`,
|
|
153
|
-
* `
|
|
152
|
+
* `assistants_output`, `batch`, `batch_output`, `fine-tune`, `fine-tune-results`
|
|
153
|
+
* and `vision`.
|
|
154
154
|
*/
|
|
155
|
-
purpose:
|
|
155
|
+
purpose:
|
|
156
|
+
| 'assistants'
|
|
157
|
+
| 'assistants_output'
|
|
158
|
+
| 'batch'
|
|
159
|
+
| 'batch_output'
|
|
160
|
+
| 'fine-tune'
|
|
161
|
+
| 'fine-tune-results'
|
|
162
|
+
| 'vision';
|
|
156
163
|
|
|
157
164
|
/**
|
|
158
165
|
* @deprecated: Deprecated. The current status of the file, which can be either
|
|
@@ -178,7 +185,8 @@ export interface FileCreateParams {
|
|
|
178
185
|
*
|
|
179
186
|
* Use "assistants" for
|
|
180
187
|
* [Assistants](https://platform.openai.com/docs/api-reference/assistants) and
|
|
181
|
-
* [
|
|
188
|
+
* [Message](https://platform.openai.com/docs/api-reference/messages) files,
|
|
189
|
+
* "vision" for Assistants image file inputs, "batch" for
|
|
182
190
|
* [Batch API](https://platform.openai.com/docs/guides/batch), and "fine-tune" for
|
|
183
191
|
* [Fine-tuning](https://platform.openai.com/docs/api-reference/fine-tuning).
|
|
184
192
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.44.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.44.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.44.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|