openai 4.68.4 → 4.70.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 +36 -0
- package/README.md +5 -5
- package/core.d.ts +3 -3
- package/core.d.ts.map +1 -1
- package/core.js.map +1 -1
- package/core.mjs.map +1 -1
- package/error.d.ts.map +1 -1
- package/index.d.mts +38 -98
- package/index.d.ts +38 -98
- package/index.d.ts.map +1 -1
- package/index.js +43 -22
- package/index.js.map +1 -1
- package/index.mjs +30 -22
- package/index.mjs.map +1 -1
- package/lib/AssistantStream.d.ts +1 -2
- package/lib/AssistantStream.d.ts.map +1 -1
- package/lib/AssistantStream.js.map +1 -1
- package/lib/AssistantStream.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/audio/audio.d.ts +7 -18
- package/resources/audio/audio.d.ts.map +1 -1
- package/resources/audio/audio.js +6 -5
- package/resources/audio/audio.js.map +1 -1
- package/resources/audio/audio.mjs +6 -5
- package/resources/audio/audio.mjs.map +1 -1
- package/resources/audio/index.d.ts +4 -4
- package/resources/audio/index.d.ts.map +1 -1
- package/resources/audio/index.js.map +1 -1
- package/resources/audio/index.mjs.map +1 -1
- package/resources/audio/speech.d.ts +1 -3
- package/resources/audio/speech.d.ts.map +1 -1
- package/resources/audio/speech.js +0 -2
- package/resources/audio/speech.js.map +1 -1
- package/resources/audio/speech.mjs +0 -2
- package/resources/audio/speech.mjs.map +1 -1
- package/resources/audio/transcriptions.d.ts +1 -7
- package/resources/audio/transcriptions.d.ts.map +1 -1
- package/resources/audio/transcriptions.js +0 -2
- package/resources/audio/transcriptions.js.map +1 -1
- package/resources/audio/transcriptions.mjs +0 -2
- package/resources/audio/transcriptions.mjs.map +1 -1
- package/resources/audio/translations.d.ts +1 -5
- package/resources/audio/translations.d.ts.map +1 -1
- package/resources/audio/translations.js +0 -2
- package/resources/audio/translations.js.map +1 -1
- package/resources/audio/translations.mjs +0 -2
- package/resources/audio/translations.mjs.map +1 -1
- package/resources/batches.d.ts +1 -6
- package/resources/batches.d.ts.map +1 -1
- package/resources/batches.js +1 -27
- package/resources/batches.js.map +1 -1
- package/resources/batches.mjs +1 -4
- package/resources/batches.mjs.map +1 -1
- package/resources/beta/assistants.d.ts +1 -16
- package/resources/beta/assistants.d.ts.map +1 -1
- package/resources/beta/assistants.js +1 -27
- package/resources/beta/assistants.js.map +1 -1
- package/resources/beta/assistants.mjs +1 -4
- package/resources/beta/assistants.mjs.map +1 -1
- package/resources/beta/beta.d.ts +8 -45
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js +9 -8
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +9 -8
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/chat/completions.d.ts +5 -5
- package/resources/beta/chat/completions.d.ts.map +1 -1
- package/resources/beta/chat/completions.js +5 -5
- package/resources/beta/chat/completions.js.map +1 -1
- package/resources/beta/chat/completions.mjs +3 -3
- package/resources/beta/chat/completions.mjs.map +1 -1
- package/resources/beta/index.d.ts +3 -3
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js +5 -5
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/threads/index.d.ts +3 -3
- package/resources/beta/threads/index.d.ts.map +1 -1
- package/resources/beta/threads/index.js +3 -3
- package/resources/beta/threads/index.js.map +1 -1
- package/resources/beta/threads/index.mjs +1 -1
- package/resources/beta/threads/index.mjs.map +1 -1
- package/resources/beta/threads/messages.d.ts +1 -33
- package/resources/beta/threads/messages.d.ts.map +1 -1
- package/resources/beta/threads/messages.js +1 -27
- package/resources/beta/threads/messages.js.map +1 -1
- package/resources/beta/threads/messages.mjs +1 -4
- package/resources/beta/threads/messages.mjs.map +1 -1
- package/resources/beta/threads/runs/index.d.ts +2 -2
- package/resources/beta/threads/runs/index.d.ts.map +1 -1
- package/resources/beta/threads/runs/index.js.map +1 -1
- package/resources/beta/threads/runs/index.mjs.map +1 -1
- package/resources/beta/threads/runs/runs.d.ts +3 -39
- package/resources/beta/threads/runs/runs.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.js +4 -6
- package/resources/beta/threads/runs/runs.js.map +1 -1
- package/resources/beta/threads/runs/runs.mjs +4 -6
- package/resources/beta/threads/runs/runs.mjs.map +1 -1
- package/resources/beta/threads/runs/steps.d.ts +1 -21
- package/resources/beta/threads/runs/steps.d.ts.map +1 -1
- package/resources/beta/threads/runs/steps.js +1 -27
- package/resources/beta/threads/runs/steps.js.map +1 -1
- package/resources/beta/threads/runs/steps.mjs +1 -4
- package/resources/beta/threads/runs/steps.mjs.map +1 -1
- package/resources/beta/threads/threads.d.ts +5 -64
- package/resources/beta/threads/threads.d.ts.map +1 -1
- package/resources/beta/threads/threads.js +6 -6
- package/resources/beta/threads/threads.js.map +1 -1
- package/resources/beta/threads/threads.mjs +6 -6
- package/resources/beta/threads/threads.mjs.map +1 -1
- package/resources/beta/vector-stores/file-batches.d.ts +1 -4
- package/resources/beta/vector-stores/file-batches.d.ts.map +1 -1
- package/resources/beta/vector-stores/file-batches.js +0 -2
- package/resources/beta/vector-stores/file-batches.js.map +1 -1
- package/resources/beta/vector-stores/file-batches.mjs +0 -2
- package/resources/beta/vector-stores/file-batches.mjs.map +1 -1
- package/resources/beta/vector-stores/files.d.ts +1 -6
- package/resources/beta/vector-stores/files.d.ts.map +1 -1
- package/resources/beta/vector-stores/files.js +1 -27
- package/resources/beta/vector-stores/files.js.map +1 -1
- package/resources/beta/vector-stores/files.mjs +1 -4
- package/resources/beta/vector-stores/files.mjs.map +1 -1
- package/resources/beta/vector-stores/index.d.ts +3 -3
- package/resources/beta/vector-stores/index.d.ts.map +1 -1
- package/resources/beta/vector-stores/index.js +6 -6
- package/resources/beta/vector-stores/index.js.map +1 -1
- package/resources/beta/vector-stores/index.mjs +2 -2
- package/resources/beta/vector-stores/index.mjs.map +1 -1
- package/resources/beta/vector-stores/vector-stores.d.ts +5 -24
- package/resources/beta/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/beta/vector-stores/vector-stores.js +6 -7
- package/resources/beta/vector-stores/vector-stores.js.map +1 -1
- package/resources/beta/vector-stores/vector-stores.mjs +6 -7
- package/resources/beta/vector-stores/vector-stores.mjs.map +1 -1
- package/resources/chat/chat.d.ts +3 -38
- package/resources/chat/chat.d.ts.map +1 -1
- package/resources/chat/chat.js +2 -3
- package/resources/chat/chat.js.map +1 -1
- package/resources/chat/chat.mjs +2 -3
- package/resources/chat/chat.mjs.map +1 -1
- package/resources/chat/completions.d.ts +5 -39
- package/resources/chat/completions.d.ts.map +1 -1
- package/resources/chat/completions.js +0 -2
- package/resources/chat/completions.js.map +1 -1
- package/resources/chat/completions.mjs +0 -2
- package/resources/chat/completions.mjs.map +1 -1
- package/resources/chat/index.d.ts +2 -2
- package/resources/chat/index.d.ts.map +1 -1
- package/resources/chat/index.js +3 -3
- package/resources/chat/index.js.map +1 -1
- package/resources/chat/index.mjs +1 -1
- package/resources/chat/index.mjs.map +1 -1
- package/resources/completions.d.ts +1 -6
- package/resources/completions.d.ts.map +1 -1
- package/resources/completions.js +0 -2
- package/resources/completions.js.map +1 -1
- package/resources/completions.mjs +0 -2
- package/resources/completions.mjs.map +1 -1
- package/resources/embeddings.d.ts +1 -5
- package/resources/embeddings.d.ts.map +1 -1
- package/resources/embeddings.js +0 -2
- package/resources/embeddings.js.map +1 -1
- package/resources/embeddings.mjs +0 -2
- package/resources/embeddings.mjs.map +1 -1
- package/resources/files.d.ts +1 -8
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +1 -4
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +1 -4
- package/resources/files.mjs.map +1 -1
- package/resources/fine-tuning/fine-tuning.d.ts +2 -11
- package/resources/fine-tuning/fine-tuning.d.ts.map +1 -1
- package/resources/fine-tuning/fine-tuning.js +4 -5
- package/resources/fine-tuning/fine-tuning.js.map +1 -1
- package/resources/fine-tuning/fine-tuning.mjs +4 -5
- package/resources/fine-tuning/fine-tuning.mjs.map +1 -1
- package/resources/fine-tuning/index.d.ts +1 -1
- package/resources/fine-tuning/index.d.ts.map +1 -1
- package/resources/fine-tuning/index.js.map +1 -1
- package/resources/fine-tuning/index.mjs.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.d.ts +1 -4
- package/resources/fine-tuning/jobs/checkpoints.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.js +1 -27
- package/resources/fine-tuning/jobs/checkpoints.js.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.mjs +1 -4
- package/resources/fine-tuning/jobs/checkpoints.mjs.map +1 -1
- package/resources/fine-tuning/jobs/index.d.ts +2 -2
- package/resources/fine-tuning/jobs/index.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/index.js +4 -4
- package/resources/fine-tuning/jobs/index.js.map +1 -1
- package/resources/fine-tuning/jobs/index.mjs +1 -1
- package/resources/fine-tuning/jobs/index.mjs.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.ts +3 -15
- package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.js +5 -7
- package/resources/fine-tuning/jobs/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs +5 -7
- package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
- package/resources/images.d.ts +1 -7
- package/resources/images.d.ts.map +1 -1
- package/resources/images.js +0 -2
- package/resources/images.js.map +1 -1
- package/resources/images.mjs +0 -2
- package/resources/images.mjs.map +1 -1
- package/resources/index.d.ts +9 -9
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/models.d.ts +1 -4
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +1 -27
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +1 -4
- package/resources/models.mjs.map +1 -1
- package/resources/moderations.d.ts +1 -8
- package/resources/moderations.d.ts.map +1 -1
- package/resources/moderations.js +0 -2
- package/resources/moderations.js.map +1 -1
- package/resources/moderations.mjs +0 -2
- package/resources/moderations.mjs.map +1 -1
- package/resources/uploads/index.d.ts +2 -2
- package/resources/uploads/index.d.ts.map +1 -1
- package/resources/uploads/index.js +3 -3
- package/resources/uploads/index.js.map +1 -1
- package/resources/uploads/index.mjs +1 -1
- package/resources/uploads/index.mjs.map +1 -1
- package/resources/uploads/parts.d.ts +1 -3
- package/resources/uploads/parts.d.ts.map +1 -1
- package/resources/uploads/parts.js +0 -2
- package/resources/uploads/parts.js.map +1 -1
- package/resources/uploads/parts.mjs +0 -2
- package/resources/uploads/parts.mjs.map +1 -1
- package/resources/uploads/uploads.d.ts +3 -7
- package/resources/uploads/uploads.d.ts.map +1 -1
- package/resources/uploads/uploads.js +2 -3
- package/resources/uploads/uploads.js.map +1 -1
- package/resources/uploads/uploads.mjs +2 -3
- package/resources/uploads/uploads.mjs.map +1 -1
- package/src/core.ts +5 -5
- package/src/error.ts +1 -1
- package/src/index.ts +240 -113
- package/src/lib/AssistantStream.ts +1 -2
- package/src/resources/audio/audio.ts +43 -27
- package/src/resources/audio/index.ts +12 -12
- package/src/resources/audio/speech.ts +2 -4
- package/src/resources/audio/transcriptions.ts +9 -12
- package/src/resources/audio/translations.ts +7 -10
- package/src/resources/batches.ts +11 -7
- package/src/resources/beta/assistants.ts +20 -17
- package/src/resources/beta/beta.ts +112 -46
- package/src/resources/beta/chat/completions.ts +19 -15
- package/src/resources/beta/index.ts +41 -41
- package/src/resources/beta/threads/index.ts +63 -63
- package/src/resources/beta/threads/messages.ts +37 -34
- package/src/resources/beta/threads/runs/index.ts +36 -36
- package/src/resources/beta/threads/runs/runs.ts +73 -40
- package/src/resources/beta/threads/runs/steps.ts +26 -22
- package/src/resources/beta/threads/threads.ts +133 -65
- package/src/resources/beta/vector-stores/file-batches.ts +6 -5
- package/src/resources/beta/vector-stores/files.ts +10 -7
- package/src/resources/beta/vector-stores/index.ts +24 -24
- package/src/resources/beta/vector-stores/vector-stores.ts +51 -25
- package/src/resources/chat/chat.ts +75 -39
- package/src/resources/chat/completions.ts +39 -40
- package/src/resources/chat/index.ts +33 -33
- package/src/resources/completions.ts +9 -7
- package/src/resources/embeddings.ts +7 -6
- package/src/resources/files.ts +12 -9
- package/src/resources/fine-tuning/fine-tuning.ts +31 -12
- package/src/resources/fine-tuning/index.ts +8 -8
- package/src/resources/fine-tuning/jobs/checkpoints.ts +8 -5
- package/src/resources/fine-tuning/jobs/index.ts +14 -14
- package/src/resources/fine-tuning/jobs/jobs.ts +31 -16
- package/src/resources/images.ts +9 -8
- package/src/resources/index.ts +37 -37
- package/src/resources/models.ts +4 -5
- package/src/resources/moderations.ts +10 -9
- package/src/resources/uploads/index.ts +2 -2
- package/src/resources/uploads/parts.ts +2 -4
- package/src/resources/uploads/uploads.ts +11 -8
- package/src/streaming.ts +2 -2
- package/src/version.ts +1 -1
- package/streaming.d.ts.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import { isRequestOptions } from '../../core';
|
|
5
5
|
import * as Core from '../../core';
|
|
6
|
-
import * as AssistantsAPI from './assistants';
|
|
7
6
|
import * as Shared from '../shared';
|
|
8
7
|
import * as ChatAPI from '../chat/chat';
|
|
9
8
|
import * as MessagesAPI from './threads/messages';
|
|
@@ -1396,20 +1395,24 @@ export interface AssistantListParams extends CursorPageParams {
|
|
|
1396
1395
|
order?: 'asc' | 'desc';
|
|
1397
1396
|
}
|
|
1398
1397
|
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
export
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1398
|
+
Assistants.AssistantsPage = AssistantsPage;
|
|
1399
|
+
|
|
1400
|
+
export declare namespace Assistants {
|
|
1401
|
+
export {
|
|
1402
|
+
type Assistant as Assistant,
|
|
1403
|
+
type AssistantDeleted as AssistantDeleted,
|
|
1404
|
+
type AssistantStreamEvent as AssistantStreamEvent,
|
|
1405
|
+
type AssistantTool as AssistantTool,
|
|
1406
|
+
type CodeInterpreterTool as CodeInterpreterTool,
|
|
1407
|
+
type FileSearchTool as FileSearchTool,
|
|
1408
|
+
type FunctionTool as FunctionTool,
|
|
1409
|
+
type MessageStreamEvent as MessageStreamEvent,
|
|
1410
|
+
type RunStepStreamEvent as RunStepStreamEvent,
|
|
1411
|
+
type RunStreamEvent as RunStreamEvent,
|
|
1412
|
+
type ThreadStreamEvent as ThreadStreamEvent,
|
|
1413
|
+
AssistantsPage as AssistantsPage,
|
|
1414
|
+
type AssistantCreateParams as AssistantCreateParams,
|
|
1415
|
+
type AssistantUpdateParams as AssistantUpdateParams,
|
|
1416
|
+
type AssistantListParams as AssistantListParams,
|
|
1417
|
+
};
|
|
1415
1418
|
}
|
|
@@ -3,8 +3,59 @@
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import * as AssistantsAPI from './assistants';
|
|
5
5
|
import * as ChatAPI from './chat/chat';
|
|
6
|
+
import {
|
|
7
|
+
Assistant,
|
|
8
|
+
AssistantCreateParams,
|
|
9
|
+
AssistantDeleted,
|
|
10
|
+
AssistantListParams,
|
|
11
|
+
AssistantStreamEvent,
|
|
12
|
+
AssistantTool,
|
|
13
|
+
AssistantUpdateParams,
|
|
14
|
+
Assistants,
|
|
15
|
+
AssistantsPage,
|
|
16
|
+
CodeInterpreterTool,
|
|
17
|
+
FileSearchTool,
|
|
18
|
+
FunctionTool,
|
|
19
|
+
MessageStreamEvent,
|
|
20
|
+
RunStepStreamEvent,
|
|
21
|
+
RunStreamEvent,
|
|
22
|
+
ThreadStreamEvent,
|
|
23
|
+
} from './assistants';
|
|
6
24
|
import * as ThreadsAPI from './threads/threads';
|
|
25
|
+
import {
|
|
26
|
+
AssistantResponseFormatOption,
|
|
27
|
+
AssistantToolChoice,
|
|
28
|
+
AssistantToolChoiceFunction,
|
|
29
|
+
AssistantToolChoiceOption,
|
|
30
|
+
Thread,
|
|
31
|
+
ThreadCreateAndRunParams,
|
|
32
|
+
ThreadCreateAndRunParamsNonStreaming,
|
|
33
|
+
ThreadCreateAndRunParamsStreaming,
|
|
34
|
+
ThreadCreateAndRunPollParams,
|
|
35
|
+
ThreadCreateAndRunStreamParams,
|
|
36
|
+
ThreadCreateParams,
|
|
37
|
+
ThreadDeleted,
|
|
38
|
+
ThreadUpdateParams,
|
|
39
|
+
Threads,
|
|
40
|
+
} from './threads/threads';
|
|
7
41
|
import * as VectorStoresAPI from './vector-stores/vector-stores';
|
|
42
|
+
import {
|
|
43
|
+
AutoFileChunkingStrategyParam,
|
|
44
|
+
FileChunkingStrategy,
|
|
45
|
+
FileChunkingStrategyParam,
|
|
46
|
+
OtherFileChunkingStrategyObject,
|
|
47
|
+
StaticFileChunkingStrategy,
|
|
48
|
+
StaticFileChunkingStrategyObject,
|
|
49
|
+
StaticFileChunkingStrategyParam,
|
|
50
|
+
VectorStore,
|
|
51
|
+
VectorStoreCreateParams,
|
|
52
|
+
VectorStoreDeleted,
|
|
53
|
+
VectorStoreListParams,
|
|
54
|
+
VectorStoreUpdateParams,
|
|
55
|
+
VectorStores,
|
|
56
|
+
VectorStoresPage,
|
|
57
|
+
} from './vector-stores/vector-stores';
|
|
58
|
+
import { Chat } from './chat/chat';
|
|
8
59
|
|
|
9
60
|
export class Beta extends APIResource {
|
|
10
61
|
vectorStores: VectorStoresAPI.VectorStores = new VectorStoresAPI.VectorStores(this._client);
|
|
@@ -13,50 +64,65 @@ export class Beta extends APIResource {
|
|
|
13
64
|
threads: ThreadsAPI.Threads = new ThreadsAPI.Threads(this._client);
|
|
14
65
|
}
|
|
15
66
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
export
|
|
41
|
-
|
|
42
|
-
export
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
export
|
|
67
|
+
Beta.VectorStores = VectorStores;
|
|
68
|
+
Beta.VectorStoresPage = VectorStoresPage;
|
|
69
|
+
Beta.Assistants = Assistants;
|
|
70
|
+
Beta.AssistantsPage = AssistantsPage;
|
|
71
|
+
Beta.Threads = Threads;
|
|
72
|
+
|
|
73
|
+
export declare namespace Beta {
|
|
74
|
+
export {
|
|
75
|
+
VectorStores as VectorStores,
|
|
76
|
+
type AutoFileChunkingStrategyParam as AutoFileChunkingStrategyParam,
|
|
77
|
+
type FileChunkingStrategy as FileChunkingStrategy,
|
|
78
|
+
type FileChunkingStrategyParam as FileChunkingStrategyParam,
|
|
79
|
+
type OtherFileChunkingStrategyObject as OtherFileChunkingStrategyObject,
|
|
80
|
+
type StaticFileChunkingStrategy as StaticFileChunkingStrategy,
|
|
81
|
+
type StaticFileChunkingStrategyObject as StaticFileChunkingStrategyObject,
|
|
82
|
+
type StaticFileChunkingStrategyParam as StaticFileChunkingStrategyParam,
|
|
83
|
+
type VectorStore as VectorStore,
|
|
84
|
+
type VectorStoreDeleted as VectorStoreDeleted,
|
|
85
|
+
VectorStoresPage as VectorStoresPage,
|
|
86
|
+
type VectorStoreCreateParams as VectorStoreCreateParams,
|
|
87
|
+
type VectorStoreUpdateParams as VectorStoreUpdateParams,
|
|
88
|
+
type VectorStoreListParams as VectorStoreListParams,
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export { Chat };
|
|
92
|
+
|
|
93
|
+
export {
|
|
94
|
+
Assistants as Assistants,
|
|
95
|
+
type Assistant as Assistant,
|
|
96
|
+
type AssistantDeleted as AssistantDeleted,
|
|
97
|
+
type AssistantStreamEvent as AssistantStreamEvent,
|
|
98
|
+
type AssistantTool as AssistantTool,
|
|
99
|
+
type CodeInterpreterTool as CodeInterpreterTool,
|
|
100
|
+
type FileSearchTool as FileSearchTool,
|
|
101
|
+
type FunctionTool as FunctionTool,
|
|
102
|
+
type MessageStreamEvent as MessageStreamEvent,
|
|
103
|
+
type RunStepStreamEvent as RunStepStreamEvent,
|
|
104
|
+
type RunStreamEvent as RunStreamEvent,
|
|
105
|
+
type ThreadStreamEvent as ThreadStreamEvent,
|
|
106
|
+
AssistantsPage as AssistantsPage,
|
|
107
|
+
type AssistantCreateParams as AssistantCreateParams,
|
|
108
|
+
type AssistantUpdateParams as AssistantUpdateParams,
|
|
109
|
+
type AssistantListParams as AssistantListParams,
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export {
|
|
113
|
+
Threads as Threads,
|
|
114
|
+
type AssistantResponseFormatOption as AssistantResponseFormatOption,
|
|
115
|
+
type AssistantToolChoice as AssistantToolChoice,
|
|
116
|
+
type AssistantToolChoiceFunction as AssistantToolChoiceFunction,
|
|
117
|
+
type AssistantToolChoiceOption as AssistantToolChoiceOption,
|
|
118
|
+
type Thread as Thread,
|
|
119
|
+
type ThreadDeleted as ThreadDeleted,
|
|
120
|
+
type ThreadCreateParams as ThreadCreateParams,
|
|
121
|
+
type ThreadUpdateParams as ThreadUpdateParams,
|
|
122
|
+
type ThreadCreateAndRunParams as ThreadCreateAndRunParams,
|
|
123
|
+
type ThreadCreateAndRunParamsNonStreaming as ThreadCreateAndRunParamsNonStreaming,
|
|
124
|
+
type ThreadCreateAndRunParamsStreaming as ThreadCreateAndRunParamsStreaming,
|
|
125
|
+
type ThreadCreateAndRunPollParams,
|
|
126
|
+
type ThreadCreateAndRunStreamParams,
|
|
127
|
+
};
|
|
62
128
|
}
|
|
@@ -3,29 +3,14 @@
|
|
|
3
3
|
import * as Core from '../../../core';
|
|
4
4
|
import { APIResource } from '../../../resource';
|
|
5
5
|
import { ChatCompletionRunner, ChatCompletionFunctionRunnerParams } from '../../../lib/ChatCompletionRunner';
|
|
6
|
-
export { ChatCompletionRunner, ChatCompletionFunctionRunnerParams } from '../../../lib/ChatCompletionRunner';
|
|
7
6
|
import {
|
|
8
7
|
ChatCompletionStreamingRunner,
|
|
9
8
|
ChatCompletionStreamingFunctionRunnerParams,
|
|
10
9
|
} from '../../../lib/ChatCompletionStreamingRunner';
|
|
11
|
-
export {
|
|
12
|
-
ChatCompletionStreamingRunner,
|
|
13
|
-
ChatCompletionStreamingFunctionRunnerParams,
|
|
14
|
-
} from '../../../lib/ChatCompletionStreamingRunner';
|
|
15
10
|
import { BaseFunctionsArgs } from '../../../lib/RunnableFunction';
|
|
16
|
-
export {
|
|
17
|
-
RunnableFunction,
|
|
18
|
-
RunnableFunctions,
|
|
19
|
-
RunnableFunctionWithParse,
|
|
20
|
-
RunnableFunctionWithoutParse,
|
|
21
|
-
ParsingFunction,
|
|
22
|
-
ParsingToolFunction,
|
|
23
|
-
} from '../../../lib/RunnableFunction';
|
|
24
11
|
import { RunnerOptions } from '../../../lib/AbstractChatCompletionRunner';
|
|
25
12
|
import { ChatCompletionToolRunnerParams } from '../../../lib/ChatCompletionRunner';
|
|
26
|
-
export { ChatCompletionToolRunnerParams } from '../../../lib/ChatCompletionRunner';
|
|
27
13
|
import { ChatCompletionStreamingToolRunnerParams } from '../../../lib/ChatCompletionStreamingRunner';
|
|
28
|
-
export { ChatCompletionStreamingToolRunnerParams } from '../../../lib/ChatCompletionStreamingRunner';
|
|
29
14
|
import { ChatCompletionStream, type ChatCompletionStreamParams } from '../../../lib/ChatCompletionStream';
|
|
30
15
|
import {
|
|
31
16
|
ChatCompletion,
|
|
@@ -34,7 +19,26 @@ import {
|
|
|
34
19
|
ChatCompletionMessageToolCall,
|
|
35
20
|
} from '../../chat/completions';
|
|
36
21
|
import { ExtractParsedContentFromParams, parseChatCompletion, validateInputTools } from '../../../lib/parser';
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
ChatCompletionStreamingRunner,
|
|
25
|
+
type ChatCompletionStreamingFunctionRunnerParams,
|
|
26
|
+
} from '../../../lib/ChatCompletionStreamingRunner';
|
|
27
|
+
export {
|
|
28
|
+
type RunnableFunction,
|
|
29
|
+
type RunnableFunctions,
|
|
30
|
+
type RunnableFunctionWithParse,
|
|
31
|
+
type RunnableFunctionWithoutParse,
|
|
32
|
+
ParsingFunction,
|
|
33
|
+
ParsingToolFunction,
|
|
34
|
+
} from '../../../lib/RunnableFunction';
|
|
35
|
+
export { type ChatCompletionToolRunnerParams } from '../../../lib/ChatCompletionRunner';
|
|
36
|
+
export { type ChatCompletionStreamingToolRunnerParams } from '../../../lib/ChatCompletionStreamingRunner';
|
|
37
37
|
export { ChatCompletionStream, type ChatCompletionStreamParams } from '../../../lib/ChatCompletionStream';
|
|
38
|
+
export {
|
|
39
|
+
ChatCompletionRunner,
|
|
40
|
+
type ChatCompletionFunctionRunnerParams,
|
|
41
|
+
} from '../../../lib/ChatCompletionRunner';
|
|
38
42
|
|
|
39
43
|
export interface ParsedFunction extends ChatCompletionMessageToolCall.Function {
|
|
40
44
|
parsed_arguments?: unknown;
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
|
-
Assistant,
|
|
5
|
-
AssistantDeleted,
|
|
6
|
-
AssistantStreamEvent,
|
|
7
|
-
AssistantTool,
|
|
8
|
-
CodeInterpreterTool,
|
|
9
|
-
FileSearchTool,
|
|
10
|
-
FunctionTool,
|
|
11
|
-
MessageStreamEvent,
|
|
12
|
-
RunStepStreamEvent,
|
|
13
|
-
RunStreamEvent,
|
|
14
|
-
ThreadStreamEvent,
|
|
15
|
-
AssistantCreateParams,
|
|
16
|
-
AssistantUpdateParams,
|
|
17
|
-
AssistantListParams,
|
|
18
4
|
AssistantsPage,
|
|
19
5
|
Assistants,
|
|
6
|
+
type Assistant,
|
|
7
|
+
type AssistantDeleted,
|
|
8
|
+
type AssistantStreamEvent,
|
|
9
|
+
type AssistantTool,
|
|
10
|
+
type CodeInterpreterTool,
|
|
11
|
+
type FileSearchTool,
|
|
12
|
+
type FunctionTool,
|
|
13
|
+
type MessageStreamEvent,
|
|
14
|
+
type RunStepStreamEvent,
|
|
15
|
+
type RunStreamEvent,
|
|
16
|
+
type ThreadStreamEvent,
|
|
17
|
+
type AssistantCreateParams,
|
|
18
|
+
type AssistantUpdateParams,
|
|
19
|
+
type AssistantListParams,
|
|
20
20
|
} from './assistants';
|
|
21
|
+
export { Beta } from './beta';
|
|
22
|
+
export { Chat } from './chat/index';
|
|
21
23
|
export {
|
|
22
|
-
AssistantResponseFormatOption,
|
|
23
|
-
AssistantToolChoice,
|
|
24
|
-
AssistantToolChoiceFunction,
|
|
25
|
-
AssistantToolChoiceOption,
|
|
26
|
-
Thread,
|
|
27
|
-
ThreadDeleted,
|
|
28
|
-
ThreadCreateParams,
|
|
29
|
-
ThreadUpdateParams,
|
|
30
|
-
ThreadCreateAndRunParams,
|
|
31
|
-
ThreadCreateAndRunParamsNonStreaming,
|
|
32
|
-
ThreadCreateAndRunParamsStreaming,
|
|
33
|
-
ThreadCreateAndRunPollParams,
|
|
34
|
-
ThreadCreateAndRunStreamParams,
|
|
35
24
|
Threads,
|
|
25
|
+
type AssistantResponseFormatOption,
|
|
26
|
+
type AssistantToolChoice,
|
|
27
|
+
type AssistantToolChoiceFunction,
|
|
28
|
+
type AssistantToolChoiceOption,
|
|
29
|
+
type Thread,
|
|
30
|
+
type ThreadDeleted,
|
|
31
|
+
type ThreadCreateParams,
|
|
32
|
+
type ThreadUpdateParams,
|
|
33
|
+
type ThreadCreateAndRunParams,
|
|
34
|
+
type ThreadCreateAndRunParamsNonStreaming,
|
|
35
|
+
type ThreadCreateAndRunParamsStreaming,
|
|
36
|
+
type ThreadCreateAndRunPollParams,
|
|
37
|
+
type ThreadCreateAndRunStreamParams,
|
|
36
38
|
} from './threads/index';
|
|
37
|
-
export { Beta } from './beta';
|
|
38
|
-
export { Chat } from './chat/index';
|
|
39
39
|
export {
|
|
40
|
-
AutoFileChunkingStrategyParam,
|
|
41
|
-
FileChunkingStrategy,
|
|
42
|
-
FileChunkingStrategyParam,
|
|
43
|
-
OtherFileChunkingStrategyObject,
|
|
44
|
-
StaticFileChunkingStrategy,
|
|
45
|
-
StaticFileChunkingStrategyObject,
|
|
46
|
-
StaticFileChunkingStrategyParam,
|
|
47
|
-
VectorStore,
|
|
48
|
-
VectorStoreDeleted,
|
|
49
|
-
VectorStoreCreateParams,
|
|
50
|
-
VectorStoreUpdateParams,
|
|
51
|
-
VectorStoreListParams,
|
|
52
40
|
VectorStoresPage,
|
|
53
41
|
VectorStores,
|
|
42
|
+
type AutoFileChunkingStrategyParam,
|
|
43
|
+
type FileChunkingStrategy,
|
|
44
|
+
type FileChunkingStrategyParam,
|
|
45
|
+
type OtherFileChunkingStrategyObject,
|
|
46
|
+
type StaticFileChunkingStrategy,
|
|
47
|
+
type StaticFileChunkingStrategyObject,
|
|
48
|
+
type StaticFileChunkingStrategyParam,
|
|
49
|
+
type VectorStore,
|
|
50
|
+
type VectorStoreDeleted,
|
|
51
|
+
type VectorStoreCreateParams,
|
|
52
|
+
type VectorStoreUpdateParams,
|
|
53
|
+
type VectorStoreListParams,
|
|
54
54
|
} from './vector-stores/index';
|
|
@@ -1,73 +1,73 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
|
-
Annotation,
|
|
5
|
-
AnnotationDelta,
|
|
6
|
-
FileCitationAnnotation,
|
|
7
|
-
FileCitationDeltaAnnotation,
|
|
8
|
-
FilePathAnnotation,
|
|
9
|
-
FilePathDeltaAnnotation,
|
|
10
|
-
ImageFile,
|
|
11
|
-
ImageFileContentBlock,
|
|
12
|
-
ImageFileDelta,
|
|
13
|
-
ImageFileDeltaBlock,
|
|
14
|
-
ImageURL,
|
|
15
|
-
ImageURLContentBlock,
|
|
16
|
-
ImageURLDelta,
|
|
17
|
-
ImageURLDeltaBlock,
|
|
18
|
-
Message,
|
|
19
|
-
MessageContent,
|
|
20
|
-
MessageContentDelta,
|
|
21
|
-
MessageContentPartParam,
|
|
22
|
-
MessageDeleted,
|
|
23
|
-
MessageDelta,
|
|
24
|
-
MessageDeltaEvent,
|
|
25
|
-
RefusalContentBlock,
|
|
26
|
-
RefusalDeltaBlock,
|
|
27
|
-
Text,
|
|
28
|
-
TextContentBlock,
|
|
29
|
-
TextContentBlockParam,
|
|
30
|
-
TextDelta,
|
|
31
|
-
TextDeltaBlock,
|
|
32
|
-
MessageCreateParams,
|
|
33
|
-
MessageUpdateParams,
|
|
34
|
-
MessageListParams,
|
|
35
4
|
MessagesPage,
|
|
36
5
|
Messages,
|
|
6
|
+
type Annotation,
|
|
7
|
+
type AnnotationDelta,
|
|
8
|
+
type FileCitationAnnotation,
|
|
9
|
+
type FileCitationDeltaAnnotation,
|
|
10
|
+
type FilePathAnnotation,
|
|
11
|
+
type FilePathDeltaAnnotation,
|
|
12
|
+
type ImageFile,
|
|
13
|
+
type ImageFileContentBlock,
|
|
14
|
+
type ImageFileDelta,
|
|
15
|
+
type ImageFileDeltaBlock,
|
|
16
|
+
type ImageURL,
|
|
17
|
+
type ImageURLContentBlock,
|
|
18
|
+
type ImageURLDelta,
|
|
19
|
+
type ImageURLDeltaBlock,
|
|
20
|
+
type Message,
|
|
21
|
+
type MessageContent,
|
|
22
|
+
type MessageContentDelta,
|
|
23
|
+
type MessageContentPartParam,
|
|
24
|
+
type MessageDeleted,
|
|
25
|
+
type MessageDelta,
|
|
26
|
+
type MessageDeltaEvent,
|
|
27
|
+
type RefusalContentBlock,
|
|
28
|
+
type RefusalDeltaBlock,
|
|
29
|
+
type Text,
|
|
30
|
+
type TextContentBlock,
|
|
31
|
+
type TextContentBlockParam,
|
|
32
|
+
type TextDelta,
|
|
33
|
+
type TextDeltaBlock,
|
|
34
|
+
type MessageCreateParams,
|
|
35
|
+
type MessageUpdateParams,
|
|
36
|
+
type MessageListParams,
|
|
37
37
|
} from './messages';
|
|
38
38
|
export {
|
|
39
|
-
AssistantResponseFormatOption,
|
|
40
|
-
AssistantToolChoice,
|
|
41
|
-
AssistantToolChoiceFunction,
|
|
42
|
-
AssistantToolChoiceOption,
|
|
43
|
-
Thread,
|
|
44
|
-
ThreadDeleted,
|
|
45
|
-
ThreadCreateParams,
|
|
46
|
-
ThreadUpdateParams,
|
|
47
|
-
ThreadCreateAndRunParams,
|
|
48
|
-
ThreadCreateAndRunParamsNonStreaming,
|
|
49
|
-
ThreadCreateAndRunParamsStreaming,
|
|
50
|
-
ThreadCreateAndRunPollParams,
|
|
51
|
-
ThreadCreateAndRunStreamParams,
|
|
52
|
-
Threads,
|
|
53
|
-
} from './threads';
|
|
54
|
-
export {
|
|
55
|
-
RequiredActionFunctionToolCall,
|
|
56
|
-
Run,
|
|
57
|
-
RunStatus,
|
|
58
|
-
RunCreateParams,
|
|
59
|
-
RunCreateParamsNonStreaming,
|
|
60
|
-
RunCreateParamsStreaming,
|
|
61
|
-
RunUpdateParams,
|
|
62
|
-
RunListParams,
|
|
63
|
-
RunCreateAndPollParams,
|
|
64
|
-
RunCreateAndStreamParams,
|
|
65
|
-
RunStreamParams,
|
|
66
|
-
RunSubmitToolOutputsParams,
|
|
67
|
-
RunSubmitToolOutputsParamsNonStreaming,
|
|
68
|
-
RunSubmitToolOutputsParamsStreaming,
|
|
69
|
-
RunSubmitToolOutputsAndPollParams,
|
|
70
|
-
RunSubmitToolOutputsStreamParams,
|
|
71
39
|
RunsPage,
|
|
72
40
|
Runs,
|
|
41
|
+
type RequiredActionFunctionToolCall,
|
|
42
|
+
type Run,
|
|
43
|
+
type RunStatus,
|
|
44
|
+
type RunCreateParams,
|
|
45
|
+
type RunCreateParamsNonStreaming,
|
|
46
|
+
type RunCreateParamsStreaming,
|
|
47
|
+
type RunUpdateParams,
|
|
48
|
+
type RunListParams,
|
|
49
|
+
type RunSubmitToolOutputsParams,
|
|
50
|
+
type RunSubmitToolOutputsParamsNonStreaming,
|
|
51
|
+
type RunSubmitToolOutputsParamsStreaming,
|
|
52
|
+
type RunCreateAndPollParams,
|
|
53
|
+
type RunCreateAndStreamParams,
|
|
54
|
+
type RunStreamParams,
|
|
55
|
+
type RunSubmitToolOutputsAndPollParams,
|
|
56
|
+
type RunSubmitToolOutputsStreamParams,
|
|
73
57
|
} from './runs/index';
|
|
58
|
+
export {
|
|
59
|
+
Threads,
|
|
60
|
+
type AssistantResponseFormatOption,
|
|
61
|
+
type AssistantToolChoice,
|
|
62
|
+
type AssistantToolChoiceFunction,
|
|
63
|
+
type AssistantToolChoiceOption,
|
|
64
|
+
type Thread,
|
|
65
|
+
type ThreadDeleted,
|
|
66
|
+
type ThreadCreateParams,
|
|
67
|
+
type ThreadUpdateParams,
|
|
68
|
+
type ThreadCreateAndRunParams,
|
|
69
|
+
type ThreadCreateAndRunParamsNonStreaming,
|
|
70
|
+
type ThreadCreateAndRunParamsStreaming,
|
|
71
|
+
type ThreadCreateAndRunPollParams,
|
|
72
|
+
type ThreadCreateAndRunStreamParams,
|
|
73
|
+
} from './threads';
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { APIResource } from '../../../resource';
|
|
4
4
|
import { isRequestOptions } from '../../../core';
|
|
5
5
|
import * as Core from '../../../core';
|
|
6
|
-
import * as MessagesAPI from './messages';
|
|
7
6
|
import * as AssistantsAPI from '../assistants';
|
|
8
7
|
import { CursorPage, type CursorPageParams } from '../../../pagination';
|
|
9
8
|
|
|
@@ -722,37 +721,41 @@ export interface MessageListParams extends CursorPageParams {
|
|
|
722
721
|
run_id?: string;
|
|
723
722
|
}
|
|
724
723
|
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
export
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
724
|
+
Messages.MessagesPage = MessagesPage;
|
|
725
|
+
|
|
726
|
+
export declare namespace Messages {
|
|
727
|
+
export {
|
|
728
|
+
type Annotation as Annotation,
|
|
729
|
+
type AnnotationDelta as AnnotationDelta,
|
|
730
|
+
type FileCitationAnnotation as FileCitationAnnotation,
|
|
731
|
+
type FileCitationDeltaAnnotation as FileCitationDeltaAnnotation,
|
|
732
|
+
type FilePathAnnotation as FilePathAnnotation,
|
|
733
|
+
type FilePathDeltaAnnotation as FilePathDeltaAnnotation,
|
|
734
|
+
type ImageFile as ImageFile,
|
|
735
|
+
type ImageFileContentBlock as ImageFileContentBlock,
|
|
736
|
+
type ImageFileDelta as ImageFileDelta,
|
|
737
|
+
type ImageFileDeltaBlock as ImageFileDeltaBlock,
|
|
738
|
+
type ImageURL as ImageURL,
|
|
739
|
+
type ImageURLContentBlock as ImageURLContentBlock,
|
|
740
|
+
type ImageURLDelta as ImageURLDelta,
|
|
741
|
+
type ImageURLDeltaBlock as ImageURLDeltaBlock,
|
|
742
|
+
type Message as Message,
|
|
743
|
+
type MessageContent as MessageContent,
|
|
744
|
+
type MessageContentDelta as MessageContentDelta,
|
|
745
|
+
type MessageContentPartParam as MessageContentPartParam,
|
|
746
|
+
type MessageDeleted as MessageDeleted,
|
|
747
|
+
type MessageDelta as MessageDelta,
|
|
748
|
+
type MessageDeltaEvent as MessageDeltaEvent,
|
|
749
|
+
type RefusalContentBlock as RefusalContentBlock,
|
|
750
|
+
type RefusalDeltaBlock as RefusalDeltaBlock,
|
|
751
|
+
type Text as Text,
|
|
752
|
+
type TextContentBlock as TextContentBlock,
|
|
753
|
+
type TextContentBlockParam as TextContentBlockParam,
|
|
754
|
+
type TextDelta as TextDelta,
|
|
755
|
+
type TextDeltaBlock as TextDeltaBlock,
|
|
756
|
+
MessagesPage as MessagesPage,
|
|
757
|
+
type MessageCreateParams as MessageCreateParams,
|
|
758
|
+
type MessageUpdateParams as MessageUpdateParams,
|
|
759
|
+
type MessageListParams as MessageListParams,
|
|
760
|
+
};
|
|
758
761
|
}
|