@effect/ai-openai 0.16.5 → 0.16.7
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/dist/cjs/Generated.js +294 -47
- package/dist/cjs/Generated.js.map +1 -1
- package/dist/cjs/OpenAiClient.js +23 -21
- package/dist/cjs/OpenAiClient.js.map +1 -1
- package/dist/dts/Generated.d.ts +588 -128
- package/dist/dts/Generated.d.ts.map +1 -1
- package/dist/dts/OpenAiClient.d.ts.map +1 -1
- package/dist/dts/OpenAiCompletions.d.ts +1 -1
- package/dist/dts/OpenAiCompletions.d.ts.map +1 -1
- package/dist/esm/Generated.js +258 -34
- package/dist/esm/Generated.js.map +1 -1
- package/dist/esm/OpenAiClient.js +23 -21
- package/dist/esm/OpenAiClient.js.map +1 -1
- package/package.json +5 -5
- package/src/Generated.ts +388 -186
- package/src/OpenAiClient.ts +26 -21
- package/src/OpenAiCompletions.ts +1 -1
package/dist/dts/Generated.d.ts
CHANGED
|
@@ -722,11 +722,14 @@ declare const DeleteAssistantResponse_base: S.Class<DeleteAssistantResponse, {
|
|
|
722
722
|
}, {}, {}>;
|
|
723
723
|
export declare class DeleteAssistantResponse extends DeleteAssistantResponse_base {
|
|
724
724
|
}
|
|
725
|
-
declare const CreateSpeechRequestModelEnum_base: S.Literal<["tts-1", "tts-1-hd"]>;
|
|
725
|
+
declare const CreateSpeechRequestModelEnum_base: S.Literal<["tts-1", "tts-1-hd", "gpt-4o-mini-tts"]>;
|
|
726
726
|
export declare class CreateSpeechRequestModelEnum extends CreateSpeechRequestModelEnum_base {
|
|
727
727
|
}
|
|
728
|
-
declare const
|
|
729
|
-
export declare class
|
|
728
|
+
declare const VoiceIdsSharedEnum_base: S.Literal<["alloy", "ash", "ballad", "coral", "echo", "fable", "onyx", "nova", "sage", "shimmer", "verse"]>;
|
|
729
|
+
export declare class VoiceIdsSharedEnum extends VoiceIdsSharedEnum_base {
|
|
730
|
+
}
|
|
731
|
+
declare const VoiceIdsShared_base: S.Union<[typeof S.String, typeof VoiceIdsSharedEnum]>;
|
|
732
|
+
export declare class VoiceIdsShared extends VoiceIdsShared_base {
|
|
730
733
|
}
|
|
731
734
|
declare const CreateSpeechRequestResponseFormat_base: S.Literal<["mp3", "opus", "aac", "flac", "wav", "pcm"]>;
|
|
732
735
|
export declare class CreateSpeechRequestResponseFormat extends CreateSpeechRequestResponseFormat_base {
|
|
@@ -734,7 +737,10 @@ export declare class CreateSpeechRequestResponseFormat extends CreateSpeechReque
|
|
|
734
737
|
declare const CreateSpeechRequest_base: S.Class<CreateSpeechRequest, {
|
|
735
738
|
model: S.Union<[typeof S.String, typeof CreateSpeechRequestModelEnum]>;
|
|
736
739
|
input: S.filter<typeof S.String>;
|
|
737
|
-
|
|
740
|
+
instructions: S.optionalWith<S.filter<typeof S.String>, {
|
|
741
|
+
nullable: true;
|
|
742
|
+
}>;
|
|
743
|
+
voice: typeof VoiceIdsShared;
|
|
738
744
|
response_format: S.optionalWith<typeof CreateSpeechRequestResponseFormat, {
|
|
739
745
|
nullable: true;
|
|
740
746
|
default: () => "mp3";
|
|
@@ -746,7 +752,10 @@ declare const CreateSpeechRequest_base: S.Class<CreateSpeechRequest, {
|
|
|
746
752
|
}, S.Struct.Encoded<{
|
|
747
753
|
model: S.Union<[typeof S.String, typeof CreateSpeechRequestModelEnum]>;
|
|
748
754
|
input: S.filter<typeof S.String>;
|
|
749
|
-
|
|
755
|
+
instructions: S.optionalWith<S.filter<typeof S.String>, {
|
|
756
|
+
nullable: true;
|
|
757
|
+
}>;
|
|
758
|
+
voice: typeof VoiceIdsShared;
|
|
750
759
|
response_format: S.optionalWith<typeof CreateSpeechRequestResponseFormat, {
|
|
751
760
|
nullable: true;
|
|
752
761
|
default: () => "mp3";
|
|
@@ -757,10 +766,12 @@ declare const CreateSpeechRequest_base: S.Class<CreateSpeechRequest, {
|
|
|
757
766
|
}>;
|
|
758
767
|
}>, never, {
|
|
759
768
|
readonly model: string;
|
|
769
|
+
} & {
|
|
770
|
+
readonly instructions?: string | undefined;
|
|
760
771
|
} & {
|
|
761
772
|
readonly response_format?: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm" | undefined;
|
|
762
773
|
} & {
|
|
763
|
-
readonly voice:
|
|
774
|
+
readonly voice: string;
|
|
764
775
|
} & {
|
|
765
776
|
readonly input: string;
|
|
766
777
|
} & {
|
|
@@ -768,8 +779,18 @@ declare const CreateSpeechRequest_base: S.Class<CreateSpeechRequest, {
|
|
|
768
779
|
}, {}, {}>;
|
|
769
780
|
export declare class CreateSpeechRequest extends CreateSpeechRequest_base {
|
|
770
781
|
}
|
|
782
|
+
declare const LogProbProperties_base: S.Struct<{
|
|
783
|
+
token: typeof S.String;
|
|
784
|
+
logprob: typeof S.Number;
|
|
785
|
+
bytes: S.Array$<typeof S.Int>;
|
|
786
|
+
}>;
|
|
787
|
+
export declare class LogProbProperties extends LogProbProperties_base {
|
|
788
|
+
}
|
|
771
789
|
declare const CreateTranscriptionResponseJson_base: S.Struct<{
|
|
772
790
|
text: typeof S.String;
|
|
791
|
+
logprobs: S.optionalWith<S.Array$<typeof LogProbProperties>, {
|
|
792
|
+
nullable: true;
|
|
793
|
+
}>;
|
|
773
794
|
}>;
|
|
774
795
|
export declare class CreateTranscriptionResponseJson extends CreateTranscriptionResponseJson_base {
|
|
775
796
|
}
|
|
@@ -990,7 +1011,7 @@ declare const ListBatchesResponse_base: S.Class<ListBatchesResponse, {
|
|
|
990
1011
|
}, {}, {}>;
|
|
991
1012
|
export declare class ListBatchesResponse extends ListBatchesResponse_base {
|
|
992
1013
|
}
|
|
993
|
-
declare const CreateBatchRequestEndpoint_base: S.Literal<["/v1/chat/completions", "/v1/embeddings", "/v1/completions"]>;
|
|
1014
|
+
declare const CreateBatchRequestEndpoint_base: S.Literal<["/v1/responses", "/v1/chat/completions", "/v1/embeddings", "/v1/completions"]>;
|
|
994
1015
|
export declare class CreateBatchRequestEndpoint extends CreateBatchRequestEndpoint_base {
|
|
995
1016
|
}
|
|
996
1017
|
declare const CreateBatchRequestCompletionWindow_base: S.Literal<["24h"]>;
|
|
@@ -1015,7 +1036,7 @@ declare const CreateBatchRequest_base: S.Class<CreateBatchRequest, {
|
|
|
1015
1036
|
readonly [x: string]: unknown;
|
|
1016
1037
|
} | undefined;
|
|
1017
1038
|
} & {
|
|
1018
|
-
readonly endpoint: "/v1/chat/completions" | "/v1/embeddings" | "/v1/completions";
|
|
1039
|
+
readonly endpoint: "/v1/responses" | "/v1/chat/completions" | "/v1/embeddings" | "/v1/completions";
|
|
1019
1040
|
} & {
|
|
1020
1041
|
readonly input_file_id: string;
|
|
1021
1042
|
} & {
|
|
@@ -1167,10 +1188,12 @@ declare const CreateChatCompletionResponse_base: S.Struct<{
|
|
|
1167
1188
|
finish_reason: S.Literal<["stop", "length", "tool_calls", "content_filter", "function_call"]>;
|
|
1168
1189
|
index: typeof S.Int;
|
|
1169
1190
|
message: typeof ChatCompletionResponseMessage;
|
|
1170
|
-
logprobs: S.
|
|
1191
|
+
logprobs: S.optionalWith<S.Struct<{
|
|
1171
1192
|
content: S.NullOr<S.Array$<typeof ChatCompletionTokenLogprob>>;
|
|
1172
1193
|
refusal: S.NullOr<S.Array$<typeof ChatCompletionTokenLogprob>>;
|
|
1173
|
-
}
|
|
1194
|
+
}>, {
|
|
1195
|
+
nullable: true;
|
|
1196
|
+
}>;
|
|
1174
1197
|
}>>;
|
|
1175
1198
|
created: typeof S.Int;
|
|
1176
1199
|
model: typeof S.String;
|
|
@@ -1213,6 +1236,28 @@ declare const ChatCompletionList_base: S.Class<ChatCompletionList, {
|
|
|
1213
1236
|
readonly id: string;
|
|
1214
1237
|
readonly model: string;
|
|
1215
1238
|
readonly choices: readonly {
|
|
1239
|
+
readonly logprobs?: {
|
|
1240
|
+
readonly content: readonly {
|
|
1241
|
+
readonly token: string;
|
|
1242
|
+
readonly logprob: number;
|
|
1243
|
+
readonly bytes: readonly number[] | null;
|
|
1244
|
+
readonly top_logprobs: readonly {
|
|
1245
|
+
readonly token: string;
|
|
1246
|
+
readonly logprob: number;
|
|
1247
|
+
readonly bytes: readonly number[] | null;
|
|
1248
|
+
}[];
|
|
1249
|
+
}[] | null;
|
|
1250
|
+
readonly refusal: readonly {
|
|
1251
|
+
readonly token: string;
|
|
1252
|
+
readonly logprob: number;
|
|
1253
|
+
readonly bytes: readonly number[] | null;
|
|
1254
|
+
readonly top_logprobs: readonly {
|
|
1255
|
+
readonly token: string;
|
|
1256
|
+
readonly logprob: number;
|
|
1257
|
+
readonly bytes: readonly number[] | null;
|
|
1258
|
+
}[];
|
|
1259
|
+
}[] | null;
|
|
1260
|
+
} | undefined;
|
|
1216
1261
|
readonly message: {
|
|
1217
1262
|
readonly annotations?: readonly {
|
|
1218
1263
|
readonly type: "url_citation";
|
|
@@ -1247,28 +1292,6 @@ declare const ChatCompletionList_base: S.Class<ChatCompletionList, {
|
|
|
1247
1292
|
};
|
|
1248
1293
|
readonly finish_reason: "length" | "tool_calls" | "function_call" | "stop" | "content_filter";
|
|
1249
1294
|
readonly index: number;
|
|
1250
|
-
readonly logprobs: {
|
|
1251
|
-
readonly content: readonly {
|
|
1252
|
-
readonly token: string;
|
|
1253
|
-
readonly logprob: number;
|
|
1254
|
-
readonly bytes: readonly number[] | null;
|
|
1255
|
-
readonly top_logprobs: readonly {
|
|
1256
|
-
readonly token: string;
|
|
1257
|
-
readonly logprob: number;
|
|
1258
|
-
readonly bytes: readonly number[] | null;
|
|
1259
|
-
}[];
|
|
1260
|
-
}[] | null;
|
|
1261
|
-
readonly refusal: readonly {
|
|
1262
|
-
readonly token: string;
|
|
1263
|
-
readonly logprob: number;
|
|
1264
|
-
readonly bytes: readonly number[] | null;
|
|
1265
|
-
readonly top_logprobs: readonly {
|
|
1266
|
-
readonly token: string;
|
|
1267
|
-
readonly logprob: number;
|
|
1268
|
-
readonly bytes: readonly number[] | null;
|
|
1269
|
-
}[];
|
|
1270
|
-
}[] | null;
|
|
1271
|
-
} | null;
|
|
1272
1295
|
}[];
|
|
1273
1296
|
readonly created: number;
|
|
1274
1297
|
readonly service_tier?: "default" | "scale" | undefined;
|
|
@@ -1366,7 +1389,7 @@ export declare class ChatCompletionRequestMessageContentPartFileType extends Cha
|
|
|
1366
1389
|
declare const ChatCompletionRequestMessageContentPartFile_base: S.Struct<{
|
|
1367
1390
|
type: typeof ChatCompletionRequestMessageContentPartFileType;
|
|
1368
1391
|
file: S.Struct<{
|
|
1369
|
-
|
|
1392
|
+
filename: S.optionalWith<typeof S.String, {
|
|
1370
1393
|
nullable: true;
|
|
1371
1394
|
}>;
|
|
1372
1395
|
file_data: S.optionalWith<typeof S.String, {
|
|
@@ -1462,6 +1485,12 @@ export declare class ChatCompletionRequestFunctionMessage extends ChatCompletion
|
|
|
1462
1485
|
declare const ChatCompletionRequestMessage_base: S.Union<[typeof ChatCompletionRequestDeveloperMessage, typeof ChatCompletionRequestSystemMessage, typeof ChatCompletionRequestUserMessage, typeof ChatCompletionRequestAssistantMessage, typeof ChatCompletionRequestToolMessage, typeof ChatCompletionRequestFunctionMessage]>;
|
|
1463
1486
|
export declare class ChatCompletionRequestMessage extends ChatCompletionRequestMessage_base {
|
|
1464
1487
|
}
|
|
1488
|
+
declare const ModelIdsSharedEnum_base: S.Literal<["o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "o1-preview", "o1-preview-2024-09-12", "o1-mini", "o1-mini-2024-09-12", "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-10-01", "gpt-4o-audio-preview-2024-12-17", "gpt-4o-mini-audio-preview", "gpt-4o-mini-audio-preview-2024-12-17", "gpt-4o-search-preview", "gpt-4o-mini-search-preview", "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11", "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"]>;
|
|
1489
|
+
export declare class ModelIdsSharedEnum extends ModelIdsSharedEnum_base {
|
|
1490
|
+
}
|
|
1491
|
+
declare const ModelIdsShared_base: S.Union<[typeof S.String, typeof ModelIdsSharedEnum]>;
|
|
1492
|
+
export declare class ModelIdsShared extends ModelIdsShared_base {
|
|
1493
|
+
}
|
|
1465
1494
|
declare const ResponseModalities_base: S.Array$<S.Literal<["text", "audio"]>>;
|
|
1466
1495
|
export declare class ResponseModalities extends ResponseModalities_base {
|
|
1467
1496
|
}
|
|
@@ -1490,9 +1519,6 @@ export declare class WebSearchContextSize extends WebSearchContextSize_base {
|
|
|
1490
1519
|
declare const CreateChatCompletionRequestServiceTier_base: S.Literal<["auto", "default"]>;
|
|
1491
1520
|
export declare class CreateChatCompletionRequestServiceTier extends CreateChatCompletionRequestServiceTier_base {
|
|
1492
1521
|
}
|
|
1493
|
-
declare const CreateChatCompletionRequestAudioVoice_base: S.Literal<["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse"]>;
|
|
1494
|
-
export declare class CreateChatCompletionRequestAudioVoice extends CreateChatCompletionRequestAudioVoice_base {
|
|
1495
|
-
}
|
|
1496
1522
|
declare const CreateChatCompletionRequestAudioFormat_base: S.Literal<["wav", "mp3", "flac", "opus", "pcm16"]>;
|
|
1497
1523
|
export declare class CreateChatCompletionRequestAudioFormat extends CreateChatCompletionRequestAudioFormat_base {
|
|
1498
1524
|
}
|
|
@@ -1562,11 +1588,9 @@ declare const ChatCompletionFunctions_base: S.Struct<{
|
|
|
1562
1588
|
}>;
|
|
1563
1589
|
export declare class ChatCompletionFunctions extends ChatCompletionFunctions_base {
|
|
1564
1590
|
}
|
|
1565
|
-
declare const CreateChatCompletionRequestModelEnum_base: S.Literal<["o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "o1-preview", "o1-preview-2024-09-12", "o1-mini", "o1-mini-2024-09-12", "computer-use-preview", "computer-use-preview-2025-02-04", "computer-use-preview-2025-03-11", "gpt-4.5-preview", "gpt-4.5-preview-2025-02-27", "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-10-01", "gpt-4o-audio-preview-2024-12-17", "gpt-4o-mini-audio-preview", "gpt-4o-mini-audio-preview-2024-12-17", "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"]>;
|
|
1566
|
-
export declare class CreateChatCompletionRequestModelEnum extends CreateChatCompletionRequestModelEnum_base {
|
|
1567
|
-
}
|
|
1568
1591
|
declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequest, {
|
|
1569
1592
|
messages: S.NonEmptyArray<typeof ChatCompletionRequestMessage>;
|
|
1593
|
+
model: typeof ModelIdsShared;
|
|
1570
1594
|
modalities: S.optionalWith<typeof ResponseModalities, {
|
|
1571
1595
|
nullable: true;
|
|
1572
1596
|
}>;
|
|
@@ -1610,7 +1634,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1610
1634
|
default: () => "auto";
|
|
1611
1635
|
}>;
|
|
1612
1636
|
audio: S.optionalWith<S.Struct<{
|
|
1613
|
-
voice: typeof
|
|
1637
|
+
voice: typeof VoiceIdsShared;
|
|
1614
1638
|
format: typeof CreateChatCompletionRequestAudioFormat;
|
|
1615
1639
|
}>, {
|
|
1616
1640
|
nullable: true;
|
|
@@ -1643,7 +1667,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1643
1667
|
prediction: S.optionalWith<typeof PredictionContent, {
|
|
1644
1668
|
nullable: true;
|
|
1645
1669
|
}>;
|
|
1646
|
-
seed: S.optionalWith<
|
|
1670
|
+
seed: S.optionalWith<typeof S.Int, {
|
|
1647
1671
|
nullable: true;
|
|
1648
1672
|
}>;
|
|
1649
1673
|
stream_options: S.optionalWith<S.NullOr<typeof ChatCompletionStreamOptions>, {
|
|
@@ -1665,7 +1689,6 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1665
1689
|
functions: S.optionalWith<S.filter<S.filter<S.Array$<typeof ChatCompletionFunctions>>>, {
|
|
1666
1690
|
nullable: true;
|
|
1667
1691
|
}>;
|
|
1668
|
-
model: S.Union<[typeof S.String, typeof CreateChatCompletionRequestModelEnum]>;
|
|
1669
1692
|
metadata: S.optionalWith<typeof Metadata, {
|
|
1670
1693
|
nullable: true;
|
|
1671
1694
|
}>;
|
|
@@ -1682,6 +1705,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1682
1705
|
}>;
|
|
1683
1706
|
}, S.Struct.Encoded<{
|
|
1684
1707
|
messages: S.NonEmptyArray<typeof ChatCompletionRequestMessage>;
|
|
1708
|
+
model: typeof ModelIdsShared;
|
|
1685
1709
|
modalities: S.optionalWith<typeof ResponseModalities, {
|
|
1686
1710
|
nullable: true;
|
|
1687
1711
|
}>;
|
|
@@ -1725,7 +1749,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1725
1749
|
default: () => "auto";
|
|
1726
1750
|
}>;
|
|
1727
1751
|
audio: S.optionalWith<S.Struct<{
|
|
1728
|
-
voice: typeof
|
|
1752
|
+
voice: typeof VoiceIdsShared;
|
|
1729
1753
|
format: typeof CreateChatCompletionRequestAudioFormat;
|
|
1730
1754
|
}>, {
|
|
1731
1755
|
nullable: true;
|
|
@@ -1758,7 +1782,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1758
1782
|
prediction: S.optionalWith<typeof PredictionContent, {
|
|
1759
1783
|
nullable: true;
|
|
1760
1784
|
}>;
|
|
1761
|
-
seed: S.optionalWith<
|
|
1785
|
+
seed: S.optionalWith<typeof S.Int, {
|
|
1762
1786
|
nullable: true;
|
|
1763
1787
|
}>;
|
|
1764
1788
|
stream_options: S.optionalWith<S.NullOr<typeof ChatCompletionStreamOptions>, {
|
|
@@ -1780,7 +1804,6 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1780
1804
|
functions: S.optionalWith<S.filter<S.filter<S.Array$<typeof ChatCompletionFunctions>>>, {
|
|
1781
1805
|
nullable: true;
|
|
1782
1806
|
}>;
|
|
1783
|
-
model: S.Union<[typeof S.String, typeof CreateChatCompletionRequestModelEnum]>;
|
|
1784
1807
|
metadata: S.optionalWith<typeof Metadata, {
|
|
1785
1808
|
nullable: true;
|
|
1786
1809
|
}>;
|
|
@@ -1835,21 +1858,21 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1835
1858
|
} | undefined;
|
|
1836
1859
|
} & {
|
|
1837
1860
|
readonly reasoning_effort?: "low" | "medium" | "high" | undefined;
|
|
1861
|
+
} & {
|
|
1862
|
+
readonly logprobs?: boolean | undefined;
|
|
1838
1863
|
} & {
|
|
1839
1864
|
readonly function_call?: "auto" | "none" | {
|
|
1840
1865
|
readonly name: string;
|
|
1841
1866
|
} | undefined;
|
|
1842
1867
|
} & {
|
|
1843
1868
|
readonly audio?: {
|
|
1844
|
-
readonly voice:
|
|
1869
|
+
readonly voice: string;
|
|
1845
1870
|
readonly format: "mp3" | "opus" | "flac" | "wav" | "pcm16";
|
|
1846
1871
|
} | undefined;
|
|
1847
1872
|
} & {
|
|
1848
1873
|
readonly top_logprobs?: number | undefined;
|
|
1849
1874
|
} & {
|
|
1850
1875
|
readonly stop?: string | readonly string[] | null | undefined;
|
|
1851
|
-
} & {
|
|
1852
|
-
readonly logprobs?: boolean | undefined;
|
|
1853
1876
|
} & {
|
|
1854
1877
|
readonly service_tier?: "default" | "auto" | undefined;
|
|
1855
1878
|
} & {
|
|
@@ -1895,7 +1918,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1895
1918
|
} | {
|
|
1896
1919
|
readonly type: "file";
|
|
1897
1920
|
readonly file: {
|
|
1898
|
-
readonly
|
|
1921
|
+
readonly filename?: string | undefined;
|
|
1899
1922
|
readonly file_data?: string | undefined;
|
|
1900
1923
|
readonly file_id?: string | undefined;
|
|
1901
1924
|
};
|
|
@@ -1917,7 +1940,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1917
1940
|
} | {
|
|
1918
1941
|
readonly type: "file";
|
|
1919
1942
|
readonly file: {
|
|
1920
|
-
readonly
|
|
1943
|
+
readonly filename?: string | undefined;
|
|
1921
1944
|
readonly file_data?: string | undefined;
|
|
1922
1945
|
readonly file_id?: string | undefined;
|
|
1923
1946
|
};
|
|
@@ -2009,7 +2032,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
2009
2032
|
} | {
|
|
2010
2033
|
readonly type: "file";
|
|
2011
2034
|
readonly file: {
|
|
2012
|
-
readonly
|
|
2035
|
+
readonly filename?: string | undefined;
|
|
2013
2036
|
readonly file_data?: string | undefined;
|
|
2014
2037
|
readonly file_id?: string | undefined;
|
|
2015
2038
|
};
|
|
@@ -2031,7 +2054,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
2031
2054
|
} | {
|
|
2032
2055
|
readonly type: "file";
|
|
2033
2056
|
readonly file: {
|
|
2034
|
-
readonly
|
|
2057
|
+
readonly filename?: string | undefined;
|
|
2035
2058
|
readonly file_data?: string | undefined;
|
|
2036
2059
|
readonly file_id?: string | undefined;
|
|
2037
2060
|
};
|
|
@@ -2460,10 +2483,10 @@ declare const CreateCompletionRequest_base: S.Class<CreateCompletionRequest, {
|
|
|
2460
2483
|
readonly top_p?: number | undefined;
|
|
2461
2484
|
} & {
|
|
2462
2485
|
readonly echo?: boolean | undefined;
|
|
2463
|
-
} & {
|
|
2464
|
-
readonly stop?: string | readonly string[] | null | undefined;
|
|
2465
2486
|
} & {
|
|
2466
2487
|
readonly logprobs?: number | null | undefined;
|
|
2488
|
+
} & {
|
|
2489
|
+
readonly stop?: string | readonly string[] | null | undefined;
|
|
2467
2490
|
} & {
|
|
2468
2491
|
readonly user?: string | undefined;
|
|
2469
2492
|
} & {
|
|
@@ -2567,8 +2590,6 @@ declare const CreateCompletionResponse_base: S.Class<CreateCompletionResponse, {
|
|
|
2567
2590
|
} & {
|
|
2568
2591
|
readonly choices: readonly {
|
|
2569
2592
|
readonly text: string;
|
|
2570
|
-
readonly finish_reason: "length" | "stop" | "content_filter";
|
|
2571
|
-
readonly index: number;
|
|
2572
2593
|
readonly logprobs: {
|
|
2573
2594
|
readonly tokens?: readonly string[] | undefined;
|
|
2574
2595
|
readonly top_logprobs?: readonly {
|
|
@@ -2577,6 +2598,8 @@ declare const CreateCompletionResponse_base: S.Class<CreateCompletionResponse, {
|
|
|
2577
2598
|
readonly text_offset?: readonly number[] | undefined;
|
|
2578
2599
|
readonly token_logprobs?: readonly number[] | undefined;
|
|
2579
2600
|
} | null;
|
|
2601
|
+
readonly finish_reason: "length" | "stop" | "content_filter";
|
|
2602
|
+
readonly index: number;
|
|
2580
2603
|
}[];
|
|
2581
2604
|
} & {
|
|
2582
2605
|
readonly created: number;
|
|
@@ -2765,11 +2788,11 @@ declare const ListFilesResponse_base: S.Class<ListFilesResponse, {
|
|
|
2765
2788
|
readonly object: "file";
|
|
2766
2789
|
readonly id: string;
|
|
2767
2790
|
readonly created_at: number;
|
|
2791
|
+
readonly bytes: number;
|
|
2768
2792
|
readonly status: "uploaded" | "processed" | "error";
|
|
2769
2793
|
readonly expires_at?: number | undefined;
|
|
2770
|
-
readonly bytes: number;
|
|
2771
|
-
readonly purpose: "batch" | "assistants" | "assistants_output" | "batch_output" | "fine-tune" | "fine-tune-results" | "vision";
|
|
2772
2794
|
readonly filename: string;
|
|
2795
|
+
readonly purpose: "batch" | "assistants" | "assistants_output" | "batch_output" | "fine-tune" | "fine-tune-results" | "vision";
|
|
2773
2796
|
readonly status_details?: string | undefined;
|
|
2774
2797
|
}[];
|
|
2775
2798
|
}, {}, {}>;
|
|
@@ -2797,6 +2820,108 @@ export declare class DeleteFileResponse extends DeleteFileResponse_base {
|
|
|
2797
2820
|
}
|
|
2798
2821
|
export declare class DownloadFile200 extends S.String {
|
|
2799
2822
|
}
|
|
2823
|
+
declare const ListFineTuningCheckpointPermissionsParamsOrder_base: S.Literal<["ascending", "descending"]>;
|
|
2824
|
+
export declare class ListFineTuningCheckpointPermissionsParamsOrder extends ListFineTuningCheckpointPermissionsParamsOrder_base {
|
|
2825
|
+
}
|
|
2826
|
+
declare const ListFineTuningCheckpointPermissionsParams_base: S.Struct<{
|
|
2827
|
+
project_id: S.optionalWith<typeof S.String, {
|
|
2828
|
+
nullable: true;
|
|
2829
|
+
}>;
|
|
2830
|
+
after: S.optionalWith<typeof S.String, {
|
|
2831
|
+
nullable: true;
|
|
2832
|
+
}>;
|
|
2833
|
+
limit: S.optionalWith<typeof S.Int, {
|
|
2834
|
+
nullable: true;
|
|
2835
|
+
default: () => 10;
|
|
2836
|
+
}>;
|
|
2837
|
+
order: S.optionalWith<typeof ListFineTuningCheckpointPermissionsParamsOrder, {
|
|
2838
|
+
nullable: true;
|
|
2839
|
+
default: () => "descending";
|
|
2840
|
+
}>;
|
|
2841
|
+
}>;
|
|
2842
|
+
export declare class ListFineTuningCheckpointPermissionsParams extends ListFineTuningCheckpointPermissionsParams_base {
|
|
2843
|
+
}
|
|
2844
|
+
declare const FineTuningCheckpointPermissionObject_base: S.Literal<["checkpoint.permission"]>;
|
|
2845
|
+
export declare class FineTuningCheckpointPermissionObject extends FineTuningCheckpointPermissionObject_base {
|
|
2846
|
+
}
|
|
2847
|
+
declare const FineTuningCheckpointPermission_base: S.Struct<{
|
|
2848
|
+
id: typeof S.String;
|
|
2849
|
+
created_at: typeof S.Int;
|
|
2850
|
+
project_id: typeof S.String;
|
|
2851
|
+
object: typeof FineTuningCheckpointPermissionObject;
|
|
2852
|
+
}>;
|
|
2853
|
+
export declare class FineTuningCheckpointPermission extends FineTuningCheckpointPermission_base {
|
|
2854
|
+
}
|
|
2855
|
+
declare const ListFineTuningCheckpointPermissionResponseObject_base: S.Literal<["list"]>;
|
|
2856
|
+
export declare class ListFineTuningCheckpointPermissionResponseObject extends ListFineTuningCheckpointPermissionResponseObject_base {
|
|
2857
|
+
}
|
|
2858
|
+
declare const ListFineTuningCheckpointPermissionResponse_base: S.Class<ListFineTuningCheckpointPermissionResponse, {
|
|
2859
|
+
data: S.Array$<typeof FineTuningCheckpointPermission>;
|
|
2860
|
+
object: typeof ListFineTuningCheckpointPermissionResponseObject;
|
|
2861
|
+
first_id: S.optionalWith<typeof S.String, {
|
|
2862
|
+
nullable: true;
|
|
2863
|
+
}>;
|
|
2864
|
+
last_id: S.optionalWith<typeof S.String, {
|
|
2865
|
+
nullable: true;
|
|
2866
|
+
}>;
|
|
2867
|
+
has_more: typeof S.Boolean;
|
|
2868
|
+
}, S.Struct.Encoded<{
|
|
2869
|
+
data: S.Array$<typeof FineTuningCheckpointPermission>;
|
|
2870
|
+
object: typeof ListFineTuningCheckpointPermissionResponseObject;
|
|
2871
|
+
first_id: S.optionalWith<typeof S.String, {
|
|
2872
|
+
nullable: true;
|
|
2873
|
+
}>;
|
|
2874
|
+
last_id: S.optionalWith<typeof S.String, {
|
|
2875
|
+
nullable: true;
|
|
2876
|
+
}>;
|
|
2877
|
+
has_more: typeof S.Boolean;
|
|
2878
|
+
}>, never, {
|
|
2879
|
+
readonly object: "list";
|
|
2880
|
+
} & {
|
|
2881
|
+
readonly first_id?: string | undefined;
|
|
2882
|
+
} & {
|
|
2883
|
+
readonly last_id?: string | undefined;
|
|
2884
|
+
} & {
|
|
2885
|
+
readonly has_more: boolean;
|
|
2886
|
+
} & {
|
|
2887
|
+
readonly data: readonly {
|
|
2888
|
+
readonly object: "checkpoint.permission";
|
|
2889
|
+
readonly id: string;
|
|
2890
|
+
readonly created_at: number;
|
|
2891
|
+
readonly project_id: string;
|
|
2892
|
+
}[];
|
|
2893
|
+
}, {}, {}>;
|
|
2894
|
+
export declare class ListFineTuningCheckpointPermissionResponse extends ListFineTuningCheckpointPermissionResponse_base {
|
|
2895
|
+
}
|
|
2896
|
+
declare const CreateFineTuningCheckpointPermissionRequest_base: S.Class<CreateFineTuningCheckpointPermissionRequest, {
|
|
2897
|
+
project_ids: S.Array$<typeof S.String>;
|
|
2898
|
+
}, S.Struct.Encoded<{
|
|
2899
|
+
project_ids: S.Array$<typeof S.String>;
|
|
2900
|
+
}>, never, {
|
|
2901
|
+
readonly project_ids: readonly string[];
|
|
2902
|
+
}, {}, {}>;
|
|
2903
|
+
export declare class CreateFineTuningCheckpointPermissionRequest extends CreateFineTuningCheckpointPermissionRequest_base {
|
|
2904
|
+
}
|
|
2905
|
+
declare const DeleteFineTuningCheckpointPermissionResponseObject_base: S.Literal<["checkpoint.permission"]>;
|
|
2906
|
+
export declare class DeleteFineTuningCheckpointPermissionResponseObject extends DeleteFineTuningCheckpointPermissionResponseObject_base {
|
|
2907
|
+
}
|
|
2908
|
+
declare const DeleteFineTuningCheckpointPermissionResponse_base: S.Class<DeleteFineTuningCheckpointPermissionResponse, {
|
|
2909
|
+
id: typeof S.String;
|
|
2910
|
+
object: typeof DeleteFineTuningCheckpointPermissionResponseObject;
|
|
2911
|
+
deleted: typeof S.Boolean;
|
|
2912
|
+
}, S.Struct.Encoded<{
|
|
2913
|
+
id: typeof S.String;
|
|
2914
|
+
object: typeof DeleteFineTuningCheckpointPermissionResponseObject;
|
|
2915
|
+
deleted: typeof S.Boolean;
|
|
2916
|
+
}>, never, {
|
|
2917
|
+
readonly object: "checkpoint.permission";
|
|
2918
|
+
} & {
|
|
2919
|
+
readonly id: string;
|
|
2920
|
+
} & {
|
|
2921
|
+
readonly deleted: boolean;
|
|
2922
|
+
}, {}, {}>;
|
|
2923
|
+
export declare class DeleteFineTuningCheckpointPermissionResponse extends DeleteFineTuningCheckpointPermissionResponse_base {
|
|
2924
|
+
}
|
|
2800
2925
|
declare const ListPaginatedFineTuningJobsParams_base: S.Struct<{
|
|
2801
2926
|
after: S.optionalWith<typeof S.String, {
|
|
2802
2927
|
nullable: true;
|
|
@@ -4738,8 +4863,8 @@ declare const UsageResponse_base: S.Class<UsageResponse, {
|
|
|
4738
4863
|
} | {
|
|
4739
4864
|
readonly object: "organization.usage.images.result";
|
|
4740
4865
|
readonly model?: string | undefined;
|
|
4741
|
-
readonly size?: string | undefined;
|
|
4742
4866
|
readonly project_id?: string | undefined;
|
|
4867
|
+
readonly size?: string | undefined;
|
|
4743
4868
|
readonly num_model_requests: number;
|
|
4744
4869
|
readonly user_id?: string | undefined;
|
|
4745
4870
|
readonly api_key_id?: string | undefined;
|
|
@@ -5908,15 +6033,21 @@ export declare class UserDeleteResponse extends UserDeleteResponse_base {
|
|
|
5908
6033
|
declare const RealtimeSessionCreateRequestModel_base: S.Literal<["gpt-4o-realtime-preview", "gpt-4o-realtime-preview-2024-10-01", "gpt-4o-realtime-preview-2024-12-17", "gpt-4o-mini-realtime-preview", "gpt-4o-mini-realtime-preview-2024-12-17"]>;
|
|
5909
6034
|
export declare class RealtimeSessionCreateRequestModel extends RealtimeSessionCreateRequestModel_base {
|
|
5910
6035
|
}
|
|
5911
|
-
declare const RealtimeSessionCreateRequestVoice_base: S.Literal<["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse"]>;
|
|
5912
|
-
export declare class RealtimeSessionCreateRequestVoice extends RealtimeSessionCreateRequestVoice_base {
|
|
5913
|
-
}
|
|
5914
6036
|
declare const RealtimeSessionCreateRequestInputAudioFormat_base: S.Literal<["pcm16", "g711_ulaw", "g711_alaw"]>;
|
|
5915
6037
|
export declare class RealtimeSessionCreateRequestInputAudioFormat extends RealtimeSessionCreateRequestInputAudioFormat_base {
|
|
5916
6038
|
}
|
|
5917
6039
|
declare const RealtimeSessionCreateRequestOutputAudioFormat_base: S.Literal<["pcm16", "g711_ulaw", "g711_alaw"]>;
|
|
5918
6040
|
export declare class RealtimeSessionCreateRequestOutputAudioFormat extends RealtimeSessionCreateRequestOutputAudioFormat_base {
|
|
5919
6041
|
}
|
|
6042
|
+
declare const RealtimeSessionCreateRequestTurnDetectionType_base: S.Literal<["server_vad", "semantic_vad"]>;
|
|
6043
|
+
export declare class RealtimeSessionCreateRequestTurnDetectionType extends RealtimeSessionCreateRequestTurnDetectionType_base {
|
|
6044
|
+
}
|
|
6045
|
+
declare const RealtimeSessionCreateRequestTurnDetectionEagerness_base: S.Literal<["low", "medium", "high", "auto"]>;
|
|
6046
|
+
export declare class RealtimeSessionCreateRequestTurnDetectionEagerness extends RealtimeSessionCreateRequestTurnDetectionEagerness_base {
|
|
6047
|
+
}
|
|
6048
|
+
declare const RealtimeSessionCreateRequestInputAudioNoiseReductionType_base: S.Literal<["near_field", "far_field"]>;
|
|
6049
|
+
export declare class RealtimeSessionCreateRequestInputAudioNoiseReductionType extends RealtimeSessionCreateRequestInputAudioNoiseReductionType_base {
|
|
6050
|
+
}
|
|
5920
6051
|
declare const RealtimeSessionCreateRequestMaxResponseOutputTokensEnum_base: S.Literal<["inf"]>;
|
|
5921
6052
|
export declare class RealtimeSessionCreateRequestMaxResponseOutputTokensEnum extends RealtimeSessionCreateRequestMaxResponseOutputTokensEnum_base {
|
|
5922
6053
|
}
|
|
@@ -5927,14 +6058,16 @@ declare const RealtimeSessionCreateRequest_base: S.Class<RealtimeSessionCreateRe
|
|
|
5927
6058
|
instructions: S.optionalWith<typeof S.String, {
|
|
5928
6059
|
nullable: true;
|
|
5929
6060
|
}>;
|
|
5930
|
-
voice: S.optionalWith<typeof
|
|
6061
|
+
voice: S.optionalWith<typeof VoiceIdsShared, {
|
|
5931
6062
|
nullable: true;
|
|
5932
6063
|
}>;
|
|
5933
6064
|
input_audio_format: S.optionalWith<typeof RealtimeSessionCreateRequestInputAudioFormat, {
|
|
5934
6065
|
nullable: true;
|
|
6066
|
+
default: () => "pcm16";
|
|
5935
6067
|
}>;
|
|
5936
6068
|
output_audio_format: S.optionalWith<typeof RealtimeSessionCreateRequestOutputAudioFormat, {
|
|
5937
6069
|
nullable: true;
|
|
6070
|
+
default: () => "pcm16";
|
|
5938
6071
|
}>;
|
|
5939
6072
|
input_audio_transcription: S.optionalWith<S.Struct<{
|
|
5940
6073
|
model: S.optionalWith<typeof S.String, {
|
|
@@ -5950,8 +6083,13 @@ declare const RealtimeSessionCreateRequest_base: S.Class<RealtimeSessionCreateRe
|
|
|
5950
6083
|
nullable: true;
|
|
5951
6084
|
}>;
|
|
5952
6085
|
turn_detection: S.optionalWith<S.Struct<{
|
|
5953
|
-
type: S.optionalWith<typeof
|
|
6086
|
+
type: S.optionalWith<typeof RealtimeSessionCreateRequestTurnDetectionType, {
|
|
5954
6087
|
nullable: true;
|
|
6088
|
+
default: () => "server_vad";
|
|
6089
|
+
}>;
|
|
6090
|
+
eagerness: S.optionalWith<typeof RealtimeSessionCreateRequestTurnDetectionEagerness, {
|
|
6091
|
+
nullable: true;
|
|
6092
|
+
default: () => "auto";
|
|
5955
6093
|
}>;
|
|
5956
6094
|
threshold: S.optionalWith<typeof S.Number, {
|
|
5957
6095
|
nullable: true;
|
|
@@ -5973,6 +6111,13 @@ declare const RealtimeSessionCreateRequest_base: S.Class<RealtimeSessionCreateRe
|
|
|
5973
6111
|
}>, {
|
|
5974
6112
|
nullable: true;
|
|
5975
6113
|
}>;
|
|
6114
|
+
input_audio_noise_reduction: S.optionalWith<S.NullOr<S.Struct<{
|
|
6115
|
+
type: S.optionalWith<typeof RealtimeSessionCreateRequestInputAudioNoiseReductionType, {
|
|
6116
|
+
nullable: true;
|
|
6117
|
+
}>;
|
|
6118
|
+
}>>, {
|
|
6119
|
+
default: () => null;
|
|
6120
|
+
}>;
|
|
5976
6121
|
tools: S.optionalWith<S.Array$<S.Struct<{
|
|
5977
6122
|
type: S.optionalWith<S.Literal<["function"]>, {
|
|
5978
6123
|
nullable: true;
|
|
@@ -5991,9 +6136,11 @@ declare const RealtimeSessionCreateRequest_base: S.Class<RealtimeSessionCreateRe
|
|
|
5991
6136
|
}>;
|
|
5992
6137
|
tool_choice: S.optionalWith<typeof S.String, {
|
|
5993
6138
|
nullable: true;
|
|
6139
|
+
default: () => "auto";
|
|
5994
6140
|
}>;
|
|
5995
6141
|
temperature: S.optionalWith<typeof S.Number, {
|
|
5996
6142
|
nullable: true;
|
|
6143
|
+
default: () => 0.8;
|
|
5997
6144
|
}>;
|
|
5998
6145
|
max_response_output_tokens: S.optionalWith<S.Union<[typeof S.Int, typeof RealtimeSessionCreateRequestMaxResponseOutputTokensEnum]>, {
|
|
5999
6146
|
nullable: true;
|
|
@@ -6005,14 +6152,16 @@ declare const RealtimeSessionCreateRequest_base: S.Class<RealtimeSessionCreateRe
|
|
|
6005
6152
|
instructions: S.optionalWith<typeof S.String, {
|
|
6006
6153
|
nullable: true;
|
|
6007
6154
|
}>;
|
|
6008
|
-
voice: S.optionalWith<typeof
|
|
6155
|
+
voice: S.optionalWith<typeof VoiceIdsShared, {
|
|
6009
6156
|
nullable: true;
|
|
6010
6157
|
}>;
|
|
6011
6158
|
input_audio_format: S.optionalWith<typeof RealtimeSessionCreateRequestInputAudioFormat, {
|
|
6012
6159
|
nullable: true;
|
|
6160
|
+
default: () => "pcm16";
|
|
6013
6161
|
}>;
|
|
6014
6162
|
output_audio_format: S.optionalWith<typeof RealtimeSessionCreateRequestOutputAudioFormat, {
|
|
6015
6163
|
nullable: true;
|
|
6164
|
+
default: () => "pcm16";
|
|
6016
6165
|
}>;
|
|
6017
6166
|
input_audio_transcription: S.optionalWith<S.Struct<{
|
|
6018
6167
|
model: S.optionalWith<typeof S.String, {
|
|
@@ -6028,8 +6177,13 @@ declare const RealtimeSessionCreateRequest_base: S.Class<RealtimeSessionCreateRe
|
|
|
6028
6177
|
nullable: true;
|
|
6029
6178
|
}>;
|
|
6030
6179
|
turn_detection: S.optionalWith<S.Struct<{
|
|
6031
|
-
type: S.optionalWith<typeof
|
|
6180
|
+
type: S.optionalWith<typeof RealtimeSessionCreateRequestTurnDetectionType, {
|
|
6032
6181
|
nullable: true;
|
|
6182
|
+
default: () => "server_vad";
|
|
6183
|
+
}>;
|
|
6184
|
+
eagerness: S.optionalWith<typeof RealtimeSessionCreateRequestTurnDetectionEagerness, {
|
|
6185
|
+
nullable: true;
|
|
6186
|
+
default: () => "auto";
|
|
6033
6187
|
}>;
|
|
6034
6188
|
threshold: S.optionalWith<typeof S.Number, {
|
|
6035
6189
|
nullable: true;
|
|
@@ -6051,6 +6205,13 @@ declare const RealtimeSessionCreateRequest_base: S.Class<RealtimeSessionCreateRe
|
|
|
6051
6205
|
}>, {
|
|
6052
6206
|
nullable: true;
|
|
6053
6207
|
}>;
|
|
6208
|
+
input_audio_noise_reduction: S.optionalWith<S.NullOr<S.Struct<{
|
|
6209
|
+
type: S.optionalWith<typeof RealtimeSessionCreateRequestInputAudioNoiseReductionType, {
|
|
6210
|
+
nullable: true;
|
|
6211
|
+
}>;
|
|
6212
|
+
}>>, {
|
|
6213
|
+
default: () => null;
|
|
6214
|
+
}>;
|
|
6054
6215
|
tools: S.optionalWith<S.Array$<S.Struct<{
|
|
6055
6216
|
type: S.optionalWith<S.Literal<["function"]>, {
|
|
6056
6217
|
nullable: true;
|
|
@@ -6069,9 +6230,11 @@ declare const RealtimeSessionCreateRequest_base: S.Class<RealtimeSessionCreateRe
|
|
|
6069
6230
|
}>;
|
|
6070
6231
|
tool_choice: S.optionalWith<typeof S.String, {
|
|
6071
6232
|
nullable: true;
|
|
6233
|
+
default: () => "auto";
|
|
6072
6234
|
}>;
|
|
6073
6235
|
temperature: S.optionalWith<typeof S.Number, {
|
|
6074
6236
|
nullable: true;
|
|
6237
|
+
default: () => 0.8;
|
|
6075
6238
|
}>;
|
|
6076
6239
|
max_response_output_tokens: S.optionalWith<S.Union<[typeof S.Int, typeof RealtimeSessionCreateRequestMaxResponseOutputTokensEnum]>, {
|
|
6077
6240
|
nullable: true;
|
|
@@ -6092,7 +6255,7 @@ declare const RealtimeSessionCreateRequest_base: S.Class<RealtimeSessionCreateRe
|
|
|
6092
6255
|
} & {
|
|
6093
6256
|
readonly temperature?: number | undefined;
|
|
6094
6257
|
} & {
|
|
6095
|
-
readonly voice?:
|
|
6258
|
+
readonly voice?: string | undefined;
|
|
6096
6259
|
} & {
|
|
6097
6260
|
readonly tool_choice?: string | undefined;
|
|
6098
6261
|
} & {
|
|
@@ -6107,21 +6270,23 @@ declare const RealtimeSessionCreateRequest_base: S.Class<RealtimeSessionCreateRe
|
|
|
6107
6270
|
} | undefined;
|
|
6108
6271
|
} & {
|
|
6109
6272
|
readonly turn_detection?: {
|
|
6110
|
-
readonly type
|
|
6273
|
+
readonly type: "server_vad" | "semantic_vad";
|
|
6274
|
+
readonly eagerness: "auto" | "low" | "medium" | "high";
|
|
6111
6275
|
readonly threshold?: number | undefined;
|
|
6112
6276
|
readonly prefix_padding_ms?: number | undefined;
|
|
6113
6277
|
readonly silence_duration_ms?: number | undefined;
|
|
6114
6278
|
readonly create_response: boolean;
|
|
6115
6279
|
readonly interrupt_response: boolean;
|
|
6116
6280
|
} | undefined;
|
|
6281
|
+
} & {
|
|
6282
|
+
readonly input_audio_noise_reduction?: {
|
|
6283
|
+
readonly type?: "near_field" | "far_field" | undefined;
|
|
6284
|
+
} | null | undefined;
|
|
6117
6285
|
} & {
|
|
6118
6286
|
readonly max_response_output_tokens?: number | "inf" | undefined;
|
|
6119
6287
|
}, {}, {}>;
|
|
6120
6288
|
export declare class RealtimeSessionCreateRequest extends RealtimeSessionCreateRequest_base {
|
|
6121
6289
|
}
|
|
6122
|
-
declare const RealtimeSessionCreateResponseVoice_base: S.Literal<["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse"]>;
|
|
6123
|
-
export declare class RealtimeSessionCreateResponseVoice extends RealtimeSessionCreateResponseVoice_base {
|
|
6124
|
-
}
|
|
6125
6290
|
declare const RealtimeSessionCreateResponseMaxResponseOutputTokensEnum_base: S.Literal<["inf"]>;
|
|
6126
6291
|
export declare class RealtimeSessionCreateResponseMaxResponseOutputTokensEnum extends RealtimeSessionCreateResponseMaxResponseOutputTokensEnum_base {
|
|
6127
6292
|
}
|
|
@@ -6133,7 +6298,7 @@ declare const RealtimeSessionCreateResponse_base: S.Class<RealtimeSessionCreateR
|
|
|
6133
6298
|
instructions: S.optionalWith<typeof S.String, {
|
|
6134
6299
|
nullable: true;
|
|
6135
6300
|
}>;
|
|
6136
|
-
voice: S.optionalWith<typeof
|
|
6301
|
+
voice: S.optionalWith<typeof VoiceIdsShared, {
|
|
6137
6302
|
nullable: true;
|
|
6138
6303
|
}>;
|
|
6139
6304
|
input_audio_format: S.optionalWith<typeof S.String, {
|
|
@@ -6198,7 +6363,7 @@ declare const RealtimeSessionCreateResponse_base: S.Class<RealtimeSessionCreateR
|
|
|
6198
6363
|
instructions: S.optionalWith<typeof S.String, {
|
|
6199
6364
|
nullable: true;
|
|
6200
6365
|
}>;
|
|
6201
|
-
voice: S.optionalWith<typeof
|
|
6366
|
+
voice: S.optionalWith<typeof VoiceIdsShared, {
|
|
6202
6367
|
nullable: true;
|
|
6203
6368
|
}>;
|
|
6204
6369
|
input_audio_format: S.optionalWith<typeof S.String, {
|
|
@@ -6269,7 +6434,7 @@ declare const RealtimeSessionCreateResponse_base: S.Class<RealtimeSessionCreateR
|
|
|
6269
6434
|
} & {
|
|
6270
6435
|
readonly temperature?: number | undefined;
|
|
6271
6436
|
} & {
|
|
6272
|
-
readonly voice?:
|
|
6437
|
+
readonly voice?: string | undefined;
|
|
6273
6438
|
} & {
|
|
6274
6439
|
readonly tool_choice?: string | undefined;
|
|
6275
6440
|
} & {
|
|
@@ -6297,6 +6462,262 @@ declare const RealtimeSessionCreateResponse_base: S.Class<RealtimeSessionCreateR
|
|
|
6297
6462
|
}, {}, {}>;
|
|
6298
6463
|
export declare class RealtimeSessionCreateResponse extends RealtimeSessionCreateResponse_base {
|
|
6299
6464
|
}
|
|
6465
|
+
declare const RealtimeTranscriptionSessionCreateRequestInputAudioFormat_base: S.Literal<["pcm16", "g711_ulaw", "g711_alaw"]>;
|
|
6466
|
+
export declare class RealtimeTranscriptionSessionCreateRequestInputAudioFormat extends RealtimeTranscriptionSessionCreateRequestInputAudioFormat_base {
|
|
6467
|
+
}
|
|
6468
|
+
declare const RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel_base: S.Literal<["gpt-4o-transcribe", "gpt-4o-mini-transcribe", "whisper-1"]>;
|
|
6469
|
+
export declare class RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel extends RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel_base {
|
|
6470
|
+
}
|
|
6471
|
+
declare const RealtimeTranscriptionSessionCreateRequestTurnDetectionType_base: S.Literal<["server_vad", "semantic_vad"]>;
|
|
6472
|
+
export declare class RealtimeTranscriptionSessionCreateRequestTurnDetectionType extends RealtimeTranscriptionSessionCreateRequestTurnDetectionType_base {
|
|
6473
|
+
}
|
|
6474
|
+
declare const RealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness_base: S.Literal<["low", "medium", "high", "auto"]>;
|
|
6475
|
+
export declare class RealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness extends RealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness_base {
|
|
6476
|
+
}
|
|
6477
|
+
declare const RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType_base: S.Literal<["near_field", "far_field"]>;
|
|
6478
|
+
export declare class RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType extends RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType_base {
|
|
6479
|
+
}
|
|
6480
|
+
declare const RealtimeTranscriptionSessionCreateRequest_base: S.Class<RealtimeTranscriptionSessionCreateRequest, {
|
|
6481
|
+
input_audio_format: S.optionalWith<typeof RealtimeTranscriptionSessionCreateRequestInputAudioFormat, {
|
|
6482
|
+
nullable: true;
|
|
6483
|
+
default: () => "pcm16";
|
|
6484
|
+
}>;
|
|
6485
|
+
input_audio_transcription: S.optionalWith<S.Struct<{
|
|
6486
|
+
model: S.optionalWith<typeof RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel, {
|
|
6487
|
+
nullable: true;
|
|
6488
|
+
}>;
|
|
6489
|
+
language: S.optionalWith<typeof S.String, {
|
|
6490
|
+
nullable: true;
|
|
6491
|
+
}>;
|
|
6492
|
+
prompt: S.optionalWith<typeof S.String, {
|
|
6493
|
+
nullable: true;
|
|
6494
|
+
}>;
|
|
6495
|
+
}>, {
|
|
6496
|
+
nullable: true;
|
|
6497
|
+
}>;
|
|
6498
|
+
turn_detection: S.optionalWith<S.Struct<{
|
|
6499
|
+
type: S.optionalWith<typeof RealtimeTranscriptionSessionCreateRequestTurnDetectionType, {
|
|
6500
|
+
nullable: true;
|
|
6501
|
+
default: () => "server_vad";
|
|
6502
|
+
}>;
|
|
6503
|
+
eagerness: S.optionalWith<typeof RealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness, {
|
|
6504
|
+
nullable: true;
|
|
6505
|
+
default: () => "auto";
|
|
6506
|
+
}>;
|
|
6507
|
+
threshold: S.optionalWith<typeof S.Number, {
|
|
6508
|
+
nullable: true;
|
|
6509
|
+
}>;
|
|
6510
|
+
prefix_padding_ms: S.optionalWith<typeof S.Int, {
|
|
6511
|
+
nullable: true;
|
|
6512
|
+
}>;
|
|
6513
|
+
silence_duration_ms: S.optionalWith<typeof S.Int, {
|
|
6514
|
+
nullable: true;
|
|
6515
|
+
}>;
|
|
6516
|
+
create_response: S.optionalWith<typeof S.Boolean, {
|
|
6517
|
+
nullable: true;
|
|
6518
|
+
default: () => true;
|
|
6519
|
+
}>;
|
|
6520
|
+
interrupt_response: S.optionalWith<typeof S.Boolean, {
|
|
6521
|
+
nullable: true;
|
|
6522
|
+
default: () => true;
|
|
6523
|
+
}>;
|
|
6524
|
+
}>, {
|
|
6525
|
+
nullable: true;
|
|
6526
|
+
}>;
|
|
6527
|
+
input_audio_noise_reduction: S.optionalWith<S.NullOr<S.Struct<{
|
|
6528
|
+
type: S.optionalWith<typeof RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType, {
|
|
6529
|
+
nullable: true;
|
|
6530
|
+
}>;
|
|
6531
|
+
}>>, {
|
|
6532
|
+
default: () => null;
|
|
6533
|
+
}>;
|
|
6534
|
+
include: S.optionalWith<S.Array$<typeof S.String>, {
|
|
6535
|
+
nullable: true;
|
|
6536
|
+
}>;
|
|
6537
|
+
}, S.Struct.Encoded<{
|
|
6538
|
+
input_audio_format: S.optionalWith<typeof RealtimeTranscriptionSessionCreateRequestInputAudioFormat, {
|
|
6539
|
+
nullable: true;
|
|
6540
|
+
default: () => "pcm16";
|
|
6541
|
+
}>;
|
|
6542
|
+
input_audio_transcription: S.optionalWith<S.Struct<{
|
|
6543
|
+
model: S.optionalWith<typeof RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel, {
|
|
6544
|
+
nullable: true;
|
|
6545
|
+
}>;
|
|
6546
|
+
language: S.optionalWith<typeof S.String, {
|
|
6547
|
+
nullable: true;
|
|
6548
|
+
}>;
|
|
6549
|
+
prompt: S.optionalWith<typeof S.String, {
|
|
6550
|
+
nullable: true;
|
|
6551
|
+
}>;
|
|
6552
|
+
}>, {
|
|
6553
|
+
nullable: true;
|
|
6554
|
+
}>;
|
|
6555
|
+
turn_detection: S.optionalWith<S.Struct<{
|
|
6556
|
+
type: S.optionalWith<typeof RealtimeTranscriptionSessionCreateRequestTurnDetectionType, {
|
|
6557
|
+
nullable: true;
|
|
6558
|
+
default: () => "server_vad";
|
|
6559
|
+
}>;
|
|
6560
|
+
eagerness: S.optionalWith<typeof RealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness, {
|
|
6561
|
+
nullable: true;
|
|
6562
|
+
default: () => "auto";
|
|
6563
|
+
}>;
|
|
6564
|
+
threshold: S.optionalWith<typeof S.Number, {
|
|
6565
|
+
nullable: true;
|
|
6566
|
+
}>;
|
|
6567
|
+
prefix_padding_ms: S.optionalWith<typeof S.Int, {
|
|
6568
|
+
nullable: true;
|
|
6569
|
+
}>;
|
|
6570
|
+
silence_duration_ms: S.optionalWith<typeof S.Int, {
|
|
6571
|
+
nullable: true;
|
|
6572
|
+
}>;
|
|
6573
|
+
create_response: S.optionalWith<typeof S.Boolean, {
|
|
6574
|
+
nullable: true;
|
|
6575
|
+
default: () => true;
|
|
6576
|
+
}>;
|
|
6577
|
+
interrupt_response: S.optionalWith<typeof S.Boolean, {
|
|
6578
|
+
nullable: true;
|
|
6579
|
+
default: () => true;
|
|
6580
|
+
}>;
|
|
6581
|
+
}>, {
|
|
6582
|
+
nullable: true;
|
|
6583
|
+
}>;
|
|
6584
|
+
input_audio_noise_reduction: S.optionalWith<S.NullOr<S.Struct<{
|
|
6585
|
+
type: S.optionalWith<typeof RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType, {
|
|
6586
|
+
nullable: true;
|
|
6587
|
+
}>;
|
|
6588
|
+
}>>, {
|
|
6589
|
+
default: () => null;
|
|
6590
|
+
}>;
|
|
6591
|
+
include: S.optionalWith<S.Array$<typeof S.String>, {
|
|
6592
|
+
nullable: true;
|
|
6593
|
+
}>;
|
|
6594
|
+
}>, never, {
|
|
6595
|
+
readonly input_audio_format?: "pcm16" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
6596
|
+
} & {
|
|
6597
|
+
readonly input_audio_transcription?: {
|
|
6598
|
+
readonly model?: "gpt-4o-transcribe" | "gpt-4o-mini-transcribe" | "whisper-1" | undefined;
|
|
6599
|
+
readonly language?: string | undefined;
|
|
6600
|
+
readonly prompt?: string | undefined;
|
|
6601
|
+
} | undefined;
|
|
6602
|
+
} & {
|
|
6603
|
+
readonly turn_detection?: {
|
|
6604
|
+
readonly type: "server_vad" | "semantic_vad";
|
|
6605
|
+
readonly eagerness: "auto" | "low" | "medium" | "high";
|
|
6606
|
+
readonly threshold?: number | undefined;
|
|
6607
|
+
readonly prefix_padding_ms?: number | undefined;
|
|
6608
|
+
readonly silence_duration_ms?: number | undefined;
|
|
6609
|
+
readonly create_response: boolean;
|
|
6610
|
+
readonly interrupt_response: boolean;
|
|
6611
|
+
} | undefined;
|
|
6612
|
+
} & {
|
|
6613
|
+
readonly input_audio_noise_reduction?: {
|
|
6614
|
+
readonly type?: "near_field" | "far_field" | undefined;
|
|
6615
|
+
} | null | undefined;
|
|
6616
|
+
} & {
|
|
6617
|
+
readonly include?: readonly string[] | undefined;
|
|
6618
|
+
}, {}, {}>;
|
|
6619
|
+
export declare class RealtimeTranscriptionSessionCreateRequest extends RealtimeTranscriptionSessionCreateRequest_base {
|
|
6620
|
+
}
|
|
6621
|
+
declare const RealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel_base: S.Literal<["gpt-4o-transcribe", "gpt-4o-mini-transcribe", "whisper-1"]>;
|
|
6622
|
+
export declare class RealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel extends RealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel_base {
|
|
6623
|
+
}
|
|
6624
|
+
declare const RealtimeTranscriptionSessionCreateResponse_base: S.Class<RealtimeTranscriptionSessionCreateResponse, {
|
|
6625
|
+
client_secret: S.Struct<{
|
|
6626
|
+
value: typeof S.String;
|
|
6627
|
+
expires_at: typeof S.Int;
|
|
6628
|
+
}>;
|
|
6629
|
+
input_audio_format: S.optionalWith<typeof S.String, {
|
|
6630
|
+
nullable: true;
|
|
6631
|
+
}>;
|
|
6632
|
+
input_audio_transcription: S.optionalWith<S.Struct<{
|
|
6633
|
+
model: S.optionalWith<typeof RealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel, {
|
|
6634
|
+
nullable: true;
|
|
6635
|
+
}>;
|
|
6636
|
+
language: S.optionalWith<typeof S.String, {
|
|
6637
|
+
nullable: true;
|
|
6638
|
+
}>;
|
|
6639
|
+
prompt: S.optionalWith<typeof S.String, {
|
|
6640
|
+
nullable: true;
|
|
6641
|
+
}>;
|
|
6642
|
+
}>, {
|
|
6643
|
+
nullable: true;
|
|
6644
|
+
}>;
|
|
6645
|
+
turn_detection: S.optionalWith<S.Struct<{
|
|
6646
|
+
type: S.optionalWith<typeof S.String, {
|
|
6647
|
+
nullable: true;
|
|
6648
|
+
}>;
|
|
6649
|
+
threshold: S.optionalWith<typeof S.Number, {
|
|
6650
|
+
nullable: true;
|
|
6651
|
+
}>;
|
|
6652
|
+
prefix_padding_ms: S.optionalWith<typeof S.Int, {
|
|
6653
|
+
nullable: true;
|
|
6654
|
+
}>;
|
|
6655
|
+
silence_duration_ms: S.optionalWith<typeof S.Int, {
|
|
6656
|
+
nullable: true;
|
|
6657
|
+
}>;
|
|
6658
|
+
}>, {
|
|
6659
|
+
nullable: true;
|
|
6660
|
+
}>;
|
|
6661
|
+
}, S.Struct.Encoded<{
|
|
6662
|
+
client_secret: S.Struct<{
|
|
6663
|
+
value: typeof S.String;
|
|
6664
|
+
expires_at: typeof S.Int;
|
|
6665
|
+
}>;
|
|
6666
|
+
input_audio_format: S.optionalWith<typeof S.String, {
|
|
6667
|
+
nullable: true;
|
|
6668
|
+
}>;
|
|
6669
|
+
input_audio_transcription: S.optionalWith<S.Struct<{
|
|
6670
|
+
model: S.optionalWith<typeof RealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel, {
|
|
6671
|
+
nullable: true;
|
|
6672
|
+
}>;
|
|
6673
|
+
language: S.optionalWith<typeof S.String, {
|
|
6674
|
+
nullable: true;
|
|
6675
|
+
}>;
|
|
6676
|
+
prompt: S.optionalWith<typeof S.String, {
|
|
6677
|
+
nullable: true;
|
|
6678
|
+
}>;
|
|
6679
|
+
}>, {
|
|
6680
|
+
nullable: true;
|
|
6681
|
+
}>;
|
|
6682
|
+
turn_detection: S.optionalWith<S.Struct<{
|
|
6683
|
+
type: S.optionalWith<typeof S.String, {
|
|
6684
|
+
nullable: true;
|
|
6685
|
+
}>;
|
|
6686
|
+
threshold: S.optionalWith<typeof S.Number, {
|
|
6687
|
+
nullable: true;
|
|
6688
|
+
}>;
|
|
6689
|
+
prefix_padding_ms: S.optionalWith<typeof S.Int, {
|
|
6690
|
+
nullable: true;
|
|
6691
|
+
}>;
|
|
6692
|
+
silence_duration_ms: S.optionalWith<typeof S.Int, {
|
|
6693
|
+
nullable: true;
|
|
6694
|
+
}>;
|
|
6695
|
+
}>, {
|
|
6696
|
+
nullable: true;
|
|
6697
|
+
}>;
|
|
6698
|
+
}>, never, {
|
|
6699
|
+
readonly input_audio_format?: string | undefined;
|
|
6700
|
+
} & {
|
|
6701
|
+
readonly input_audio_transcription?: {
|
|
6702
|
+
readonly model?: "gpt-4o-transcribe" | "gpt-4o-mini-transcribe" | "whisper-1" | undefined;
|
|
6703
|
+
readonly language?: string | undefined;
|
|
6704
|
+
readonly prompt?: string | undefined;
|
|
6705
|
+
} | undefined;
|
|
6706
|
+
} & {
|
|
6707
|
+
readonly turn_detection?: {
|
|
6708
|
+
readonly type?: string | undefined;
|
|
6709
|
+
readonly threshold?: number | undefined;
|
|
6710
|
+
readonly prefix_padding_ms?: number | undefined;
|
|
6711
|
+
readonly silence_duration_ms?: number | undefined;
|
|
6712
|
+
} | undefined;
|
|
6713
|
+
} & {
|
|
6714
|
+
readonly client_secret: {
|
|
6715
|
+
readonly value: string;
|
|
6716
|
+
readonly expires_at: number;
|
|
6717
|
+
};
|
|
6718
|
+
}, {}, {}>;
|
|
6719
|
+
export declare class RealtimeTranscriptionSessionCreateResponse extends RealtimeTranscriptionSessionCreateResponse_base {
|
|
6720
|
+
}
|
|
6300
6721
|
declare const EasyInputMessageRole_base: S.Literal<["user", "assistant", "system", "developer"]>;
|
|
6301
6722
|
export declare class EasyInputMessageRole extends EasyInputMessageRole_base {
|
|
6302
6723
|
}
|
|
@@ -6671,7 +7092,9 @@ declare const FunctionToolCallStatus_base: S.Literal<["in_progress", "completed"
|
|
|
6671
7092
|
export declare class FunctionToolCallStatus extends FunctionToolCallStatus_base {
|
|
6672
7093
|
}
|
|
6673
7094
|
declare const FunctionToolCall_base: S.Struct<{
|
|
6674
|
-
id: typeof S.String
|
|
7095
|
+
id: S.optionalWith<typeof S.String, {
|
|
7096
|
+
nullable: true;
|
|
7097
|
+
}>;
|
|
6675
7098
|
type: typeof FunctionToolCallType;
|
|
6676
7099
|
call_id: typeof S.String;
|
|
6677
7100
|
name: typeof S.String;
|
|
@@ -6710,8 +7133,8 @@ export declare class ReasoningItemStatus extends ReasoningItemStatus_base {
|
|
|
6710
7133
|
declare const ReasoningItem_base: S.Struct<{
|
|
6711
7134
|
type: typeof ReasoningItemType;
|
|
6712
7135
|
id: typeof S.String;
|
|
6713
|
-
|
|
6714
|
-
type: S.Literal<["
|
|
7136
|
+
summary: S.Array$<S.Struct<{
|
|
7137
|
+
type: S.Literal<["summary_text"]>;
|
|
6715
7138
|
text: typeof S.String;
|
|
6716
7139
|
}>>;
|
|
6717
7140
|
status: S.optionalWith<typeof ReasoningItemStatus, {
|
|
@@ -6738,11 +7161,20 @@ export declare class InputItem extends InputItem_base {
|
|
|
6738
7161
|
declare const Includable_base: S.Literal<["file_search_call.results", "message.input_image.image_url", "computer_call_output.output.image_url"]>;
|
|
6739
7162
|
export declare class Includable extends Includable_base {
|
|
6740
7163
|
}
|
|
7164
|
+
declare const ModelIdsResponsesEnum_base: S.Literal<["o1-pro", "o1-pro-2025-03-19", "computer-use-preview", "computer-use-preview-2025-03-11"]>;
|
|
7165
|
+
export declare class ModelIdsResponsesEnum extends ModelIdsResponsesEnum_base {
|
|
7166
|
+
}
|
|
7167
|
+
declare const ModelIdsResponses_base: S.Union<[typeof ModelIdsShared, typeof ModelIdsResponsesEnum]>;
|
|
7168
|
+
export declare class ModelIdsResponses extends ModelIdsResponses_base {
|
|
7169
|
+
}
|
|
6741
7170
|
declare const ReasoningGenerateSummary_base: S.Literal<["concise", "detailed"]>;
|
|
6742
7171
|
export declare class ReasoningGenerateSummary extends ReasoningGenerateSummary_base {
|
|
6743
7172
|
}
|
|
6744
7173
|
declare const Reasoning_base: S.Struct<{
|
|
6745
|
-
effort: S.
|
|
7174
|
+
effort: S.optionalWith<typeof ReasoningEffort, {
|
|
7175
|
+
nullable: true;
|
|
7176
|
+
default: () => "medium";
|
|
7177
|
+
}>;
|
|
6746
7178
|
generate_summary: S.optionalWith<typeof ReasoningGenerateSummary, {
|
|
6747
7179
|
nullable: true;
|
|
6748
7180
|
}>;
|
|
@@ -6789,7 +7221,7 @@ export declare class CompoundFilterType extends CompoundFilterType_base {
|
|
|
6789
7221
|
}
|
|
6790
7222
|
declare const CompoundFilter_base: S.Struct<{
|
|
6791
7223
|
type: typeof CompoundFilterType;
|
|
6792
|
-
filters: S.Array$<typeof ComparisonFilter
|
|
7224
|
+
filters: S.Array$<S.Union<[typeof ComparisonFilter, S.Record$<typeof S.String, typeof S.Unknown>]>>;
|
|
6793
7225
|
}>;
|
|
6794
7226
|
export declare class CompoundFilter extends CompoundFilter_base {
|
|
6795
7227
|
}
|
|
@@ -6834,7 +7266,7 @@ declare const FunctionTool_base: S.Struct<{
|
|
|
6834
7266
|
}>;
|
|
6835
7267
|
export declare class FunctionTool extends FunctionTool_base {
|
|
6836
7268
|
}
|
|
6837
|
-
declare const ComputerToolType_base: S.Literal<["
|
|
7269
|
+
declare const ComputerToolType_base: S.Literal<["computer_use_preview"]>;
|
|
6838
7270
|
export declare class ComputerToolType extends ComputerToolType_base {
|
|
6839
7271
|
}
|
|
6840
7272
|
declare const ComputerToolEnvironment_base: S.Literal<["mac", "windows", "ubuntu", "browser"]>;
|
|
@@ -6909,9 +7341,6 @@ export declare class ToolChoiceFunction extends ToolChoiceFunction_base {
|
|
|
6909
7341
|
declare const CreateResponseTruncation_base: S.Literal<["auto", "disabled"]>;
|
|
6910
7342
|
export declare class CreateResponseTruncation extends CreateResponseTruncation_base {
|
|
6911
7343
|
}
|
|
6912
|
-
declare const CreateResponseModelEnum_base: S.Literal<["o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "o1-preview", "o1-preview-2024-09-12", "o1-mini", "o1-mini-2024-09-12", "computer-use-preview", "computer-use-preview-2025-02-04", "computer-use-preview-2025-03-11", "gpt-4.5-preview", "gpt-4.5-preview-2025-02-27", "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-10-01", "gpt-4o-audio-preview-2024-12-17", "gpt-4o-mini-audio-preview", "gpt-4o-mini-audio-preview-2024-12-17", "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"]>;
|
|
6913
|
-
export declare class CreateResponseModelEnum extends CreateResponseModelEnum_base {
|
|
6914
|
-
}
|
|
6915
7344
|
declare const CreateResponse_base: S.Class<CreateResponse, {
|
|
6916
7345
|
input: S.Union<[typeof S.String, S.Array$<typeof InputItem>]>;
|
|
6917
7346
|
include: S.optionalWith<S.Array$<typeof Includable>, {
|
|
@@ -6932,6 +7361,7 @@ declare const CreateResponse_base: S.Class<CreateResponse, {
|
|
|
6932
7361
|
previous_response_id: S.optionalWith<typeof S.String, {
|
|
6933
7362
|
nullable: true;
|
|
6934
7363
|
}>;
|
|
7364
|
+
model: typeof ModelIdsResponses;
|
|
6935
7365
|
reasoning: S.optionalWith<typeof Reasoning, {
|
|
6936
7366
|
nullable: true;
|
|
6937
7367
|
}>;
|
|
@@ -6958,7 +7388,6 @@ declare const CreateResponse_base: S.Class<CreateResponse, {
|
|
|
6958
7388
|
nullable: true;
|
|
6959
7389
|
default: () => "disabled";
|
|
6960
7390
|
}>;
|
|
6961
|
-
model: S.Union<[typeof S.String, typeof CreateResponseModelEnum]>;
|
|
6962
7391
|
metadata: S.optionalWith<typeof Metadata, {
|
|
6963
7392
|
nullable: true;
|
|
6964
7393
|
}>;
|
|
@@ -6993,6 +7422,7 @@ declare const CreateResponse_base: S.Class<CreateResponse, {
|
|
|
6993
7422
|
previous_response_id: S.optionalWith<typeof S.String, {
|
|
6994
7423
|
nullable: true;
|
|
6995
7424
|
}>;
|
|
7425
|
+
model: typeof ModelIdsResponses;
|
|
6996
7426
|
reasoning: S.optionalWith<typeof Reasoning, {
|
|
6997
7427
|
nullable: true;
|
|
6998
7428
|
}>;
|
|
@@ -7019,7 +7449,6 @@ declare const CreateResponse_base: S.Class<CreateResponse, {
|
|
|
7019
7449
|
nullable: true;
|
|
7020
7450
|
default: () => "disabled";
|
|
7021
7451
|
}>;
|
|
7022
|
-
model: S.Union<[typeof S.String, typeof CreateResponseModelEnum]>;
|
|
7023
7452
|
metadata: S.optionalWith<typeof Metadata, {
|
|
7024
7453
|
nullable: true;
|
|
7025
7454
|
}>;
|
|
@@ -7069,11 +7498,13 @@ declare const CreateResponse_base: S.Class<CreateResponse, {
|
|
|
7069
7498
|
readonly value: string | number | boolean;
|
|
7070
7499
|
} | {
|
|
7071
7500
|
readonly type: "and" | "or";
|
|
7072
|
-
readonly filters: readonly {
|
|
7501
|
+
readonly filters: readonly ({
|
|
7502
|
+
readonly [x: string]: unknown;
|
|
7503
|
+
} | {
|
|
7073
7504
|
readonly type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
7074
7505
|
readonly key: string;
|
|
7075
7506
|
readonly value: string | number | boolean;
|
|
7076
|
-
}[];
|
|
7507
|
+
})[];
|
|
7077
7508
|
} | undefined;
|
|
7078
7509
|
} | {
|
|
7079
7510
|
readonly type: "function";
|
|
@@ -7084,7 +7515,7 @@ declare const CreateResponse_base: S.Class<CreateResponse, {
|
|
|
7084
7515
|
};
|
|
7085
7516
|
readonly strict: boolean;
|
|
7086
7517
|
} | {
|
|
7087
|
-
readonly type: "
|
|
7518
|
+
readonly type: "computer_use_preview";
|
|
7088
7519
|
readonly display_width: number;
|
|
7089
7520
|
readonly display_height: number;
|
|
7090
7521
|
readonly environment: "mac" | "windows" | "ubuntu" | "browser";
|
|
@@ -7122,9 +7553,9 @@ declare const CreateResponse_base: S.Class<CreateResponse, {
|
|
|
7122
7553
|
readonly file_id?: string | undefined;
|
|
7123
7554
|
} | {
|
|
7124
7555
|
readonly type: "input_file";
|
|
7556
|
+
readonly filename?: string | undefined;
|
|
7125
7557
|
readonly file_data?: string | undefined;
|
|
7126
7558
|
readonly file_id?: string | undefined;
|
|
7127
|
-
readonly filename?: string | undefined;
|
|
7128
7559
|
})[];
|
|
7129
7560
|
readonly role: "assistant" | "developer" | "system" | "user";
|
|
7130
7561
|
} | {
|
|
@@ -7139,20 +7570,20 @@ declare const CreateResponse_base: S.Class<CreateResponse, {
|
|
|
7139
7570
|
readonly stream?: boolean | undefined;
|
|
7140
7571
|
} & {
|
|
7141
7572
|
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
7142
|
-
readonly type: "file_search" | "
|
|
7573
|
+
readonly type: "file_search" | "computer_use_preview" | "web_search_preview" | "web_search_preview_2025_03_11";
|
|
7143
7574
|
} | {
|
|
7144
7575
|
readonly type: "function";
|
|
7145
7576
|
readonly name: string;
|
|
7146
7577
|
} | undefined;
|
|
7147
7578
|
} & {
|
|
7148
7579
|
readonly parallel_tool_calls?: boolean | undefined;
|
|
7580
|
+
} & {
|
|
7581
|
+
readonly include?: readonly ("file_search_call.results" | "message.input_image.image_url" | "computer_call_output.output.image_url")[] | undefined;
|
|
7149
7582
|
} & {
|
|
7150
7583
|
readonly reasoning?: {
|
|
7151
|
-
readonly effort: "low" | "medium" | "high"
|
|
7584
|
+
readonly effort: "low" | "medium" | "high";
|
|
7152
7585
|
readonly generate_summary?: "concise" | "detailed" | undefined;
|
|
7153
7586
|
} | undefined;
|
|
7154
|
-
} & {
|
|
7155
|
-
readonly include?: readonly ("file_search_call.results" | "message.input_image.image_url" | "computer_call_output.output.image_url")[] | undefined;
|
|
7156
7587
|
} & {
|
|
7157
7588
|
readonly previous_response_id?: string | undefined;
|
|
7158
7589
|
} & {
|
|
@@ -7185,6 +7616,9 @@ export declare class OutputItem extends OutputItem_base {
|
|
|
7185
7616
|
}
|
|
7186
7617
|
declare const ResponseUsage_base: S.Struct<{
|
|
7187
7618
|
input_tokens: typeof S.Int;
|
|
7619
|
+
input_tokens_details: S.Struct<{
|
|
7620
|
+
cached_tokens: typeof S.Int;
|
|
7621
|
+
}>;
|
|
7188
7622
|
output_tokens: typeof S.Int;
|
|
7189
7623
|
output_tokens_details: S.Struct<{
|
|
7190
7624
|
reasoning_tokens: typeof S.Int;
|
|
@@ -7196,9 +7630,6 @@ export declare class ResponseUsage extends ResponseUsage_base {
|
|
|
7196
7630
|
declare const ResponseTruncation_base: S.Literal<["auto", "disabled"]>;
|
|
7197
7631
|
export declare class ResponseTruncation extends ResponseTruncation_base {
|
|
7198
7632
|
}
|
|
7199
|
-
declare const ResponseModelEnum_base: S.Literal<["o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "o1-preview", "o1-preview-2024-09-12", "o1-mini", "o1-mini-2024-09-12", "computer-use-preview", "computer-use-preview-2025-02-04", "computer-use-preview-2025-03-11", "gpt-4.5-preview", "gpt-4.5-preview-2025-02-27", "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-10-01", "gpt-4o-audio-preview-2024-12-17", "gpt-4o-mini-audio-preview", "gpt-4o-mini-audio-preview-2024-12-17", "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"]>;
|
|
7200
|
-
export declare class ResponseModelEnum extends ResponseModelEnum_base {
|
|
7201
|
-
}
|
|
7202
7633
|
declare const Response_base: S.Class<Response, {
|
|
7203
7634
|
id: typeof S.String;
|
|
7204
7635
|
object: typeof ResponseObject;
|
|
@@ -7223,6 +7654,7 @@ declare const Response_base: S.Class<Response, {
|
|
|
7223
7654
|
previous_response_id: S.optionalWith<typeof S.String, {
|
|
7224
7655
|
nullable: true;
|
|
7225
7656
|
}>;
|
|
7657
|
+
model: typeof ModelIdsResponses;
|
|
7226
7658
|
reasoning: S.optionalWith<typeof Reasoning, {
|
|
7227
7659
|
nullable: true;
|
|
7228
7660
|
}>;
|
|
@@ -7243,7 +7675,6 @@ declare const Response_base: S.Class<Response, {
|
|
|
7243
7675
|
nullable: true;
|
|
7244
7676
|
default: () => "disabled";
|
|
7245
7677
|
}>;
|
|
7246
|
-
model: S.Union<[typeof S.String, typeof ResponseModelEnum]>;
|
|
7247
7678
|
metadata: S.NullOr<typeof Metadata>;
|
|
7248
7679
|
temperature: S.PropertySignature<":", number | null, never, ":", number | null, true, never>;
|
|
7249
7680
|
top_p: S.PropertySignature<":", number | null, never, ":", number | null, true, never>;
|
|
@@ -7274,6 +7705,7 @@ declare const Response_base: S.Class<Response, {
|
|
|
7274
7705
|
previous_response_id: S.optionalWith<typeof S.String, {
|
|
7275
7706
|
nullable: true;
|
|
7276
7707
|
}>;
|
|
7708
|
+
model: typeof ModelIdsResponses;
|
|
7277
7709
|
reasoning: S.optionalWith<typeof Reasoning, {
|
|
7278
7710
|
nullable: true;
|
|
7279
7711
|
}>;
|
|
@@ -7294,7 +7726,6 @@ declare const Response_base: S.Class<Response, {
|
|
|
7294
7726
|
nullable: true;
|
|
7295
7727
|
default: () => "disabled";
|
|
7296
7728
|
}>;
|
|
7297
|
-
model: S.Union<[typeof S.String, typeof ResponseModelEnum]>;
|
|
7298
7729
|
metadata: S.NullOr<typeof Metadata>;
|
|
7299
7730
|
temperature: S.PropertySignature<":", number | null, never, ":", number | null, true, never>;
|
|
7300
7731
|
top_p: S.PropertySignature<":", number | null, never, ":", number | null, true, never>;
|
|
@@ -7342,11 +7773,13 @@ declare const Response_base: S.Class<Response, {
|
|
|
7342
7773
|
readonly value: string | number | boolean;
|
|
7343
7774
|
} | {
|
|
7344
7775
|
readonly type: "and" | "or";
|
|
7345
|
-
readonly filters: readonly {
|
|
7776
|
+
readonly filters: readonly ({
|
|
7777
|
+
readonly [x: string]: unknown;
|
|
7778
|
+
} | {
|
|
7346
7779
|
readonly type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
7347
7780
|
readonly key: string;
|
|
7348
7781
|
readonly value: string | number | boolean;
|
|
7349
|
-
}[];
|
|
7782
|
+
})[];
|
|
7350
7783
|
} | undefined;
|
|
7351
7784
|
} | {
|
|
7352
7785
|
readonly type: "function";
|
|
@@ -7357,7 +7790,7 @@ declare const Response_base: S.Class<Response, {
|
|
|
7357
7790
|
};
|
|
7358
7791
|
readonly strict: boolean;
|
|
7359
7792
|
} | {
|
|
7360
|
-
readonly type: "
|
|
7793
|
+
readonly type: "computer_use_preview";
|
|
7361
7794
|
readonly display_width: number;
|
|
7362
7795
|
readonly display_height: number;
|
|
7363
7796
|
readonly environment: "mac" | "windows" | "ubuntu" | "browser";
|
|
@@ -7387,6 +7820,9 @@ declare const Response_base: S.Class<Response, {
|
|
|
7387
7820
|
readonly total_tokens: number;
|
|
7388
7821
|
readonly input_tokens: number;
|
|
7389
7822
|
readonly output_tokens: number;
|
|
7823
|
+
readonly input_tokens_details: {
|
|
7824
|
+
readonly cached_tokens: number;
|
|
7825
|
+
};
|
|
7390
7826
|
readonly output_tokens_details: {
|
|
7391
7827
|
readonly reasoning_tokens: number;
|
|
7392
7828
|
};
|
|
@@ -7395,7 +7831,7 @@ declare const Response_base: S.Class<Response, {
|
|
|
7395
7831
|
readonly user?: string | undefined;
|
|
7396
7832
|
} & {
|
|
7397
7833
|
readonly tool_choice: "auto" | "none" | "required" | {
|
|
7398
|
-
readonly type: "file_search" | "
|
|
7834
|
+
readonly type: "file_search" | "computer_use_preview" | "web_search_preview" | "web_search_preview_2025_03_11";
|
|
7399
7835
|
} | {
|
|
7400
7836
|
readonly type: "function";
|
|
7401
7837
|
readonly name: string;
|
|
@@ -7443,8 +7879,8 @@ declare const Response_base: S.Class<Response, {
|
|
|
7443
7879
|
readonly status: "failed" | "in_progress" | "completed" | "incomplete" | "searching";
|
|
7444
7880
|
readonly results?: readonly {
|
|
7445
7881
|
readonly text?: string | undefined;
|
|
7446
|
-
readonly file_id?: string | undefined;
|
|
7447
7882
|
readonly filename?: string | undefined;
|
|
7883
|
+
readonly file_id?: string | undefined;
|
|
7448
7884
|
readonly attributes?: {
|
|
7449
7885
|
readonly [x: string]: unknown;
|
|
7450
7886
|
} | undefined;
|
|
@@ -7504,7 +7940,7 @@ declare const Response_base: S.Class<Response, {
|
|
|
7504
7940
|
} | {
|
|
7505
7941
|
readonly type: "function_call";
|
|
7506
7942
|
readonly name: string;
|
|
7507
|
-
readonly id
|
|
7943
|
+
readonly id?: string | undefined;
|
|
7508
7944
|
readonly status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
7509
7945
|
readonly arguments: string;
|
|
7510
7946
|
readonly call_id: string;
|
|
@@ -7512,14 +7948,14 @@ declare const Response_base: S.Class<Response, {
|
|
|
7512
7948
|
readonly type: "reasoning";
|
|
7513
7949
|
readonly id: string;
|
|
7514
7950
|
readonly status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
7515
|
-
readonly
|
|
7516
|
-
readonly type: "
|
|
7951
|
+
readonly summary: readonly {
|
|
7952
|
+
readonly type: "summary_text";
|
|
7517
7953
|
readonly text: string;
|
|
7518
7954
|
}[];
|
|
7519
7955
|
})[];
|
|
7520
7956
|
} & {
|
|
7521
7957
|
readonly reasoning?: {
|
|
7522
|
-
readonly effort: "low" | "medium" | "high"
|
|
7958
|
+
readonly effort: "low" | "medium" | "high";
|
|
7523
7959
|
readonly generate_summary?: "concise" | "detailed" | undefined;
|
|
7524
7960
|
} | undefined;
|
|
7525
7961
|
} & {
|
|
@@ -7607,6 +8043,24 @@ declare const ComputerToolCallOutputResource_base: S.Struct<{
|
|
|
7607
8043
|
}>;
|
|
7608
8044
|
export declare class ComputerToolCallOutputResource extends ComputerToolCallOutputResource_base {
|
|
7609
8045
|
}
|
|
8046
|
+
declare const FunctionToolCallResourceType_base: S.Literal<["function_call"]>;
|
|
8047
|
+
export declare class FunctionToolCallResourceType extends FunctionToolCallResourceType_base {
|
|
8048
|
+
}
|
|
8049
|
+
declare const FunctionToolCallResourceStatus_base: S.Literal<["in_progress", "completed", "incomplete"]>;
|
|
8050
|
+
export declare class FunctionToolCallResourceStatus extends FunctionToolCallResourceStatus_base {
|
|
8051
|
+
}
|
|
8052
|
+
declare const FunctionToolCallResource_base: S.Struct<{
|
|
8053
|
+
id: typeof S.String;
|
|
8054
|
+
type: typeof FunctionToolCallResourceType;
|
|
8055
|
+
call_id: typeof S.String;
|
|
8056
|
+
name: typeof S.String;
|
|
8057
|
+
arguments: typeof S.String;
|
|
8058
|
+
status: S.optionalWith<typeof FunctionToolCallResourceStatus, {
|
|
8059
|
+
nullable: true;
|
|
8060
|
+
}>;
|
|
8061
|
+
}>;
|
|
8062
|
+
export declare class FunctionToolCallResource extends FunctionToolCallResource_base {
|
|
8063
|
+
}
|
|
7610
8064
|
declare const FunctionToolCallOutputResourceType_base: S.Literal<["function_call_output"]>;
|
|
7611
8065
|
export declare class FunctionToolCallOutputResourceType extends FunctionToolCallOutputResourceType_base {
|
|
7612
8066
|
}
|
|
@@ -7624,7 +8078,7 @@ declare const FunctionToolCallOutputResource_base: S.Struct<{
|
|
|
7624
8078
|
}>;
|
|
7625
8079
|
export declare class FunctionToolCallOutputResource extends FunctionToolCallOutputResource_base {
|
|
7626
8080
|
}
|
|
7627
|
-
declare const ItemResource_base: S.Union<[typeof InputMessageResource, typeof OutputMessage, typeof FileSearchToolCall, typeof ComputerToolCall, typeof ComputerToolCallOutputResource, typeof WebSearchToolCall, typeof
|
|
8081
|
+
declare const ItemResource_base: S.Union<[typeof InputMessageResource, typeof OutputMessage, typeof FileSearchToolCall, typeof ComputerToolCall, typeof ComputerToolCallOutputResource, typeof WebSearchToolCall, typeof FunctionToolCallResource, typeof FunctionToolCallOutputResource]>;
|
|
7628
8082
|
export declare class ItemResource extends ItemResource_base {
|
|
7629
8083
|
}
|
|
7630
8084
|
declare const ResponseItemList_base: S.Class<ResponseItemList, {
|
|
@@ -7681,8 +8135,8 @@ declare const ResponseItemList_base: S.Class<ResponseItemList, {
|
|
|
7681
8135
|
readonly status: "failed" | "in_progress" | "completed" | "incomplete" | "searching";
|
|
7682
8136
|
readonly results?: readonly {
|
|
7683
8137
|
readonly text?: string | undefined;
|
|
7684
|
-
readonly file_id?: string | undefined;
|
|
7685
8138
|
readonly filename?: string | undefined;
|
|
8139
|
+
readonly file_id?: string | undefined;
|
|
7686
8140
|
readonly attributes?: {
|
|
7687
8141
|
readonly [x: string]: unknown;
|
|
7688
8142
|
} | undefined;
|
|
@@ -7739,13 +8193,6 @@ declare const ResponseItemList_base: S.Class<ResponseItemList, {
|
|
|
7739
8193
|
readonly type: "web_search_call";
|
|
7740
8194
|
readonly id: string;
|
|
7741
8195
|
readonly status: "failed" | "in_progress" | "completed" | "searching";
|
|
7742
|
-
} | {
|
|
7743
|
-
readonly type: "function_call";
|
|
7744
|
-
readonly name: string;
|
|
7745
|
-
readonly id: string;
|
|
7746
|
-
readonly status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
7747
|
-
readonly arguments: string;
|
|
7748
|
-
readonly call_id: string;
|
|
7749
8196
|
} | {
|
|
7750
8197
|
readonly type?: "message" | undefined;
|
|
7751
8198
|
readonly id: string;
|
|
@@ -7760,9 +8207,9 @@ declare const ResponseItemList_base: S.Class<ResponseItemList, {
|
|
|
7760
8207
|
readonly file_id?: string | undefined;
|
|
7761
8208
|
} | {
|
|
7762
8209
|
readonly type: "input_file";
|
|
8210
|
+
readonly filename?: string | undefined;
|
|
7763
8211
|
readonly file_data?: string | undefined;
|
|
7764
8212
|
readonly file_id?: string | undefined;
|
|
7765
|
-
readonly filename?: string | undefined;
|
|
7766
8213
|
})[];
|
|
7767
8214
|
readonly role: "developer" | "system" | "user";
|
|
7768
8215
|
} | {
|
|
@@ -7780,6 +8227,13 @@ declare const ResponseItemList_base: S.Class<ResponseItemList, {
|
|
|
7780
8227
|
readonly image_url?: string | undefined;
|
|
7781
8228
|
readonly file_id?: string | undefined;
|
|
7782
8229
|
};
|
|
8230
|
+
} | {
|
|
8231
|
+
readonly type: "function_call";
|
|
8232
|
+
readonly name: string;
|
|
8233
|
+
readonly id: string;
|
|
8234
|
+
readonly status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
8235
|
+
readonly arguments: string;
|
|
8236
|
+
readonly call_id: string;
|
|
7783
8237
|
} | {
|
|
7784
8238
|
readonly type: "function_call_output";
|
|
7785
8239
|
readonly id: string;
|
|
@@ -9600,10 +10054,10 @@ declare const CreateUploadRequest_base: S.Class<CreateUploadRequest, {
|
|
|
9600
10054
|
mime_type: typeof S.String;
|
|
9601
10055
|
}>, never, {
|
|
9602
10056
|
readonly bytes: number;
|
|
9603
|
-
} & {
|
|
9604
|
-
readonly purpose: "batch" | "assistants" | "fine-tune" | "vision";
|
|
9605
10057
|
} & {
|
|
9606
10058
|
readonly filename: string;
|
|
10059
|
+
} & {
|
|
10060
|
+
readonly purpose: "batch" | "assistants" | "fine-tune" | "vision";
|
|
9607
10061
|
} & {
|
|
9608
10062
|
readonly mime_type: string;
|
|
9609
10063
|
}, {}, {}>;
|
|
@@ -9675,28 +10129,28 @@ declare const Upload_base: S.Class<Upload, {
|
|
|
9675
10129
|
readonly id: string;
|
|
9676
10130
|
} & {
|
|
9677
10131
|
readonly created_at: number;
|
|
10132
|
+
} & {
|
|
10133
|
+
readonly bytes: number;
|
|
9678
10134
|
} & {
|
|
9679
10135
|
readonly status: "completed" | "expired" | "cancelled" | "pending";
|
|
9680
10136
|
} & {
|
|
9681
10137
|
readonly expires_at: number;
|
|
9682
|
-
} & {
|
|
9683
|
-
readonly bytes: number;
|
|
9684
10138
|
} & {
|
|
9685
10139
|
readonly file?: {
|
|
9686
10140
|
readonly object: "file";
|
|
9687
10141
|
readonly id: string;
|
|
9688
10142
|
readonly created_at: number;
|
|
10143
|
+
readonly bytes: number;
|
|
9689
10144
|
readonly status: "uploaded" | "processed" | "error";
|
|
9690
10145
|
readonly expires_at?: number | undefined;
|
|
9691
|
-
readonly bytes: number;
|
|
9692
|
-
readonly purpose: "batch" | "assistants" | "assistants_output" | "batch_output" | "fine-tune" | "fine-tune-results" | "vision";
|
|
9693
10146
|
readonly filename: string;
|
|
10147
|
+
readonly purpose: "batch" | "assistants" | "assistants_output" | "batch_output" | "fine-tune" | "fine-tune-results" | "vision";
|
|
9694
10148
|
readonly status_details?: string | undefined;
|
|
9695
10149
|
} | undefined;
|
|
9696
|
-
} & {
|
|
9697
|
-
readonly purpose: string;
|
|
9698
10150
|
} & {
|
|
9699
10151
|
readonly filename: string;
|
|
10152
|
+
} & {
|
|
10153
|
+
readonly purpose: string;
|
|
9700
10154
|
}, {}, {}>;
|
|
9701
10155
|
export declare class Upload extends Upload_base {
|
|
9702
10156
|
}
|
|
@@ -10383,11 +10837,13 @@ declare const VectorStoreSearchRequest_base: S.Class<VectorStoreSearchRequest, {
|
|
|
10383
10837
|
readonly value: string | number | boolean;
|
|
10384
10838
|
} | {
|
|
10385
10839
|
readonly type: "and" | "or";
|
|
10386
|
-
readonly filters: readonly {
|
|
10840
|
+
readonly filters: readonly ({
|
|
10841
|
+
readonly [x: string]: unknown;
|
|
10842
|
+
} | {
|
|
10387
10843
|
readonly type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
10388
10844
|
readonly key: string;
|
|
10389
10845
|
readonly value: string | number | boolean;
|
|
10390
|
-
}[];
|
|
10846
|
+
})[];
|
|
10391
10847
|
} | undefined;
|
|
10392
10848
|
} & {
|
|
10393
10849
|
readonly query: string | readonly string[];
|
|
@@ -10439,8 +10895,8 @@ declare const VectorStoreSearchResultsPage_base: S.Class<VectorStoreSearchResult
|
|
|
10439
10895
|
readonly type: "text";
|
|
10440
10896
|
readonly text: string;
|
|
10441
10897
|
}[];
|
|
10442
|
-
readonly file_id: string;
|
|
10443
10898
|
readonly filename: string;
|
|
10899
|
+
readonly file_id: string;
|
|
10444
10900
|
readonly attributes: {
|
|
10445
10901
|
readonly [x: string]: unknown;
|
|
10446
10902
|
} | null;
|
|
@@ -10482,6 +10938,9 @@ export interface Client {
|
|
|
10482
10938
|
readonly "retrieveFile": (fileId: string) => Effect.Effect<typeof OpenAIFile.Type, HttpClientError.HttpClientError | ParseError>;
|
|
10483
10939
|
readonly "deleteFile": (fileId: string) => Effect.Effect<typeof DeleteFileResponse.Type, HttpClientError.HttpClientError | ParseError>;
|
|
10484
10940
|
readonly "downloadFile": (fileId: string) => Effect.Effect<typeof DownloadFile200.Type, HttpClientError.HttpClientError | ParseError>;
|
|
10941
|
+
readonly "listFineTuningCheckpointPermissions": (permissionId: string, options: typeof ListFineTuningCheckpointPermissionsParams.Encoded) => Effect.Effect<typeof ListFineTuningCheckpointPermissionResponse.Type, HttpClientError.HttpClientError | ParseError>;
|
|
10942
|
+
readonly "createFineTuningCheckpointPermission": (permissionId: string, options: typeof CreateFineTuningCheckpointPermissionRequest.Encoded) => Effect.Effect<typeof ListFineTuningCheckpointPermissionResponse.Type, HttpClientError.HttpClientError | ParseError>;
|
|
10943
|
+
readonly "deleteFineTuningCheckpointPermission": (permissionId: string) => Effect.Effect<typeof DeleteFineTuningCheckpointPermissionResponse.Type, HttpClientError.HttpClientError | ParseError>;
|
|
10485
10944
|
readonly "listPaginatedFineTuningJobs": (options: typeof ListPaginatedFineTuningJobsParams.Encoded) => Effect.Effect<typeof ListPaginatedFineTuningJobsResponse.Type, HttpClientError.HttpClientError | ParseError>;
|
|
10486
10945
|
readonly "createFineTuningJob": (options: typeof CreateFineTuningJobRequest.Encoded) => Effect.Effect<typeof FineTuningJob.Type, HttpClientError.HttpClientError | ParseError>;
|
|
10487
10946
|
readonly "retrieveFineTuningJob": (fineTuningJobId: string) => Effect.Effect<typeof FineTuningJob.Type, HttpClientError.HttpClientError | ParseError>;
|
|
@@ -10537,6 +10996,7 @@ export interface Client {
|
|
|
10537
10996
|
readonly "modifyUser": (userId: string, options: typeof UserRoleUpdateRequest.Encoded) => Effect.Effect<typeof User.Type, HttpClientError.HttpClientError | ParseError>;
|
|
10538
10997
|
readonly "deleteUser": (userId: string) => Effect.Effect<typeof UserDeleteResponse.Type, HttpClientError.HttpClientError | ParseError>;
|
|
10539
10998
|
readonly "createRealtimeSession": (options: typeof RealtimeSessionCreateRequest.Encoded) => Effect.Effect<typeof RealtimeSessionCreateResponse.Type, HttpClientError.HttpClientError | ParseError>;
|
|
10999
|
+
readonly "createRealtimeTranscriptionSession": (options: typeof RealtimeTranscriptionSessionCreateRequest.Encoded) => Effect.Effect<typeof RealtimeTranscriptionSessionCreateResponse.Type, HttpClientError.HttpClientError | ParseError>;
|
|
10540
11000
|
readonly "createResponse": (options: typeof CreateResponse.Encoded) => Effect.Effect<typeof Response.Type, HttpClientError.HttpClientError | ParseError>;
|
|
10541
11001
|
readonly "getResponse": (responseId: string, options: typeof GetResponseParams.Encoded) => Effect.Effect<typeof Response.Type, HttpClientError.HttpClientError | ParseError>;
|
|
10542
11002
|
readonly "deleteResponse": (responseId: string) => Effect.Effect<void, HttpClientError.HttpClientError | ParseError | typeof Error.Type>;
|