openai 4.70.2 → 4.71.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 +16 -0
- package/index.d.mts +2 -2
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs.map +1 -1
- package/lib/AbstractChatCompletionRunner.d.ts +3 -3
- package/lib/AbstractChatCompletionRunner.d.ts.map +1 -1
- package/lib/AbstractChatCompletionRunner.js +2 -2
- package/lib/AbstractChatCompletionRunner.js.map +1 -1
- package/lib/AbstractChatCompletionRunner.mjs +2 -2
- package/lib/AbstractChatCompletionRunner.mjs.map +1 -1
- package/lib/AssistantStream.d.ts +8 -8
- package/lib/AssistantStream.d.ts.map +1 -1
- package/lib/AssistantStream.js +3 -3
- package/lib/AssistantStream.js.map +1 -1
- package/lib/AssistantStream.mjs +3 -3
- package/lib/AssistantStream.mjs.map +1 -1
- package/lib/ChatCompletionRunner.d.ts +3 -3
- package/lib/ChatCompletionRunner.d.ts.map +1 -1
- package/lib/ChatCompletionStream.d.ts +5 -5
- package/lib/ChatCompletionStream.d.ts.map +1 -1
- package/lib/ChatCompletionStream.js +3 -3
- package/lib/ChatCompletionStream.js.map +1 -1
- package/lib/ChatCompletionStream.mjs +3 -3
- package/lib/ChatCompletionStream.mjs.map +1 -1
- package/lib/ChatCompletionStreamingRunner.d.ts +4 -4
- package/lib/ChatCompletionStreamingRunner.d.ts.map +1 -1
- package/lib/EventStream.d.ts +1 -1
- package/lib/EventStream.d.ts.map +1 -1
- package/lib/EventStream.js +1 -1
- package/lib/EventStream.js.map +1 -1
- package/lib/EventStream.mjs +1 -1
- package/lib/EventStream.mjs.map +1 -1
- package/lib/chatCompletionUtils.d.ts +1 -1
- package/lib/chatCompletionUtils.d.ts.map +1 -1
- package/lib/parser.js +1 -1
- package/lib/parser.js.map +1 -1
- package/lib/parser.mjs +1 -1
- package/lib/parser.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/audio/speech.d.ts +2 -2
- package/resources/audio/transcriptions.d.ts +1 -1
- package/resources/audio/translations.d.ts +1 -1
- package/resources/beta/assistants.d.ts +18 -18
- package/resources/beta/threads/messages.d.ts +2 -2
- package/resources/beta/threads/runs/runs.d.ts +9 -9
- package/resources/beta/threads/runs/steps.d.ts +4 -4
- package/resources/beta/threads/threads.d.ts +5 -5
- package/resources/beta/vector-stores/file-batches.d.ts +2 -2
- package/resources/beta/vector-stores/files.d.ts +2 -2
- package/resources/beta/vector-stores/vector-stores.d.ts +2 -2
- package/resources/chat/chat.d.ts +2 -2
- package/resources/chat/chat.d.ts.map +1 -1
- package/resources/chat/chat.js.map +1 -1
- package/resources/chat/chat.mjs.map +1 -1
- package/resources/chat/completions.d.ts +32 -10
- package/resources/chat/completions.d.ts.map +1 -1
- package/resources/chat/index.d.ts +1 -1
- package/resources/chat/index.d.ts.map +1 -1
- package/resources/chat/index.js.map +1 -1
- package/resources/chat/index.mjs.map +1 -1
- package/resources/completions.d.ts +17 -5
- package/resources/completions.d.ts.map +1 -1
- package/resources/embeddings.d.ts +3 -3
- package/resources/files.d.ts +9 -7
- 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 +2 -5
- package/resources/files.mjs.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.ts +1 -1
- package/resources/images.d.ts +3 -3
- package/resources/moderations.d.ts +1 -1
- package/resources/uploads/uploads.d.ts +1 -1
- package/resources/uploads/uploads.js +1 -1
- package/resources/uploads/uploads.mjs +1 -1
- package/src/index.ts +2 -0
- package/src/lib/AbstractChatCompletionRunner.ts +5 -5
- package/src/lib/AssistantStream.ts +13 -13
- package/src/lib/ChatCompletionRunner.ts +3 -3
- package/src/lib/ChatCompletionStream.ts +8 -8
- package/src/lib/ChatCompletionStreamingRunner.ts +4 -4
- package/src/lib/EventStream.ts +1 -1
- package/src/lib/chatCompletionUtils.ts +1 -1
- package/src/lib/parser.ts +1 -1
- package/src/resources/audio/speech.ts +2 -2
- package/src/resources/audio/transcriptions.ts +1 -1
- package/src/resources/audio/translations.ts +1 -1
- package/src/resources/beta/assistants.ts +18 -18
- package/src/resources/beta/threads/messages.ts +2 -2
- package/src/resources/beta/threads/runs/runs.ts +9 -9
- package/src/resources/beta/threads/runs/steps.ts +4 -4
- package/src/resources/beta/threads/threads.ts +5 -5
- package/src/resources/beta/vector-stores/file-batches.ts +2 -2
- package/src/resources/beta/vector-stores/files.ts +2 -2
- package/src/resources/beta/vector-stores/vector-stores.ts +2 -2
- package/src/resources/chat/chat.ts +2 -0
- package/src/resources/chat/completions.ts +35 -9
- package/src/resources/chat/index.ts +1 -0
- package/src/resources/completions.ts +19 -5
- package/src/resources/embeddings.ts +3 -3
- package/src/resources/files.ts +10 -7
- package/src/resources/fine-tuning/jobs/jobs.ts +1 -1
- package/src/resources/images.ts +3 -3
- package/src/resources/moderations.ts +1 -1
- package/src/resources/uploads/uploads.ts +1 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -130,7 +130,7 @@ export interface TranscriptionCreateParams<ResponseFormat extends AudioAPI.Audio
|
|
|
130
130
|
/**
|
|
131
131
|
* An optional text to guide the model's style or continue a previous audio
|
|
132
132
|
* segment. The
|
|
133
|
-
* [prompt](https://platform.openai.com/docs/guides/speech-to-text
|
|
133
|
+
* [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting)
|
|
134
134
|
* should match the audio language.
|
|
135
135
|
*/
|
|
136
136
|
prompt?: string;
|
|
@@ -47,7 +47,7 @@ export interface TranslationCreateParams<ResponseFormat extends AudioAPI.AudioRe
|
|
|
47
47
|
/**
|
|
48
48
|
* An optional text to guide the model's style or continue a previous audio
|
|
49
49
|
* segment. The
|
|
50
|
-
* [prompt](https://platform.openai.com/docs/guides/speech-to-text
|
|
50
|
+
* [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting)
|
|
51
51
|
* should be in English.
|
|
52
52
|
*/
|
|
53
53
|
prompt?: string;
|
|
@@ -65,8 +65,8 @@ export interface Assistant {
|
|
|
65
65
|
* ID of the model to use. You can use the
|
|
66
66
|
* [List models](https://platform.openai.com/docs/api-reference/models/list) API to
|
|
67
67
|
* see all of your available models, or see our
|
|
68
|
-
* [Model overview](https://platform.openai.com/docs/models
|
|
69
|
-
*
|
|
68
|
+
* [Model overview](https://platform.openai.com/docs/models) for descriptions of
|
|
69
|
+
* them.
|
|
70
70
|
*/
|
|
71
71
|
model: string;
|
|
72
72
|
/**
|
|
@@ -85,8 +85,8 @@ export interface Assistant {
|
|
|
85
85
|
tools: Array<AssistantTool>;
|
|
86
86
|
/**
|
|
87
87
|
* Specifies the format that the model must output. Compatible with
|
|
88
|
-
* [GPT-4o](https://platform.openai.com/docs/models
|
|
89
|
-
* [GPT-4 Turbo](https://platform.openai.com/docs/models
|
|
88
|
+
* [GPT-4o](https://platform.openai.com/docs/models#gpt-4o),
|
|
89
|
+
* [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4),
|
|
90
90
|
* and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
|
|
91
91
|
*
|
|
92
92
|
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
|
|
@@ -477,7 +477,7 @@ export declare namespace AssistantStreamEvent {
|
|
|
477
477
|
}
|
|
478
478
|
/**
|
|
479
479
|
* Occurs when an
|
|
480
|
-
* [error](https://platform.openai.com/docs/guides/error-codes
|
|
480
|
+
* [error](https://platform.openai.com/docs/guides/error-codes#api-errors) occurs.
|
|
481
481
|
* This can happen due to an internal server error or a timeout.
|
|
482
482
|
*/
|
|
483
483
|
interface ErrorEvent {
|
|
@@ -514,7 +514,7 @@ export declare namespace FileSearchTool {
|
|
|
514
514
|
*
|
|
515
515
|
* Note that the file search tool may output fewer than `max_num_results` results.
|
|
516
516
|
* See the
|
|
517
|
-
* [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search
|
|
517
|
+
* [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings)
|
|
518
518
|
* for more information.
|
|
519
519
|
*/
|
|
520
520
|
max_num_results?: number;
|
|
@@ -523,7 +523,7 @@ export declare namespace FileSearchTool {
|
|
|
523
523
|
* will use the `auto` ranker and a score_threshold of 0.
|
|
524
524
|
*
|
|
525
525
|
* See the
|
|
526
|
-
* [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search
|
|
526
|
+
* [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings)
|
|
527
527
|
* for more information.
|
|
528
528
|
*/
|
|
529
529
|
ranking_options?: FileSearch.RankingOptions;
|
|
@@ -534,7 +534,7 @@ export declare namespace FileSearchTool {
|
|
|
534
534
|
* will use the `auto` ranker and a score_threshold of 0.
|
|
535
535
|
*
|
|
536
536
|
* See the
|
|
537
|
-
* [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search
|
|
537
|
+
* [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings)
|
|
538
538
|
* for more information.
|
|
539
539
|
*/
|
|
540
540
|
interface RankingOptions {
|
|
@@ -873,8 +873,8 @@ export interface AssistantCreateParams {
|
|
|
873
873
|
* ID of the model to use. You can use the
|
|
874
874
|
* [List models](https://platform.openai.com/docs/api-reference/models/list) API to
|
|
875
875
|
* see all of your available models, or see our
|
|
876
|
-
* [Model overview](https://platform.openai.com/docs/models
|
|
877
|
-
*
|
|
876
|
+
* [Model overview](https://platform.openai.com/docs/models) for descriptions of
|
|
877
|
+
* them.
|
|
878
878
|
*/
|
|
879
879
|
model: (string & {}) | ChatAPI.ChatModel;
|
|
880
880
|
/**
|
|
@@ -899,8 +899,8 @@ export interface AssistantCreateParams {
|
|
|
899
899
|
name?: string | null;
|
|
900
900
|
/**
|
|
901
901
|
* Specifies the format that the model must output. Compatible with
|
|
902
|
-
* [GPT-4o](https://platform.openai.com/docs/models
|
|
903
|
-
* [GPT-4 Turbo](https://platform.openai.com/docs/models
|
|
902
|
+
* [GPT-4o](https://platform.openai.com/docs/models#gpt-4o),
|
|
903
|
+
* [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4),
|
|
904
904
|
* and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
|
|
905
905
|
*
|
|
906
906
|
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
|
|
@@ -1029,8 +1029,8 @@ export interface AssistantUpdateParams {
|
|
|
1029
1029
|
* ID of the model to use. You can use the
|
|
1030
1030
|
* [List models](https://platform.openai.com/docs/api-reference/models/list) API to
|
|
1031
1031
|
* see all of your available models, or see our
|
|
1032
|
-
* [Model overview](https://platform.openai.com/docs/models
|
|
1033
|
-
*
|
|
1032
|
+
* [Model overview](https://platform.openai.com/docs/models) for descriptions of
|
|
1033
|
+
* them.
|
|
1034
1034
|
*/
|
|
1035
1035
|
model?: string;
|
|
1036
1036
|
/**
|
|
@@ -1039,8 +1039,8 @@ export interface AssistantUpdateParams {
|
|
|
1039
1039
|
name?: string | null;
|
|
1040
1040
|
/**
|
|
1041
1041
|
* Specifies the format that the model must output. Compatible with
|
|
1042
|
-
* [GPT-4o](https://platform.openai.com/docs/models
|
|
1043
|
-
* [GPT-4 Turbo](https://platform.openai.com/docs/models
|
|
1042
|
+
* [GPT-4o](https://platform.openai.com/docs/models#gpt-4o),
|
|
1043
|
+
* [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4),
|
|
1044
1044
|
* and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
|
|
1045
1045
|
*
|
|
1046
1046
|
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
|
|
@@ -1124,8 +1124,8 @@ export interface AssistantListParams extends CursorPageParams {
|
|
|
1124
1124
|
/**
|
|
1125
1125
|
* A cursor for use in pagination. `before` is an object ID that defines your place
|
|
1126
1126
|
* in the list. For instance, if you make a list request and receive 100 objects,
|
|
1127
|
-
*
|
|
1128
|
-
* fetch the previous page of the list.
|
|
1127
|
+
* starting with obj_foo, your subsequent call can include before=obj_foo in order
|
|
1128
|
+
* to fetch the previous page of the list.
|
|
1129
1129
|
*/
|
|
1130
1130
|
before?: string;
|
|
1131
1131
|
/**
|
|
@@ -538,8 +538,8 @@ export interface MessageListParams extends CursorPageParams {
|
|
|
538
538
|
/**
|
|
539
539
|
* A cursor for use in pagination. `before` is an object ID that defines your place
|
|
540
540
|
* in the list. For instance, if you make a list request and receive 100 objects,
|
|
541
|
-
*
|
|
542
|
-
* fetch the previous page of the list.
|
|
541
|
+
* starting with obj_foo, your subsequent call can include before=obj_foo in order
|
|
542
|
+
* to fetch the previous page of the list.
|
|
543
543
|
*/
|
|
544
544
|
before?: string;
|
|
545
545
|
/**
|
|
@@ -204,7 +204,7 @@ export interface Run {
|
|
|
204
204
|
object: 'thread.run';
|
|
205
205
|
/**
|
|
206
206
|
* Whether to enable
|
|
207
|
-
* [parallel function calling](https://platform.openai.com/docs/guides/function-calling
|
|
207
|
+
* [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling)
|
|
208
208
|
* during tool use.
|
|
209
209
|
*/
|
|
210
210
|
parallel_tool_calls: boolean;
|
|
@@ -215,8 +215,8 @@ export interface Run {
|
|
|
215
215
|
required_action: Run.RequiredAction | null;
|
|
216
216
|
/**
|
|
217
217
|
* Specifies the format that the model must output. Compatible with
|
|
218
|
-
* [GPT-4o](https://platform.openai.com/docs/models
|
|
219
|
-
* [GPT-4 Turbo](https://platform.openai.com/docs/models
|
|
218
|
+
* [GPT-4o](https://platform.openai.com/docs/models#gpt-4o),
|
|
219
|
+
* [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4),
|
|
220
220
|
* and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
|
|
221
221
|
*
|
|
222
222
|
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
|
|
@@ -394,7 +394,7 @@ export interface RunCreateParamsBase {
|
|
|
394
394
|
* search result content.
|
|
395
395
|
*
|
|
396
396
|
* See the
|
|
397
|
-
* [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search
|
|
397
|
+
* [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings)
|
|
398
398
|
* for more information.
|
|
399
399
|
*/
|
|
400
400
|
include?: Array<StepsAPI.RunStepInclude>;
|
|
@@ -447,14 +447,14 @@ export interface RunCreateParamsBase {
|
|
|
447
447
|
model?: (string & {}) | ChatAPI.ChatModel | null;
|
|
448
448
|
/**
|
|
449
449
|
* Body param: Whether to enable
|
|
450
|
-
* [parallel function calling](https://platform.openai.com/docs/guides/function-calling
|
|
450
|
+
* [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling)
|
|
451
451
|
* during tool use.
|
|
452
452
|
*/
|
|
453
453
|
parallel_tool_calls?: boolean;
|
|
454
454
|
/**
|
|
455
455
|
* Body param: Specifies the format that the model must output. Compatible with
|
|
456
|
-
* [GPT-4o](https://platform.openai.com/docs/models
|
|
457
|
-
* [GPT-4 Turbo](https://platform.openai.com/docs/models
|
|
456
|
+
* [GPT-4o](https://platform.openai.com/docs/models#gpt-4o),
|
|
457
|
+
* [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4),
|
|
458
458
|
* and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
|
|
459
459
|
*
|
|
460
460
|
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
|
|
@@ -614,8 +614,8 @@ export interface RunListParams extends CursorPageParams {
|
|
|
614
614
|
/**
|
|
615
615
|
* A cursor for use in pagination. `before` is an object ID that defines your place
|
|
616
616
|
* in the list. For instance, if you make a list request and receive 100 objects,
|
|
617
|
-
*
|
|
618
|
-
* fetch the previous page of the list.
|
|
617
|
+
* starting with obj_foo, your subsequent call can include before=obj_foo in order
|
|
618
|
+
* to fetch the previous page of the list.
|
|
619
619
|
*/
|
|
620
620
|
before?: string;
|
|
621
621
|
/**
|
|
@@ -557,7 +557,7 @@ export interface StepRetrieveParams {
|
|
|
557
557
|
* to fetch the file search result content.
|
|
558
558
|
*
|
|
559
559
|
* See the
|
|
560
|
-
* [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search
|
|
560
|
+
* [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings)
|
|
561
561
|
* for more information.
|
|
562
562
|
*/
|
|
563
563
|
include?: Array<RunStepInclude>;
|
|
@@ -566,8 +566,8 @@ export interface StepListParams extends CursorPageParams {
|
|
|
566
566
|
/**
|
|
567
567
|
* A cursor for use in pagination. `before` is an object ID that defines your place
|
|
568
568
|
* in the list. For instance, if you make a list request and receive 100 objects,
|
|
569
|
-
*
|
|
570
|
-
* fetch the previous page of the list.
|
|
569
|
+
* starting with obj_foo, your subsequent call can include before=obj_foo in order
|
|
570
|
+
* to fetch the previous page of the list.
|
|
571
571
|
*/
|
|
572
572
|
before?: string;
|
|
573
573
|
/**
|
|
@@ -576,7 +576,7 @@ export interface StepListParams extends CursorPageParams {
|
|
|
576
576
|
* to fetch the file search result content.
|
|
577
577
|
*
|
|
578
578
|
* See the
|
|
579
|
-
* [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search
|
|
579
|
+
* [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings)
|
|
580
580
|
* for more information.
|
|
581
581
|
*/
|
|
582
582
|
include?: Array<RunStepInclude>;
|
|
@@ -53,8 +53,8 @@ export declare class Threads extends APIResource {
|
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
55
|
* Specifies the format that the model must output. Compatible with
|
|
56
|
-
* [GPT-4o](https://platform.openai.com/docs/models
|
|
57
|
-
* [GPT-4 Turbo](https://platform.openai.com/docs/models
|
|
56
|
+
* [GPT-4o](https://platform.openai.com/docs/models#gpt-4o),
|
|
57
|
+
* [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4),
|
|
58
58
|
* and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
|
|
59
59
|
*
|
|
60
60
|
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
|
|
@@ -388,14 +388,14 @@ export interface ThreadCreateAndRunParamsBase {
|
|
|
388
388
|
model?: (string & {}) | ChatAPI.ChatModel | null;
|
|
389
389
|
/**
|
|
390
390
|
* Whether to enable
|
|
391
|
-
* [parallel function calling](https://platform.openai.com/docs/guides/function-calling
|
|
391
|
+
* [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling)
|
|
392
392
|
* during tool use.
|
|
393
393
|
*/
|
|
394
394
|
parallel_tool_calls?: boolean;
|
|
395
395
|
/**
|
|
396
396
|
* Specifies the format that the model must output. Compatible with
|
|
397
|
-
* [GPT-4o](https://platform.openai.com/docs/models
|
|
398
|
-
* [GPT-4 Turbo](https://platform.openai.com/docs/models
|
|
397
|
+
* [GPT-4o](https://platform.openai.com/docs/models#gpt-4o),
|
|
398
|
+
* [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4),
|
|
399
399
|
* and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
|
|
400
400
|
*
|
|
401
401
|
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
|
|
@@ -124,8 +124,8 @@ export interface FileBatchListFilesParams extends CursorPageParams {
|
|
|
124
124
|
/**
|
|
125
125
|
* A cursor for use in pagination. `before` is an object ID that defines your place
|
|
126
126
|
* in the list. For instance, if you make a list request and receive 100 objects,
|
|
127
|
-
*
|
|
128
|
-
* fetch the previous page of the list.
|
|
127
|
+
* starting with obj_foo, your subsequent call can include before=obj_foo in order
|
|
128
|
+
* to fetch the previous page of the list.
|
|
129
129
|
*/
|
|
130
130
|
before?: string;
|
|
131
131
|
/**
|
|
@@ -139,8 +139,8 @@ export interface FileListParams extends CursorPageParams {
|
|
|
139
139
|
/**
|
|
140
140
|
* A cursor for use in pagination. `before` is an object ID that defines your place
|
|
141
141
|
* in the list. For instance, if you make a list request and receive 100 objects,
|
|
142
|
-
*
|
|
143
|
-
* fetch the previous page of the list.
|
|
142
|
+
* starting with obj_foo, your subsequent call can include before=obj_foo in order
|
|
143
|
+
* to fetch the previous page of the list.
|
|
144
144
|
*/
|
|
145
145
|
before?: string;
|
|
146
146
|
/**
|
|
@@ -265,8 +265,8 @@ export interface VectorStoreListParams extends CursorPageParams {
|
|
|
265
265
|
/**
|
|
266
266
|
* A cursor for use in pagination. `before` is an object ID that defines your place
|
|
267
267
|
* in the list. For instance, if you make a list request and receive 100 objects,
|
|
268
|
-
*
|
|
269
|
-
* fetch the previous page of the list.
|
|
268
|
+
* starting with obj_foo, your subsequent call can include before=obj_foo in order
|
|
269
|
+
* to fetch the previous page of the list.
|
|
270
270
|
*/
|
|
271
271
|
before?: string;
|
|
272
272
|
/**
|
package/resources/chat/chat.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
2
|
import * as CompletionsAPI from "./completions.js";
|
|
3
|
-
import { ChatCompletion, ChatCompletionAssistantMessageParam, ChatCompletionAudio, ChatCompletionAudioParam, ChatCompletionChunk, ChatCompletionContentPart, ChatCompletionContentPartImage, ChatCompletionContentPartInputAudio, ChatCompletionContentPartRefusal, ChatCompletionContentPartText, ChatCompletionCreateParams, ChatCompletionCreateParamsNonStreaming, ChatCompletionCreateParamsStreaming, ChatCompletionFunctionCallOption, ChatCompletionFunctionMessageParam, ChatCompletionMessage, ChatCompletionMessageParam, ChatCompletionMessageToolCall, ChatCompletionModality, ChatCompletionNamedToolChoice, ChatCompletionRole, ChatCompletionStreamOptions, ChatCompletionSystemMessageParam, ChatCompletionTokenLogprob, ChatCompletionTool, ChatCompletionToolChoiceOption, ChatCompletionToolMessageParam, ChatCompletionUserMessageParam, CompletionCreateParams, CompletionCreateParamsNonStreaming, CompletionCreateParamsStreaming, Completions, CreateChatCompletionRequestMessage } from "./completions.js";
|
|
3
|
+
import { ChatCompletion, ChatCompletionAssistantMessageParam, ChatCompletionAudio, ChatCompletionAudioParam, ChatCompletionChunk, ChatCompletionContentPart, ChatCompletionContentPartImage, ChatCompletionContentPartInputAudio, ChatCompletionContentPartRefusal, ChatCompletionContentPartText, ChatCompletionCreateParams, ChatCompletionCreateParamsNonStreaming, ChatCompletionCreateParamsStreaming, ChatCompletionFunctionCallOption, ChatCompletionFunctionMessageParam, ChatCompletionMessage, ChatCompletionMessageParam, ChatCompletionMessageToolCall, ChatCompletionModality, ChatCompletionNamedToolChoice, ChatCompletionPredictionContent, ChatCompletionRole, ChatCompletionStreamOptions, ChatCompletionSystemMessageParam, ChatCompletionTokenLogprob, ChatCompletionTool, ChatCompletionToolChoiceOption, ChatCompletionToolMessageParam, ChatCompletionUserMessageParam, CompletionCreateParams, CompletionCreateParamsNonStreaming, CompletionCreateParamsStreaming, Completions, CreateChatCompletionRequestMessage } from "./completions.js";
|
|
4
4
|
export declare class Chat extends APIResource {
|
|
5
5
|
completions: CompletionsAPI.Completions;
|
|
6
6
|
}
|
|
7
7
|
export type ChatModel = 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'gpt-4o' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-realtime-preview' | 'gpt-4o-realtime-preview-2024-10-01' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-10-01' | 'chatgpt-4o-latest' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613';
|
|
8
8
|
export declare namespace Chat {
|
|
9
9
|
export { type ChatModel as ChatModel };
|
|
10
|
-
export { Completions as Completions, type ChatCompletion as ChatCompletion, type ChatCompletionAssistantMessageParam as ChatCompletionAssistantMessageParam, type ChatCompletionAudio as ChatCompletionAudio, type ChatCompletionAudioParam as ChatCompletionAudioParam, type ChatCompletionChunk as ChatCompletionChunk, type ChatCompletionContentPart as ChatCompletionContentPart, type ChatCompletionContentPartImage as ChatCompletionContentPartImage, type ChatCompletionContentPartInputAudio as ChatCompletionContentPartInputAudio, type ChatCompletionContentPartRefusal as ChatCompletionContentPartRefusal, type ChatCompletionContentPartText as ChatCompletionContentPartText, type ChatCompletionFunctionCallOption as ChatCompletionFunctionCallOption, type ChatCompletionFunctionMessageParam as ChatCompletionFunctionMessageParam, type ChatCompletionMessage as ChatCompletionMessage, type ChatCompletionMessageParam as ChatCompletionMessageParam, type ChatCompletionMessageToolCall as ChatCompletionMessageToolCall, type ChatCompletionModality as ChatCompletionModality, type ChatCompletionNamedToolChoice as ChatCompletionNamedToolChoice, type ChatCompletionRole as ChatCompletionRole, type ChatCompletionStreamOptions as ChatCompletionStreamOptions, type ChatCompletionSystemMessageParam as ChatCompletionSystemMessageParam, type ChatCompletionTokenLogprob as ChatCompletionTokenLogprob, type ChatCompletionTool as ChatCompletionTool, type ChatCompletionToolChoiceOption as ChatCompletionToolChoiceOption, type ChatCompletionToolMessageParam as ChatCompletionToolMessageParam, type ChatCompletionUserMessageParam as ChatCompletionUserMessageParam, type CreateChatCompletionRequestMessage as CreateChatCompletionRequestMessage, type ChatCompletionCreateParams as ChatCompletionCreateParams, type CompletionCreateParams as CompletionCreateParams, type ChatCompletionCreateParamsNonStreaming as ChatCompletionCreateParamsNonStreaming, type CompletionCreateParamsNonStreaming as CompletionCreateParamsNonStreaming, type ChatCompletionCreateParamsStreaming as ChatCompletionCreateParamsStreaming, type CompletionCreateParamsStreaming as CompletionCreateParamsStreaming, };
|
|
10
|
+
export { Completions as Completions, type ChatCompletion as ChatCompletion, type ChatCompletionAssistantMessageParam as ChatCompletionAssistantMessageParam, type ChatCompletionAudio as ChatCompletionAudio, type ChatCompletionAudioParam as ChatCompletionAudioParam, type ChatCompletionChunk as ChatCompletionChunk, type ChatCompletionContentPart as ChatCompletionContentPart, type ChatCompletionContentPartImage as ChatCompletionContentPartImage, type ChatCompletionContentPartInputAudio as ChatCompletionContentPartInputAudio, type ChatCompletionContentPartRefusal as ChatCompletionContentPartRefusal, type ChatCompletionContentPartText as ChatCompletionContentPartText, type ChatCompletionFunctionCallOption as ChatCompletionFunctionCallOption, type ChatCompletionFunctionMessageParam as ChatCompletionFunctionMessageParam, type ChatCompletionMessage as ChatCompletionMessage, type ChatCompletionMessageParam as ChatCompletionMessageParam, type ChatCompletionMessageToolCall as ChatCompletionMessageToolCall, type ChatCompletionModality as ChatCompletionModality, type ChatCompletionNamedToolChoice as ChatCompletionNamedToolChoice, type ChatCompletionPredictionContent as ChatCompletionPredictionContent, type ChatCompletionRole as ChatCompletionRole, type ChatCompletionStreamOptions as ChatCompletionStreamOptions, type ChatCompletionSystemMessageParam as ChatCompletionSystemMessageParam, type ChatCompletionTokenLogprob as ChatCompletionTokenLogprob, type ChatCompletionTool as ChatCompletionTool, type ChatCompletionToolChoiceOption as ChatCompletionToolChoiceOption, type ChatCompletionToolMessageParam as ChatCompletionToolMessageParam, type ChatCompletionUserMessageParam as ChatCompletionUserMessageParam, type CreateChatCompletionRequestMessage as CreateChatCompletionRequestMessage, type ChatCompletionCreateParams as ChatCompletionCreateParams, type CompletionCreateParams as CompletionCreateParams, type ChatCompletionCreateParamsNonStreaming as ChatCompletionCreateParamsNonStreaming, type CompletionCreateParamsNonStreaming as CompletionCreateParamsNonStreaming, type ChatCompletionCreateParamsStreaming as ChatCompletionCreateParamsStreaming, type CompletionCreateParamsStreaming as CompletionCreateParamsStreaming, };
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=chat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/resources/chat/chat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,cAAc,MAAM,eAAe,CAAC;AAChD,OAAO,EACL,cAAc,EACd,mCAAmC,EACnC,mBAAmB,EACnB,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,EACzB,8BAA8B,EAC9B,mCAAmC,EACnC,gCAAgC,EAChC,6BAA6B,EAC7B,0BAA0B,EAC1B,sCAAsC,EACtC,mCAAmC,EACnC,gCAAgC,EAChC,kCAAkC,EAClC,qBAAqB,EACrB,0BAA0B,EAC1B,6BAA6B,EAC7B,sBAAsB,EACtB,6BAA6B,EAC7B,kBAAkB,EAClB,2BAA2B,EAC3B,gCAAgC,EAChC,0BAA0B,EAC1B,kBAAkB,EAClB,8BAA8B,EAC9B,8BAA8B,EAC9B,8BAA8B,EAC9B,sBAAsB,EACtB,kCAAkC,EAClC,+BAA+B,EAC/B,WAAW,EACX,kCAAkC,EACnC,MAAM,eAAe,CAAC;AAEvB,qBAAa,IAAK,SAAQ,WAAW;IACnC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;CACxF;AAED,MAAM,MAAM,SAAS,GACjB,YAAY,GACZ,uBAAuB,GACvB,SAAS,GACT,oBAAoB,GACpB,QAAQ,GACR,mBAAmB,GACnB,mBAAmB,GACnB,yBAAyB,GACzB,oCAAoC,GACpC,sBAAsB,GACtB,iCAAiC,GACjC,mBAAmB,GACnB,aAAa,GACb,wBAAwB,GACxB,aAAa,GACb,wBAAwB,GACxB,oBAAoB,GACpB,qBAAqB,GACrB,oBAAoB,GACpB,sBAAsB,GACtB,OAAO,GACP,YA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rE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/resources/chat/chat.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,iEAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/resources/chat/chat.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,iEAAgD;AAChD,kDAmCuB;AAEvB,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CAAA;AAFD,oBAEC;AAqCD,IAAI,CAAC,WAAW,GAAG,yBAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.mjs","sourceRoot":"","sources":["../../src/resources/chat/chat.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,
|
|
1
|
+
{"version":3,"file":"chat.mjs","sourceRoot":"","sources":["../../src/resources/chat/chat.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAiCL,WAAW,GAEZ;AAED,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CAAA;AAqCD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC"}
|
|
@@ -384,7 +384,7 @@ export declare namespace ChatCompletionContentPartImage {
|
|
|
384
384
|
url: string;
|
|
385
385
|
/**
|
|
386
386
|
* Specifies the detail level of the image. Learn more in the
|
|
387
|
-
* [Vision guide](https://platform.openai.com/docs/guides/vision
|
|
387
|
+
* [Vision guide](https://platform.openai.com/docs/guides/vision#low-or-high-fidelity-image-understanding).
|
|
388
388
|
*/
|
|
389
389
|
detail?: 'auto' | 'low' | 'high';
|
|
390
390
|
}
|
|
@@ -566,6 +566,23 @@ export declare namespace ChatCompletionNamedToolChoice {
|
|
|
566
566
|
name: string;
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
+
/**
|
|
570
|
+
* Static predicted output content, such as the content of a text file that is
|
|
571
|
+
* being regenerated.
|
|
572
|
+
*/
|
|
573
|
+
export interface ChatCompletionPredictionContent {
|
|
574
|
+
/**
|
|
575
|
+
* The content that should be matched when generating a model response. If
|
|
576
|
+
* generated tokens would match this content, the entire model response can be
|
|
577
|
+
* returned much more quickly.
|
|
578
|
+
*/
|
|
579
|
+
content: string | Array<ChatCompletionContentPartText>;
|
|
580
|
+
/**
|
|
581
|
+
* The type of the predicted content you want to provide. This type is currently
|
|
582
|
+
* always `content`.
|
|
583
|
+
*/
|
|
584
|
+
type: 'content';
|
|
585
|
+
}
|
|
569
586
|
/**
|
|
570
587
|
* The role of the author of a message
|
|
571
588
|
*/
|
|
@@ -708,7 +725,7 @@ export interface ChatCompletionCreateParamsBase {
|
|
|
708
725
|
messages: Array<ChatCompletionMessageParam>;
|
|
709
726
|
/**
|
|
710
727
|
* ID of the model to use. See the
|
|
711
|
-
* [model endpoint compatibility](https://platform.openai.com/docs/models
|
|
728
|
+
* [model endpoint compatibility](https://platform.openai.com/docs/models#model-endpoint-compatibility)
|
|
712
729
|
* table for details on which models work with the Chat API.
|
|
713
730
|
*/
|
|
714
731
|
model: (string & {}) | ChatAPI.ChatModel;
|
|
@@ -723,7 +740,7 @@ export interface ChatCompletionCreateParamsBase {
|
|
|
723
740
|
* existing frequency in the text so far, decreasing the model's likelihood to
|
|
724
741
|
* repeat the same line verbatim.
|
|
725
742
|
*
|
|
726
|
-
* [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation
|
|
743
|
+
* [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation)
|
|
727
744
|
*/
|
|
728
745
|
frequency_penalty?: number | null;
|
|
729
746
|
/**
|
|
@@ -804,23 +821,28 @@ export interface ChatCompletionCreateParamsBase {
|
|
|
804
821
|
n?: number | null;
|
|
805
822
|
/**
|
|
806
823
|
* Whether to enable
|
|
807
|
-
* [parallel function calling](https://platform.openai.com/docs/guides/function-calling
|
|
824
|
+
* [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling)
|
|
808
825
|
* during tool use.
|
|
809
826
|
*/
|
|
810
827
|
parallel_tool_calls?: boolean;
|
|
828
|
+
/**
|
|
829
|
+
* Static predicted output content, such as the content of a text file that is
|
|
830
|
+
* being regenerated.
|
|
831
|
+
*/
|
|
832
|
+
prediction?: ChatCompletionPredictionContent | null;
|
|
811
833
|
/**
|
|
812
834
|
* Number between -2.0 and 2.0. Positive values penalize new tokens based on
|
|
813
835
|
* whether they appear in the text so far, increasing the model's likelihood to
|
|
814
836
|
* talk about new topics.
|
|
815
837
|
*
|
|
816
|
-
* [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation
|
|
838
|
+
* [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation)
|
|
817
839
|
*/
|
|
818
840
|
presence_penalty?: number | null;
|
|
819
841
|
/**
|
|
820
842
|
* An object specifying the format that the model must output. Compatible with
|
|
821
|
-
* [GPT-4o](https://platform.openai.com/docs/models
|
|
822
|
-
* [GPT-4o mini](https://platform.openai.com/docs/models
|
|
823
|
-
* [GPT-4 Turbo](https://platform.openai.com/docs/models
|
|
843
|
+
* [GPT-4o](https://platform.openai.com/docs/models#gpt-4o),
|
|
844
|
+
* [GPT-4o mini](https://platform.openai.com/docs/models#gpt-4o-mini),
|
|
845
|
+
* [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4) and
|
|
824
846
|
* all GPT-3.5 Turbo models newer than `gpt-3.5-turbo-1106`.
|
|
825
847
|
*
|
|
826
848
|
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
|
|
@@ -931,7 +953,7 @@ export interface ChatCompletionCreateParamsBase {
|
|
|
931
953
|
/**
|
|
932
954
|
* A unique identifier representing your end-user, which can help OpenAI to monitor
|
|
933
955
|
* and detect abuse.
|
|
934
|
-
* [Learn more](https://platform.openai.com/docs/guides/safety-best-practices
|
|
956
|
+
* [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
|
|
935
957
|
*/
|
|
936
958
|
user?: string;
|
|
937
959
|
}
|
|
@@ -999,6 +1021,6 @@ export interface ChatCompletionCreateParamsStreaming extends ChatCompletionCreat
|
|
|
999
1021
|
*/
|
|
1000
1022
|
export type CompletionCreateParamsStreaming = ChatCompletionCreateParamsStreaming;
|
|
1001
1023
|
export declare namespace Completions {
|
|
1002
|
-
export { type ChatCompletion as ChatCompletion, type ChatCompletionAssistantMessageParam as ChatCompletionAssistantMessageParam, type ChatCompletionAudio as ChatCompletionAudio, type ChatCompletionAudioParam as ChatCompletionAudioParam, type ChatCompletionChunk as ChatCompletionChunk, type ChatCompletionContentPart as ChatCompletionContentPart, type ChatCompletionContentPartImage as ChatCompletionContentPartImage, type ChatCompletionContentPartInputAudio as ChatCompletionContentPartInputAudio, type ChatCompletionContentPartRefusal as ChatCompletionContentPartRefusal, type ChatCompletionContentPartText as ChatCompletionContentPartText, type ChatCompletionFunctionCallOption as ChatCompletionFunctionCallOption, type ChatCompletionFunctionMessageParam as ChatCompletionFunctionMessageParam, type ChatCompletionMessage as ChatCompletionMessage, type ChatCompletionMessageParam as ChatCompletionMessageParam, type ChatCompletionMessageToolCall as ChatCompletionMessageToolCall, type ChatCompletionModality as ChatCompletionModality, type ChatCompletionNamedToolChoice as ChatCompletionNamedToolChoice, type ChatCompletionRole as ChatCompletionRole, type ChatCompletionStreamOptions as ChatCompletionStreamOptions, type ChatCompletionSystemMessageParam as ChatCompletionSystemMessageParam, type ChatCompletionTokenLogprob as ChatCompletionTokenLogprob, type ChatCompletionTool as ChatCompletionTool, type ChatCompletionToolChoiceOption as ChatCompletionToolChoiceOption, type ChatCompletionToolMessageParam as ChatCompletionToolMessageParam, type ChatCompletionUserMessageParam as ChatCompletionUserMessageParam, type CreateChatCompletionRequestMessage as CreateChatCompletionRequestMessage, type ChatCompletionCreateParams as ChatCompletionCreateParams, type CompletionCreateParams as CompletionCreateParams, type ChatCompletionCreateParamsNonStreaming as ChatCompletionCreateParamsNonStreaming, type CompletionCreateParamsNonStreaming as CompletionCreateParamsNonStreaming, type ChatCompletionCreateParamsStreaming as ChatCompletionCreateParamsStreaming, type CompletionCreateParamsStreaming as CompletionCreateParamsStreaming, };
|
|
1024
|
+
export { type ChatCompletion as ChatCompletion, type ChatCompletionAssistantMessageParam as ChatCompletionAssistantMessageParam, type ChatCompletionAudio as ChatCompletionAudio, type ChatCompletionAudioParam as ChatCompletionAudioParam, type ChatCompletionChunk as ChatCompletionChunk, type ChatCompletionContentPart as ChatCompletionContentPart, type ChatCompletionContentPartImage as ChatCompletionContentPartImage, type ChatCompletionContentPartInputAudio as ChatCompletionContentPartInputAudio, type ChatCompletionContentPartRefusal as ChatCompletionContentPartRefusal, type ChatCompletionContentPartText as ChatCompletionContentPartText, type ChatCompletionFunctionCallOption as ChatCompletionFunctionCallOption, type ChatCompletionFunctionMessageParam as ChatCompletionFunctionMessageParam, type ChatCompletionMessage as ChatCompletionMessage, type ChatCompletionMessageParam as ChatCompletionMessageParam, type ChatCompletionMessageToolCall as ChatCompletionMessageToolCall, type ChatCompletionModality as ChatCompletionModality, type ChatCompletionNamedToolChoice as ChatCompletionNamedToolChoice, type ChatCompletionPredictionContent as ChatCompletionPredictionContent, type ChatCompletionRole as ChatCompletionRole, type ChatCompletionStreamOptions as ChatCompletionStreamOptions, type ChatCompletionSystemMessageParam as ChatCompletionSystemMessageParam, type ChatCompletionTokenLogprob as ChatCompletionTokenLogprob, type ChatCompletionTool as ChatCompletionTool, type ChatCompletionToolChoiceOption as ChatCompletionToolChoiceOption, type ChatCompletionToolMessageParam as ChatCompletionToolMessageParam, type ChatCompletionUserMessageParam as ChatCompletionUserMessageParam, type CreateChatCompletionRequestMessage as CreateChatCompletionRequestMessage, type ChatCompletionCreateParams as ChatCompletionCreateParams, type CompletionCreateParams as CompletionCreateParams, type ChatCompletionCreateParamsNonStreaming as ChatCompletionCreateParamsNonStreaming, type CompletionCreateParamsNonStreaming as CompletionCreateParamsNonStreaming, type ChatCompletionCreateParamsStreaming as ChatCompletionCreateParamsStreaming, type CompletionCreateParamsStreaming as CompletionCreateParamsStreaming, };
|
|
1003
1025
|
}
|
|
1004
1026
|
//# sourceMappingURL=completions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completions.d.ts","sourceRoot":"","sources":["../../src/resources/chat/completions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,kBAAkB,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,cAAc,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,OAAO,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,i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,EACzE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Chat, type ChatModel } from "./chat.js";
|
|
2
|
-
export { Completions, type ChatCompletion, type ChatCompletionAssistantMessageParam, type ChatCompletionAudio, type ChatCompletionAudioParam, type ChatCompletionChunk, type ChatCompletionContentPart, type ChatCompletionContentPartImage, type ChatCompletionContentPartInputAudio, type ChatCompletionContentPartRefusal, type ChatCompletionContentPartText, type ChatCompletionFunctionCallOption, type ChatCompletionFunctionMessageParam, type ChatCompletionMessage, type ChatCompletionMessageParam, type ChatCompletionMessageToolCall, type ChatCompletionModality, type ChatCompletionNamedToolChoice, type ChatCompletionRole, type ChatCompletionStreamOptions, type ChatCompletionSystemMessageParam, type ChatCompletionTokenLogprob, type ChatCompletionTool, type ChatCompletionToolChoiceOption, type ChatCompletionToolMessageParam, type ChatCompletionUserMessageParam, type CreateChatCompletionRequestMessage, type ChatCompletionCreateParams, type CompletionCreateParams, type ChatCompletionCreateParamsNonStreaming, type CompletionCreateParamsNonStreaming, type ChatCompletionCreateParamsStreaming, type CompletionCreateParamsStreaming, } from "./completions.js";
|
|
2
|
+
export { Completions, type ChatCompletion, type ChatCompletionAssistantMessageParam, type ChatCompletionAudio, type ChatCompletionAudioParam, type ChatCompletionChunk, type ChatCompletionContentPart, type ChatCompletionContentPartImage, type ChatCompletionContentPartInputAudio, type ChatCompletionContentPartRefusal, type ChatCompletionContentPartText, type ChatCompletionFunctionCallOption, type ChatCompletionFunctionMessageParam, type ChatCompletionMessage, type ChatCompletionMessageParam, type ChatCompletionMessageToolCall, type ChatCompletionModality, type ChatCompletionNamedToolChoice, type ChatCompletionPredictionContent, type ChatCompletionRole, type ChatCompletionStreamOptions, type ChatCompletionSystemMessageParam, type ChatCompletionTokenLogprob, type ChatCompletionTool, type ChatCompletionToolChoiceOption, type ChatCompletionToolMessageParam, type ChatCompletionUserMessageParam, type CreateChatCompletionRequestMessage, type ChatCompletionCreateParams, type CompletionCreateParams, type ChatCompletionCreateParamsNonStreaming, type CompletionCreateParamsNonStreaming, type ChatCompletionCreateParamsStreaming, type CompletionCreateParamsStreaming, } from "./completions.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/chat/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EACL,WAAW,EACX,KAAK,cAAc,EACnB,KAAK,mCAAmC,EACxC,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,K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KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,sCAAsC,EAC3C,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EACxC,KAAK,+BAA+B,GACrC,MAAM,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/chat/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA8C;AAArC,4FAAA,IAAI,OAAA;AACb,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/chat/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA8C;AAArC,4FAAA,IAAI,OAAA;AACb,gDAmCuB;AAlCrB,0GAAA,WAAW,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/chat/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAkB;OACxB,EACL,WAAW,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/chat/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAkB;OACxB,EACL,WAAW,GAkCZ"}
|
|
@@ -99,6 +99,11 @@ export declare namespace CompletionUsage {
|
|
|
99
99
|
* Breakdown of tokens used in a completion.
|
|
100
100
|
*/
|
|
101
101
|
interface CompletionTokensDetails {
|
|
102
|
+
/**
|
|
103
|
+
* When using Predicted Outputs, the number of tokens in the prediction that
|
|
104
|
+
* appeared in the completion.
|
|
105
|
+
*/
|
|
106
|
+
accepted_prediction_tokens?: number;
|
|
102
107
|
/**
|
|
103
108
|
* Audio input tokens generated by the model.
|
|
104
109
|
*/
|
|
@@ -107,6 +112,13 @@ export declare namespace CompletionUsage {
|
|
|
107
112
|
* Tokens generated by the model for reasoning.
|
|
108
113
|
*/
|
|
109
114
|
reasoning_tokens?: number;
|
|
115
|
+
/**
|
|
116
|
+
* When using Predicted Outputs, the number of tokens in the prediction that did
|
|
117
|
+
* not appear in the completion. However, like reasoning tokens, these tokens are
|
|
118
|
+
* still counted in the total completion tokens for purposes of billing, output,
|
|
119
|
+
* and context window limits.
|
|
120
|
+
*/
|
|
121
|
+
rejected_prediction_tokens?: number;
|
|
110
122
|
}
|
|
111
123
|
/**
|
|
112
124
|
* Breakdown of tokens used in the prompt.
|
|
@@ -128,8 +140,8 @@ export interface CompletionCreateParamsBase {
|
|
|
128
140
|
* ID of the model to use. You can use the
|
|
129
141
|
* [List models](https://platform.openai.com/docs/api-reference/models/list) API to
|
|
130
142
|
* see all of your available models, or see our
|
|
131
|
-
* [Model overview](https://platform.openai.com/docs/models
|
|
132
|
-
*
|
|
143
|
+
* [Model overview](https://platform.openai.com/docs/models) for descriptions of
|
|
144
|
+
* them.
|
|
133
145
|
*/
|
|
134
146
|
model: (string & {}) | 'gpt-3.5-turbo-instruct' | 'davinci-002' | 'babbage-002';
|
|
135
147
|
/**
|
|
@@ -162,7 +174,7 @@ export interface CompletionCreateParamsBase {
|
|
|
162
174
|
* existing frequency in the text so far, decreasing the model's likelihood to
|
|
163
175
|
* repeat the same line verbatim.
|
|
164
176
|
*
|
|
165
|
-
* [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation
|
|
177
|
+
* [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation)
|
|
166
178
|
*/
|
|
167
179
|
frequency_penalty?: number | null;
|
|
168
180
|
/**
|
|
@@ -212,7 +224,7 @@ export interface CompletionCreateParamsBase {
|
|
|
212
224
|
* whether they appear in the text so far, increasing the model's likelihood to
|
|
213
225
|
* talk about new topics.
|
|
214
226
|
*
|
|
215
|
-
* [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation
|
|
227
|
+
* [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation)
|
|
216
228
|
*/
|
|
217
229
|
presence_penalty?: number | null;
|
|
218
230
|
/**
|
|
@@ -267,7 +279,7 @@ export interface CompletionCreateParamsBase {
|
|
|
267
279
|
/**
|
|
268
280
|
* A unique identifier representing your end-user, which can help OpenAI to monitor
|
|
269
281
|
* and detect abuse.
|
|
270
|
-
* [Learn more](https://platform.openai.com/docs/guides/safety-best-practices
|
|
282
|
+
* [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
|
|
271
283
|
*/
|
|
272
284
|
user?: string;
|
|
273
285
|
}
|