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
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
|
-
CodeInterpreterLogs,
|
|
5
|
-
CodeInterpreterOutputImage,
|
|
6
|
-
CodeInterpreterToolCall,
|
|
7
|
-
CodeInterpreterToolCallDelta,
|
|
8
|
-
FileSearchToolCall,
|
|
9
|
-
FileSearchToolCallDelta,
|
|
10
|
-
FunctionToolCall,
|
|
11
|
-
FunctionToolCallDelta,
|
|
12
|
-
MessageCreationStepDetails,
|
|
13
|
-
RunStep,
|
|
14
|
-
RunStepDelta,
|
|
15
|
-
RunStepDeltaEvent,
|
|
16
|
-
RunStepDeltaMessageDelta,
|
|
17
|
-
RunStepInclude,
|
|
18
|
-
ToolCall,
|
|
19
|
-
ToolCallDelta,
|
|
20
|
-
ToolCallDeltaObject,
|
|
21
|
-
ToolCallsStepDetails,
|
|
22
|
-
StepRetrieveParams,
|
|
23
|
-
StepListParams,
|
|
24
4
|
RunStepsPage,
|
|
25
5
|
Steps,
|
|
6
|
+
type CodeInterpreterLogs,
|
|
7
|
+
type CodeInterpreterOutputImage,
|
|
8
|
+
type CodeInterpreterToolCall,
|
|
9
|
+
type CodeInterpreterToolCallDelta,
|
|
10
|
+
type FileSearchToolCall,
|
|
11
|
+
type FileSearchToolCallDelta,
|
|
12
|
+
type FunctionToolCall,
|
|
13
|
+
type FunctionToolCallDelta,
|
|
14
|
+
type MessageCreationStepDetails,
|
|
15
|
+
type RunStep,
|
|
16
|
+
type RunStepDelta,
|
|
17
|
+
type RunStepDeltaEvent,
|
|
18
|
+
type RunStepDeltaMessageDelta,
|
|
19
|
+
type RunStepInclude,
|
|
20
|
+
type ToolCall,
|
|
21
|
+
type ToolCallDelta,
|
|
22
|
+
type ToolCallDeltaObject,
|
|
23
|
+
type ToolCallsStepDetails,
|
|
24
|
+
type StepRetrieveParams,
|
|
25
|
+
type StepListParams,
|
|
26
26
|
} from './steps';
|
|
27
27
|
export {
|
|
28
|
-
RequiredActionFunctionToolCall,
|
|
29
|
-
Run,
|
|
30
|
-
RunStatus,
|
|
31
|
-
RunCreateParams,
|
|
32
|
-
RunCreateParamsNonStreaming,
|
|
33
|
-
RunCreateParamsStreaming,
|
|
34
|
-
RunUpdateParams,
|
|
35
|
-
RunListParams,
|
|
36
|
-
RunCreateAndPollParams,
|
|
37
|
-
RunCreateAndStreamParams,
|
|
38
|
-
RunStreamParams,
|
|
39
|
-
RunSubmitToolOutputsParams,
|
|
40
|
-
RunSubmitToolOutputsParamsNonStreaming,
|
|
41
|
-
RunSubmitToolOutputsParamsStreaming,
|
|
42
|
-
RunSubmitToolOutputsAndPollParams,
|
|
43
|
-
RunSubmitToolOutputsStreamParams,
|
|
44
28
|
RunsPage,
|
|
45
29
|
Runs,
|
|
30
|
+
type RequiredActionFunctionToolCall,
|
|
31
|
+
type Run,
|
|
32
|
+
type RunStatus,
|
|
33
|
+
type RunCreateParams,
|
|
34
|
+
type RunCreateParamsNonStreaming,
|
|
35
|
+
type RunCreateParamsStreaming,
|
|
36
|
+
type RunUpdateParams,
|
|
37
|
+
type RunListParams,
|
|
38
|
+
type RunCreateAndPollParams,
|
|
39
|
+
type RunCreateAndStreamParams,
|
|
40
|
+
type RunStreamParams,
|
|
41
|
+
type RunSubmitToolOutputsParams,
|
|
42
|
+
type RunSubmitToolOutputsParamsNonStreaming,
|
|
43
|
+
type RunSubmitToolOutputsParamsStreaming,
|
|
44
|
+
type RunSubmitToolOutputsAndPollParams,
|
|
45
|
+
type RunSubmitToolOutputsStreamParams,
|
|
46
46
|
} from './runs';
|
|
@@ -13,6 +13,30 @@ import * as ChatAPI from '../../../chat/chat';
|
|
|
13
13
|
import * as MessagesAPI from '../messages';
|
|
14
14
|
import * as ThreadsAPI from '../threads';
|
|
15
15
|
import * as StepsAPI from './steps';
|
|
16
|
+
import {
|
|
17
|
+
CodeInterpreterLogs,
|
|
18
|
+
CodeInterpreterOutputImage,
|
|
19
|
+
CodeInterpreterToolCall,
|
|
20
|
+
CodeInterpreterToolCallDelta,
|
|
21
|
+
FileSearchToolCall,
|
|
22
|
+
FileSearchToolCallDelta,
|
|
23
|
+
FunctionToolCall,
|
|
24
|
+
FunctionToolCallDelta,
|
|
25
|
+
MessageCreationStepDetails,
|
|
26
|
+
RunStep,
|
|
27
|
+
RunStepDelta,
|
|
28
|
+
RunStepDeltaEvent,
|
|
29
|
+
RunStepDeltaMessageDelta,
|
|
30
|
+
RunStepInclude,
|
|
31
|
+
RunStepsPage,
|
|
32
|
+
StepListParams,
|
|
33
|
+
StepRetrieveParams,
|
|
34
|
+
Steps,
|
|
35
|
+
ToolCall,
|
|
36
|
+
ToolCallDelta,
|
|
37
|
+
ToolCallDeltaObject,
|
|
38
|
+
ToolCallsStepDetails,
|
|
39
|
+
} from './steps';
|
|
16
40
|
import { CursorPage, type CursorPageParams } from '../../../../pagination';
|
|
17
41
|
import { Stream } from '../../../../streaming';
|
|
18
42
|
|
|
@@ -1619,44 +1643,53 @@ export namespace RunSubmitToolOutputsStreamParams {
|
|
|
1619
1643
|
}
|
|
1620
1644
|
}
|
|
1621
1645
|
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
export
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
export
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1646
|
+
Runs.RunsPage = RunsPage;
|
|
1647
|
+
Runs.Steps = Steps;
|
|
1648
|
+
Runs.RunStepsPage = RunStepsPage;
|
|
1649
|
+
|
|
1650
|
+
export declare namespace Runs {
|
|
1651
|
+
export {
|
|
1652
|
+
type RequiredActionFunctionToolCall as RequiredActionFunctionToolCall,
|
|
1653
|
+
type Run as Run,
|
|
1654
|
+
type RunStatus as RunStatus,
|
|
1655
|
+
RunsPage as RunsPage,
|
|
1656
|
+
type RunCreateParams as RunCreateParams,
|
|
1657
|
+
type RunCreateParamsNonStreaming as RunCreateParamsNonStreaming,
|
|
1658
|
+
type RunCreateParamsStreaming as RunCreateParamsStreaming,
|
|
1659
|
+
type RunUpdateParams as RunUpdateParams,
|
|
1660
|
+
type RunListParams as RunListParams,
|
|
1661
|
+
type RunCreateAndPollParams,
|
|
1662
|
+
type RunCreateAndStreamParams,
|
|
1663
|
+
type RunStreamParams,
|
|
1664
|
+
type RunSubmitToolOutputsParams as RunSubmitToolOutputsParams,
|
|
1665
|
+
type RunSubmitToolOutputsParamsNonStreaming as RunSubmitToolOutputsParamsNonStreaming,
|
|
1666
|
+
type RunSubmitToolOutputsParamsStreaming as RunSubmitToolOutputsParamsStreaming,
|
|
1667
|
+
type RunSubmitToolOutputsAndPollParams,
|
|
1668
|
+
type RunSubmitToolOutputsStreamParams,
|
|
1669
|
+
};
|
|
1670
|
+
|
|
1671
|
+
export {
|
|
1672
|
+
Steps as Steps,
|
|
1673
|
+
type CodeInterpreterLogs as CodeInterpreterLogs,
|
|
1674
|
+
type CodeInterpreterOutputImage as CodeInterpreterOutputImage,
|
|
1675
|
+
type CodeInterpreterToolCall as CodeInterpreterToolCall,
|
|
1676
|
+
type CodeInterpreterToolCallDelta as CodeInterpreterToolCallDelta,
|
|
1677
|
+
type FileSearchToolCall as FileSearchToolCall,
|
|
1678
|
+
type FileSearchToolCallDelta as FileSearchToolCallDelta,
|
|
1679
|
+
type FunctionToolCall as FunctionToolCall,
|
|
1680
|
+
type FunctionToolCallDelta as FunctionToolCallDelta,
|
|
1681
|
+
type MessageCreationStepDetails as MessageCreationStepDetails,
|
|
1682
|
+
type RunStep as RunStep,
|
|
1683
|
+
type RunStepDelta as RunStepDelta,
|
|
1684
|
+
type RunStepDeltaEvent as RunStepDeltaEvent,
|
|
1685
|
+
type RunStepDeltaMessageDelta as RunStepDeltaMessageDelta,
|
|
1686
|
+
type RunStepInclude as RunStepInclude,
|
|
1687
|
+
type ToolCall as ToolCall,
|
|
1688
|
+
type ToolCallDelta as ToolCallDelta,
|
|
1689
|
+
type ToolCallDeltaObject as ToolCallDeltaObject,
|
|
1690
|
+
type ToolCallsStepDetails as ToolCallsStepDetails,
|
|
1691
|
+
RunStepsPage as RunStepsPage,
|
|
1692
|
+
type StepRetrieveParams as StepRetrieveParams,
|
|
1693
|
+
type StepListParams as StepListParams,
|
|
1694
|
+
};
|
|
1662
1695
|
}
|
|
@@ -738,26 +738,30 @@ export interface StepListParams extends CursorPageParams {
|
|
|
738
738
|
order?: 'asc' | 'desc';
|
|
739
739
|
}
|
|
740
740
|
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
export
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
741
|
+
Steps.RunStepsPage = RunStepsPage;
|
|
742
|
+
|
|
743
|
+
export declare namespace Steps {
|
|
744
|
+
export {
|
|
745
|
+
type CodeInterpreterLogs as CodeInterpreterLogs,
|
|
746
|
+
type CodeInterpreterOutputImage as CodeInterpreterOutputImage,
|
|
747
|
+
type CodeInterpreterToolCall as CodeInterpreterToolCall,
|
|
748
|
+
type CodeInterpreterToolCallDelta as CodeInterpreterToolCallDelta,
|
|
749
|
+
type FileSearchToolCall as FileSearchToolCall,
|
|
750
|
+
type FileSearchToolCallDelta as FileSearchToolCallDelta,
|
|
751
|
+
type FunctionToolCall as FunctionToolCall,
|
|
752
|
+
type FunctionToolCallDelta as FunctionToolCallDelta,
|
|
753
|
+
type MessageCreationStepDetails as MessageCreationStepDetails,
|
|
754
|
+
type RunStep as RunStep,
|
|
755
|
+
type RunStepDelta as RunStepDelta,
|
|
756
|
+
type RunStepDeltaEvent as RunStepDeltaEvent,
|
|
757
|
+
type RunStepDeltaMessageDelta as RunStepDeltaMessageDelta,
|
|
758
|
+
type RunStepInclude as RunStepInclude,
|
|
759
|
+
type ToolCall as ToolCall,
|
|
760
|
+
type ToolCallDelta as ToolCallDelta,
|
|
761
|
+
type ToolCallDeltaObject as ToolCallDeltaObject,
|
|
762
|
+
type ToolCallsStepDetails as ToolCallsStepDetails,
|
|
763
|
+
RunStepsPage as RunStepsPage,
|
|
764
|
+
type StepRetrieveParams as StepRetrieveParams,
|
|
765
|
+
type StepListParams as StepListParams,
|
|
766
|
+
};
|
|
763
767
|
}
|
|
@@ -10,8 +10,63 @@ import * as Shared from '../../shared';
|
|
|
10
10
|
import * as AssistantsAPI from '../assistants';
|
|
11
11
|
import * as ChatAPI from '../../chat/chat';
|
|
12
12
|
import * as MessagesAPI from './messages';
|
|
13
|
+
import {
|
|
14
|
+
Annotation,
|
|
15
|
+
AnnotationDelta,
|
|
16
|
+
FileCitationAnnotation,
|
|
17
|
+
FileCitationDeltaAnnotation,
|
|
18
|
+
FilePathAnnotation,
|
|
19
|
+
FilePathDeltaAnnotation,
|
|
20
|
+
ImageFile,
|
|
21
|
+
ImageFileContentBlock,
|
|
22
|
+
ImageFileDelta,
|
|
23
|
+
ImageFileDeltaBlock,
|
|
24
|
+
ImageURL,
|
|
25
|
+
ImageURLContentBlock,
|
|
26
|
+
ImageURLDelta,
|
|
27
|
+
ImageURLDeltaBlock,
|
|
28
|
+
Message as MessagesAPIMessage,
|
|
29
|
+
MessageContent,
|
|
30
|
+
MessageContentDelta,
|
|
31
|
+
MessageContentPartParam,
|
|
32
|
+
MessageCreateParams,
|
|
33
|
+
MessageDeleted,
|
|
34
|
+
MessageDelta,
|
|
35
|
+
MessageDeltaEvent,
|
|
36
|
+
MessageListParams,
|
|
37
|
+
MessageUpdateParams,
|
|
38
|
+
Messages,
|
|
39
|
+
MessagesPage,
|
|
40
|
+
RefusalContentBlock,
|
|
41
|
+
RefusalDeltaBlock,
|
|
42
|
+
Text,
|
|
43
|
+
TextContentBlock,
|
|
44
|
+
TextContentBlockParam,
|
|
45
|
+
TextDelta,
|
|
46
|
+
TextDeltaBlock,
|
|
47
|
+
} from './messages';
|
|
13
48
|
import * as VectorStoresAPI from '../vector-stores/vector-stores';
|
|
14
49
|
import * as RunsAPI from './runs/runs';
|
|
50
|
+
import {
|
|
51
|
+
RequiredActionFunctionToolCall,
|
|
52
|
+
Run,
|
|
53
|
+
RunCreateAndPollParams,
|
|
54
|
+
RunCreateAndStreamParams,
|
|
55
|
+
RunCreateParams,
|
|
56
|
+
RunCreateParamsNonStreaming,
|
|
57
|
+
RunCreateParamsStreaming,
|
|
58
|
+
RunListParams,
|
|
59
|
+
RunStatus,
|
|
60
|
+
RunStreamParams,
|
|
61
|
+
RunSubmitToolOutputsAndPollParams,
|
|
62
|
+
RunSubmitToolOutputsParams,
|
|
63
|
+
RunSubmitToolOutputsParamsNonStreaming,
|
|
64
|
+
RunSubmitToolOutputsParamsStreaming,
|
|
65
|
+
RunSubmitToolOutputsStreamParams,
|
|
66
|
+
RunUpdateParams,
|
|
67
|
+
Runs,
|
|
68
|
+
RunsPage,
|
|
69
|
+
} from './runs/runs';
|
|
15
70
|
import { Stream } from '../../../streaming';
|
|
16
71
|
|
|
17
72
|
export class Threads extends APIResource {
|
|
@@ -1489,69 +1544,82 @@ export namespace ThreadCreateAndRunStreamParams {
|
|
|
1489
1544
|
}
|
|
1490
1545
|
}
|
|
1491
1546
|
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
export
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
export
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
export
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1547
|
+
Threads.Runs = Runs;
|
|
1548
|
+
Threads.RunsPage = RunsPage;
|
|
1549
|
+
Threads.Messages = Messages;
|
|
1550
|
+
Threads.MessagesPage = MessagesPage;
|
|
1551
|
+
|
|
1552
|
+
export declare namespace Threads {
|
|
1553
|
+
export {
|
|
1554
|
+
type AssistantResponseFormatOption as AssistantResponseFormatOption,
|
|
1555
|
+
type AssistantToolChoice as AssistantToolChoice,
|
|
1556
|
+
type AssistantToolChoiceFunction as AssistantToolChoiceFunction,
|
|
1557
|
+
type AssistantToolChoiceOption as AssistantToolChoiceOption,
|
|
1558
|
+
type Thread as Thread,
|
|
1559
|
+
type ThreadDeleted as ThreadDeleted,
|
|
1560
|
+
type ThreadCreateParams as ThreadCreateParams,
|
|
1561
|
+
type ThreadUpdateParams as ThreadUpdateParams,
|
|
1562
|
+
type ThreadCreateAndRunParams as ThreadCreateAndRunParams,
|
|
1563
|
+
type ThreadCreateAndRunParamsNonStreaming as ThreadCreateAndRunParamsNonStreaming,
|
|
1564
|
+
type ThreadCreateAndRunParamsStreaming as ThreadCreateAndRunParamsStreaming,
|
|
1565
|
+
type ThreadCreateAndRunPollParams,
|
|
1566
|
+
type ThreadCreateAndRunStreamParams,
|
|
1567
|
+
};
|
|
1568
|
+
|
|
1569
|
+
export {
|
|
1570
|
+
Runs as Runs,
|
|
1571
|
+
type RequiredActionFunctionToolCall as RequiredActionFunctionToolCall,
|
|
1572
|
+
type Run as Run,
|
|
1573
|
+
type RunStatus as RunStatus,
|
|
1574
|
+
RunsPage as RunsPage,
|
|
1575
|
+
type RunCreateParams as RunCreateParams,
|
|
1576
|
+
type RunCreateParamsNonStreaming as RunCreateParamsNonStreaming,
|
|
1577
|
+
type RunCreateParamsStreaming as RunCreateParamsStreaming,
|
|
1578
|
+
type RunUpdateParams as RunUpdateParams,
|
|
1579
|
+
type RunListParams as RunListParams,
|
|
1580
|
+
type RunCreateAndPollParams,
|
|
1581
|
+
type RunCreateAndStreamParams,
|
|
1582
|
+
type RunStreamParams,
|
|
1583
|
+
type RunSubmitToolOutputsParams as RunSubmitToolOutputsParams,
|
|
1584
|
+
type RunSubmitToolOutputsParamsNonStreaming as RunSubmitToolOutputsParamsNonStreaming,
|
|
1585
|
+
type RunSubmitToolOutputsParamsStreaming as RunSubmitToolOutputsParamsStreaming,
|
|
1586
|
+
type RunSubmitToolOutputsAndPollParams,
|
|
1587
|
+
type RunSubmitToolOutputsStreamParams,
|
|
1588
|
+
};
|
|
1589
|
+
|
|
1590
|
+
export {
|
|
1591
|
+
Messages as Messages,
|
|
1592
|
+
type Annotation as Annotation,
|
|
1593
|
+
type AnnotationDelta as AnnotationDelta,
|
|
1594
|
+
type FileCitationAnnotation as FileCitationAnnotation,
|
|
1595
|
+
type FileCitationDeltaAnnotation as FileCitationDeltaAnnotation,
|
|
1596
|
+
type FilePathAnnotation as FilePathAnnotation,
|
|
1597
|
+
type FilePathDeltaAnnotation as FilePathDeltaAnnotation,
|
|
1598
|
+
type ImageFile as ImageFile,
|
|
1599
|
+
type ImageFileContentBlock as ImageFileContentBlock,
|
|
1600
|
+
type ImageFileDelta as ImageFileDelta,
|
|
1601
|
+
type ImageFileDeltaBlock as ImageFileDeltaBlock,
|
|
1602
|
+
type ImageURL as ImageURL,
|
|
1603
|
+
type ImageURLContentBlock as ImageURLContentBlock,
|
|
1604
|
+
type ImageURLDelta as ImageURLDelta,
|
|
1605
|
+
type ImageURLDeltaBlock as ImageURLDeltaBlock,
|
|
1606
|
+
type MessagesAPIMessage as Message,
|
|
1607
|
+
type MessageContent as MessageContent,
|
|
1608
|
+
type MessageContentDelta as MessageContentDelta,
|
|
1609
|
+
type MessageContentPartParam as MessageContentPartParam,
|
|
1610
|
+
type MessageDeleted as MessageDeleted,
|
|
1611
|
+
type MessageDelta as MessageDelta,
|
|
1612
|
+
type MessageDeltaEvent as MessageDeltaEvent,
|
|
1613
|
+
type RefusalContentBlock as RefusalContentBlock,
|
|
1614
|
+
type RefusalDeltaBlock as RefusalDeltaBlock,
|
|
1615
|
+
type Text as Text,
|
|
1616
|
+
type TextContentBlock as TextContentBlock,
|
|
1617
|
+
type TextContentBlockParam as TextContentBlockParam,
|
|
1618
|
+
type TextDelta as TextDelta,
|
|
1619
|
+
type TextDeltaBlock as TextDeltaBlock,
|
|
1620
|
+
MessagesPage as MessagesPage,
|
|
1621
|
+
type MessageCreateParams as MessageCreateParams,
|
|
1622
|
+
type MessageUpdateParams as MessageUpdateParams,
|
|
1623
|
+
type MessageListParams as MessageListParams,
|
|
1624
|
+
};
|
|
1557
1625
|
}
|
|
@@ -6,7 +6,6 @@ import { sleep } from '../../../core';
|
|
|
6
6
|
import { Uploadable } from '../../../core';
|
|
7
7
|
import { allSettledWithThrow } from '../../../lib/Util';
|
|
8
8
|
import * as Core from '../../../core';
|
|
9
|
-
import * as FileBatchesAPI from './file-batches';
|
|
10
9
|
import * as FilesAPI from './files';
|
|
11
10
|
import { VectorStoreFilesPage } from './files';
|
|
12
11
|
import * as VectorStoresAPI from './vector-stores';
|
|
@@ -294,10 +293,12 @@ export interface FileBatchListFilesParams extends CursorPageParams {
|
|
|
294
293
|
order?: 'asc' | 'desc';
|
|
295
294
|
}
|
|
296
295
|
|
|
297
|
-
export namespace FileBatches {
|
|
298
|
-
export
|
|
299
|
-
|
|
300
|
-
|
|
296
|
+
export declare namespace FileBatches {
|
|
297
|
+
export {
|
|
298
|
+
type VectorStoreFileBatch as VectorStoreFileBatch,
|
|
299
|
+
type FileBatchCreateParams as FileBatchCreateParams,
|
|
300
|
+
type FileBatchListFilesParams as FileBatchListFilesParams,
|
|
301
|
+
};
|
|
301
302
|
}
|
|
302
303
|
|
|
303
304
|
export { VectorStoreFilesPage };
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { APIResource } from '../../../resource';
|
|
4
4
|
import { sleep, Uploadable, isRequestOptions } from '../../../core';
|
|
5
5
|
import * as Core from '../../../core';
|
|
6
|
-
import * as FilesAPI from './files';
|
|
7
6
|
import * as VectorStoresAPI from './vector-stores';
|
|
8
7
|
import { CursorPage, type CursorPageParams } from '../../../pagination';
|
|
9
8
|
|
|
@@ -286,10 +285,14 @@ export interface FileListParams extends CursorPageParams {
|
|
|
286
285
|
order?: 'asc' | 'desc';
|
|
287
286
|
}
|
|
288
287
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
export
|
|
293
|
-
|
|
294
|
-
|
|
288
|
+
Files.VectorStoreFilesPage = VectorStoreFilesPage;
|
|
289
|
+
|
|
290
|
+
export declare namespace Files {
|
|
291
|
+
export {
|
|
292
|
+
type VectorStoreFile as VectorStoreFile,
|
|
293
|
+
type VectorStoreFileDeleted as VectorStoreFileDeleted,
|
|
294
|
+
VectorStoreFilesPage as VectorStoreFilesPage,
|
|
295
|
+
type FileCreateParams as FileCreateParams,
|
|
296
|
+
type FileListParams as FileListParams,
|
|
297
|
+
};
|
|
295
298
|
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
StaticFileChunkingStrategyObject,
|
|
10
|
-
StaticFileChunkingStrategyParam,
|
|
11
|
-
VectorStore,
|
|
12
|
-
VectorStoreDeleted,
|
|
13
|
-
VectorStoreCreateParams,
|
|
14
|
-
VectorStoreUpdateParams,
|
|
15
|
-
VectorStoreListParams,
|
|
16
|
-
VectorStoresPage,
|
|
17
|
-
VectorStores,
|
|
18
|
-
} from './vector-stores';
|
|
4
|
+
FileBatches,
|
|
5
|
+
type VectorStoreFileBatch,
|
|
6
|
+
type FileBatchCreateParams,
|
|
7
|
+
type FileBatchListFilesParams,
|
|
8
|
+
} from './file-batches';
|
|
19
9
|
export {
|
|
20
|
-
VectorStoreFile,
|
|
21
|
-
VectorStoreFileDeleted,
|
|
22
|
-
FileCreateParams,
|
|
23
|
-
FileListParams,
|
|
24
10
|
VectorStoreFilesPage,
|
|
25
11
|
Files,
|
|
12
|
+
type VectorStoreFile,
|
|
13
|
+
type VectorStoreFileDeleted,
|
|
14
|
+
type FileCreateParams,
|
|
15
|
+
type FileListParams,
|
|
26
16
|
} from './files';
|
|
27
17
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
18
|
+
VectorStoresPage,
|
|
19
|
+
VectorStores,
|
|
20
|
+
type AutoFileChunkingStrategyParam,
|
|
21
|
+
type FileChunkingStrategy,
|
|
22
|
+
type FileChunkingStrategyParam,
|
|
23
|
+
type OtherFileChunkingStrategyObject,
|
|
24
|
+
type StaticFileChunkingStrategy,
|
|
25
|
+
type StaticFileChunkingStrategyObject,
|
|
26
|
+
type StaticFileChunkingStrategyParam,
|
|
27
|
+
type VectorStore,
|
|
28
|
+
type VectorStoreDeleted,
|
|
29
|
+
type VectorStoreCreateParams,
|
|
30
|
+
type VectorStoreUpdateParams,
|
|
31
|
+
type VectorStoreListParams,
|
|
32
|
+
} from './vector-stores';
|