@effect/ai-openai 0.13.0 → 0.13.2
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/README.md +4 -0
- package/dist/cjs/Generated.js +170 -227
- package/dist/cjs/Generated.js.map +1 -1
- package/dist/cjs/OpenAiConfig.js.map +1 -1
- package/dist/dts/Generated.d.ts +262 -334
- package/dist/dts/Generated.d.ts.map +1 -1
- package/dist/dts/OpenAiCompletions.d.ts +1 -1
- package/dist/dts/OpenAiCompletions.d.ts.map +1 -1
- package/dist/dts/OpenAiConfig.d.ts +12 -1
- package/dist/dts/OpenAiConfig.d.ts.map +1 -1
- package/dist/dts/OpenAiEmbeddings.d.ts +1 -1
- package/dist/dts/OpenAiEmbeddings.d.ts.map +1 -1
- package/dist/esm/Generated.js +136 -157
- package/dist/esm/Generated.js.map +1 -1
- package/dist/esm/OpenAiConfig.js.map +1 -1
- package/package.json +5 -5
- package/src/Generated.ts +161 -237
- package/src/OpenAiCompletions.ts +1 -1
- package/src/OpenAiConfig.ts +15 -1
- package/src/OpenAiEmbeddings.ts +1 -1
package/dist/dts/Generated.d.ts
CHANGED
|
@@ -97,6 +97,9 @@ export declare class AssistantToolsFunction extends AssistantToolsFunction_base
|
|
|
97
97
|
declare const Metadata_base: S.Record$<typeof S.String, typeof S.Unknown>;
|
|
98
98
|
export declare class Metadata extends Metadata_base {
|
|
99
99
|
}
|
|
100
|
+
declare const AssistantsApiResponseFormatOptionEnum_base: S.Literal<["auto"]>;
|
|
101
|
+
export declare class AssistantsApiResponseFormatOptionEnum extends AssistantsApiResponseFormatOptionEnum_base {
|
|
102
|
+
}
|
|
100
103
|
declare const ResponseFormatTextType_base: S.Literal<["text"]>;
|
|
101
104
|
export declare class ResponseFormatTextType extends ResponseFormatTextType_base {
|
|
102
105
|
}
|
|
@@ -137,7 +140,7 @@ declare const ResponseFormatJsonSchema_base: S.Struct<{
|
|
|
137
140
|
}>;
|
|
138
141
|
export declare class ResponseFormatJsonSchema extends ResponseFormatJsonSchema_base {
|
|
139
142
|
}
|
|
140
|
-
declare const AssistantsApiResponseFormatOption_base: S.Union<[
|
|
143
|
+
declare const AssistantsApiResponseFormatOption_base: S.Union<[typeof AssistantsApiResponseFormatOptionEnum, typeof ResponseFormatText, typeof ResponseFormatJsonObject, typeof ResponseFormatJsonSchema]>;
|
|
141
144
|
export declare class AssistantsApiResponseFormatOption extends AssistantsApiResponseFormatOption_base {
|
|
142
145
|
}
|
|
143
146
|
declare const AssistantObject_base: S.Struct<{
|
|
@@ -308,14 +311,14 @@ declare const ListAssistantsResponse_base: S.Class<ListAssistantsResponse, {
|
|
|
308
311
|
}, {}, {}>;
|
|
309
312
|
export declare class ListAssistantsResponse extends ListAssistantsResponse_base {
|
|
310
313
|
}
|
|
311
|
-
declare const
|
|
312
|
-
export declare class
|
|
314
|
+
declare const AssistantSupportedModels_base: S.Literal<["o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "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-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613"]>;
|
|
315
|
+
export declare class AssistantSupportedModels extends AssistantSupportedModels_base {
|
|
313
316
|
}
|
|
314
|
-
declare const
|
|
315
|
-
export declare class
|
|
317
|
+
declare const ReasoningEffort_base: S.Literal<["low", "medium", "high"]>;
|
|
318
|
+
export declare class ReasoningEffort extends ReasoningEffort_base {
|
|
316
319
|
}
|
|
317
320
|
declare const CreateAssistantRequest_base: S.Class<CreateAssistantRequest, {
|
|
318
|
-
model: S.Union<[typeof S.String, typeof
|
|
321
|
+
model: S.Union<[typeof S.String, typeof AssistantSupportedModels]>;
|
|
319
322
|
name: S.optionalWith<S.filter<S.Schema<string, string, never>>, {
|
|
320
323
|
nullable: true;
|
|
321
324
|
}>;
|
|
@@ -325,6 +328,10 @@ declare const CreateAssistantRequest_base: S.Class<CreateAssistantRequest, {
|
|
|
325
328
|
instructions: S.optionalWith<S.filter<S.Schema<string, string, never>>, {
|
|
326
329
|
nullable: true;
|
|
327
330
|
}>;
|
|
331
|
+
reasoning_effort: S.optionalWith<typeof ReasoningEffort, {
|
|
332
|
+
nullable: true;
|
|
333
|
+
default: () => "medium";
|
|
334
|
+
}>;
|
|
328
335
|
tools: S.optionalWith<S.filter<S.Schema<readonly ({
|
|
329
336
|
readonly type: "code_interpreter";
|
|
330
337
|
} | {
|
|
@@ -424,7 +431,7 @@ declare const CreateAssistantRequest_base: S.Class<CreateAssistantRequest, {
|
|
|
424
431
|
nullable: true;
|
|
425
432
|
}>;
|
|
426
433
|
}, S.Struct.Encoded<{
|
|
427
|
-
model: S.Union<[typeof S.String, typeof
|
|
434
|
+
model: S.Union<[typeof S.String, typeof AssistantSupportedModels]>;
|
|
428
435
|
name: S.optionalWith<S.filter<S.Schema<string, string, never>>, {
|
|
429
436
|
nullable: true;
|
|
430
437
|
}>;
|
|
@@ -434,6 +441,10 @@ declare const CreateAssistantRequest_base: S.Class<CreateAssistantRequest, {
|
|
|
434
441
|
instructions: S.optionalWith<S.filter<S.Schema<string, string, never>>, {
|
|
435
442
|
nullable: true;
|
|
436
443
|
}>;
|
|
444
|
+
reasoning_effort: S.optionalWith<typeof ReasoningEffort, {
|
|
445
|
+
nullable: true;
|
|
446
|
+
default: () => "medium";
|
|
447
|
+
}>;
|
|
437
448
|
tools: S.optionalWith<S.filter<S.Schema<readonly ({
|
|
438
449
|
readonly type: "code_interpreter";
|
|
439
450
|
} | {
|
|
@@ -605,12 +616,18 @@ declare const CreateAssistantRequest_base: S.Class<CreateAssistantRequest, {
|
|
|
605
616
|
} | undefined;
|
|
606
617
|
};
|
|
607
618
|
} | undefined;
|
|
619
|
+
} & {
|
|
620
|
+
readonly reasoning_effort?: "low" | "medium" | "high" | undefined;
|
|
608
621
|
}, {}, {}>;
|
|
609
622
|
export declare class CreateAssistantRequest extends CreateAssistantRequest_base {
|
|
610
623
|
}
|
|
611
624
|
declare const ModifyAssistantRequest_base: S.Class<ModifyAssistantRequest, {
|
|
612
|
-
model: S.optionalWith<typeof S.String, {
|
|
625
|
+
model: S.optionalWith<S.Union<[typeof S.String, typeof AssistantSupportedModels]>, {
|
|
626
|
+
nullable: true;
|
|
627
|
+
}>;
|
|
628
|
+
reasoning_effort: S.optionalWith<typeof ReasoningEffort, {
|
|
613
629
|
nullable: true;
|
|
630
|
+
default: () => "medium";
|
|
614
631
|
}>;
|
|
615
632
|
name: S.optionalWith<S.filter<S.Schema<string, string, never>>, {
|
|
616
633
|
nullable: true;
|
|
@@ -701,9 +718,13 @@ declare const ModifyAssistantRequest_base: S.Class<ModifyAssistantRequest, {
|
|
|
701
718
|
nullable: true;
|
|
702
719
|
}>;
|
|
703
720
|
}, S.Struct.Encoded<{
|
|
704
|
-
model: S.optionalWith<typeof S.String, {
|
|
721
|
+
model: S.optionalWith<S.Union<[typeof S.String, typeof AssistantSupportedModels]>, {
|
|
705
722
|
nullable: true;
|
|
706
723
|
}>;
|
|
724
|
+
reasoning_effort: S.optionalWith<typeof ReasoningEffort, {
|
|
725
|
+
nullable: true;
|
|
726
|
+
default: () => "medium";
|
|
727
|
+
}>;
|
|
707
728
|
name: S.optionalWith<S.filter<S.Schema<string, string, never>>, {
|
|
708
729
|
nullable: true;
|
|
709
730
|
}>;
|
|
@@ -856,6 +877,8 @@ declare const ModifyAssistantRequest_base: S.Class<ModifyAssistantRequest, {
|
|
|
856
877
|
} | undefined;
|
|
857
878
|
};
|
|
858
879
|
} | undefined;
|
|
880
|
+
} & {
|
|
881
|
+
readonly reasoning_effort?: "low" | "medium" | "high" | undefined;
|
|
859
882
|
}, {}, {}>;
|
|
860
883
|
export declare class ModifyAssistantRequest extends ModifyAssistantRequest_base {
|
|
861
884
|
}
|
|
@@ -879,8 +902,8 @@ declare const DeleteAssistantResponse_base: S.Class<DeleteAssistantResponse, {
|
|
|
879
902
|
}, {}, {}>;
|
|
880
903
|
export declare class DeleteAssistantResponse extends DeleteAssistantResponse_base {
|
|
881
904
|
}
|
|
882
|
-
declare const
|
|
883
|
-
export declare class
|
|
905
|
+
declare const CreateSpeechRequestModelEnum_base: S.Literal<["tts-1", "tts-1-hd"]>;
|
|
906
|
+
export declare class CreateSpeechRequestModelEnum extends CreateSpeechRequestModelEnum_base {
|
|
884
907
|
}
|
|
885
908
|
declare const CreateSpeechRequestVoice_base: S.Literal<["alloy", "ash", "coral", "echo", "fable", "onyx", "nova", "sage", "shimmer"]>;
|
|
886
909
|
export declare class CreateSpeechRequestVoice extends CreateSpeechRequestVoice_base {
|
|
@@ -889,7 +912,7 @@ declare const CreateSpeechRequestResponseFormat_base: S.Literal<["mp3", "opus",
|
|
|
889
912
|
export declare class CreateSpeechRequestResponseFormat extends CreateSpeechRequestResponseFormat_base {
|
|
890
913
|
}
|
|
891
914
|
declare const CreateSpeechRequest_base: S.Class<CreateSpeechRequest, {
|
|
892
|
-
model: S.Union<[typeof S.String, typeof
|
|
915
|
+
model: S.Union<[typeof S.String, typeof CreateSpeechRequestModelEnum]>;
|
|
893
916
|
input: S.filter<S.Schema<string, string, never>>;
|
|
894
917
|
voice: typeof CreateSpeechRequestVoice;
|
|
895
918
|
response_format: S.optionalWith<typeof CreateSpeechRequestResponseFormat, {
|
|
@@ -901,7 +924,7 @@ declare const CreateSpeechRequest_base: S.Class<CreateSpeechRequest, {
|
|
|
901
924
|
default: () => 1;
|
|
902
925
|
}>;
|
|
903
926
|
}, S.Struct.Encoded<{
|
|
904
|
-
model: S.Union<[typeof S.String, typeof
|
|
927
|
+
model: S.Union<[typeof S.String, typeof CreateSpeechRequestModelEnum]>;
|
|
905
928
|
input: S.filter<S.Schema<string, string, never>>;
|
|
906
929
|
voice: typeof CreateSpeechRequestVoice;
|
|
907
930
|
response_format: S.optionalWith<typeof CreateSpeechRequestResponseFormat, {
|
|
@@ -1347,11 +1370,8 @@ export declare class ChatCompletionRequestFunctionMessage extends ChatCompletion
|
|
|
1347
1370
|
declare const ChatCompletionRequestMessage_base: S.Union<[typeof ChatCompletionRequestDeveloperMessage, typeof ChatCompletionRequestSystemMessage, typeof ChatCompletionRequestUserMessage, typeof ChatCompletionRequestAssistantMessage, typeof ChatCompletionRequestToolMessage, typeof ChatCompletionRequestFunctionMessage]>;
|
|
1348
1371
|
export declare class ChatCompletionRequestMessage extends ChatCompletionRequestMessage_base {
|
|
1349
1372
|
}
|
|
1350
|
-
declare const
|
|
1351
|
-
export declare class
|
|
1352
|
-
}
|
|
1353
|
-
declare const CreateChatCompletionRequestReasoningEffort_base: S.Literal<["low", "medium", "high"]>;
|
|
1354
|
-
export declare class CreateChatCompletionRequestReasoningEffort extends CreateChatCompletionRequestReasoningEffort_base {
|
|
1373
|
+
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", "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"]>;
|
|
1374
|
+
export declare class CreateChatCompletionRequestModelEnum extends CreateChatCompletionRequestModelEnum_base {
|
|
1355
1375
|
}
|
|
1356
1376
|
declare const ChatCompletionModalities_base: S.Array$<S.Literal<["text", "audio"]>>;
|
|
1357
1377
|
export declare class ChatCompletionModalities extends ChatCompletionModalities_base {
|
|
@@ -1390,6 +1410,9 @@ declare const ChatCompletionTool_base: S.Struct<{
|
|
|
1390
1410
|
}>;
|
|
1391
1411
|
export declare class ChatCompletionTool extends ChatCompletionTool_base {
|
|
1392
1412
|
}
|
|
1413
|
+
declare const ChatCompletionToolChoiceOptionEnum_base: S.Literal<["none", "auto", "required"]>;
|
|
1414
|
+
export declare class ChatCompletionToolChoiceOptionEnum extends ChatCompletionToolChoiceOptionEnum_base {
|
|
1415
|
+
}
|
|
1393
1416
|
declare const ChatCompletionNamedToolChoiceType_base: S.Literal<["function"]>;
|
|
1394
1417
|
export declare class ChatCompletionNamedToolChoiceType extends ChatCompletionNamedToolChoiceType_base {
|
|
1395
1418
|
}
|
|
@@ -1401,13 +1424,13 @@ declare const ChatCompletionNamedToolChoice_base: S.Struct<{
|
|
|
1401
1424
|
}>;
|
|
1402
1425
|
export declare class ChatCompletionNamedToolChoice extends ChatCompletionNamedToolChoice_base {
|
|
1403
1426
|
}
|
|
1404
|
-
declare const ChatCompletionToolChoiceOption_base: S.Union<[
|
|
1427
|
+
declare const ChatCompletionToolChoiceOption_base: S.Union<[typeof ChatCompletionToolChoiceOptionEnum, typeof ChatCompletionNamedToolChoice]>;
|
|
1405
1428
|
export declare class ChatCompletionToolChoiceOption extends ChatCompletionToolChoiceOption_base {
|
|
1406
1429
|
}
|
|
1407
1430
|
export declare class ParallelToolCalls extends S.Boolean {
|
|
1408
1431
|
}
|
|
1409
|
-
declare const
|
|
1410
|
-
export declare class
|
|
1432
|
+
declare const CreateChatCompletionRequestFunctionCallEnum_base: S.Literal<["none", "auto"]>;
|
|
1433
|
+
export declare class CreateChatCompletionRequestFunctionCallEnum extends CreateChatCompletionRequestFunctionCallEnum_base {
|
|
1411
1434
|
}
|
|
1412
1435
|
declare const ChatCompletionFunctionCallOption_base: S.Struct<{
|
|
1413
1436
|
name: typeof S.String;
|
|
@@ -1427,12 +1450,12 @@ export declare class ChatCompletionFunctions extends ChatCompletionFunctions_bas
|
|
|
1427
1450
|
}
|
|
1428
1451
|
declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequest, {
|
|
1429
1452
|
messages: S.NonEmptyArray<typeof ChatCompletionRequestMessage>;
|
|
1430
|
-
model: S.Union<[typeof S.String, typeof
|
|
1453
|
+
model: S.Union<[typeof S.String, typeof CreateChatCompletionRequestModelEnum]>;
|
|
1431
1454
|
store: S.optionalWith<typeof S.Boolean, {
|
|
1432
1455
|
nullable: true;
|
|
1433
1456
|
default: () => false;
|
|
1434
1457
|
}>;
|
|
1435
|
-
reasoning_effort: S.optionalWith<typeof
|
|
1458
|
+
reasoning_effort: S.optionalWith<typeof ReasoningEffort, {
|
|
1436
1459
|
nullable: true;
|
|
1437
1460
|
default: () => "medium";
|
|
1438
1461
|
}>;
|
|
@@ -1443,8 +1466,8 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1443
1466
|
nullable: true;
|
|
1444
1467
|
default: () => 0;
|
|
1445
1468
|
}>;
|
|
1446
|
-
logit_bias: S.optionalWith<S.Record$<typeof S.String, typeof S.Unknown
|
|
1447
|
-
|
|
1469
|
+
logit_bias: S.optionalWith<S.NullOr<S.Record$<typeof S.String, typeof S.Unknown>>, {
|
|
1470
|
+
default: () => null;
|
|
1448
1471
|
}>;
|
|
1449
1472
|
logprobs: S.optionalWith<typeof S.Boolean, {
|
|
1450
1473
|
nullable: true;
|
|
@@ -1489,15 +1512,15 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1489
1512
|
nullable: true;
|
|
1490
1513
|
default: () => "auto";
|
|
1491
1514
|
}>;
|
|
1492
|
-
stop: S.optionalWith<S.Union<[typeof S.String, S.filter<S.Schema<readonly string[], readonly string[], never>>]
|
|
1493
|
-
|
|
1515
|
+
stop: S.optionalWith<S.NullOr<S.Union<[typeof S.String, S.filter<S.Schema<readonly string[], readonly string[], never>>]>>, {
|
|
1516
|
+
default: () => null;
|
|
1494
1517
|
}>;
|
|
1495
1518
|
stream: S.optionalWith<typeof S.Boolean, {
|
|
1496
1519
|
nullable: true;
|
|
1497
1520
|
default: () => false;
|
|
1498
1521
|
}>;
|
|
1499
|
-
stream_options: S.optionalWith<typeof ChatCompletionStreamOptions
|
|
1500
|
-
|
|
1522
|
+
stream_options: S.optionalWith<S.NullOr<typeof ChatCompletionStreamOptions>, {
|
|
1523
|
+
default: () => null;
|
|
1501
1524
|
}>;
|
|
1502
1525
|
temperature: S.optionalWith<S.filter<S.Schema<number, number, never>>, {
|
|
1503
1526
|
nullable: true;
|
|
@@ -1520,7 +1543,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1520
1543
|
user: S.optionalWith<typeof S.String, {
|
|
1521
1544
|
nullable: true;
|
|
1522
1545
|
}>;
|
|
1523
|
-
function_call: S.optionalWith<S.Union<[typeof
|
|
1546
|
+
function_call: S.optionalWith<S.Union<[typeof CreateChatCompletionRequestFunctionCallEnum, typeof ChatCompletionFunctionCallOption]>, {
|
|
1524
1547
|
nullable: true;
|
|
1525
1548
|
}>;
|
|
1526
1549
|
functions: S.optionalWith<S.filter<S.Schema<readonly {
|
|
@@ -1540,12 +1563,12 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1540
1563
|
}>;
|
|
1541
1564
|
}, S.Struct.Encoded<{
|
|
1542
1565
|
messages: S.NonEmptyArray<typeof ChatCompletionRequestMessage>;
|
|
1543
|
-
model: S.Union<[typeof S.String, typeof
|
|
1566
|
+
model: S.Union<[typeof S.String, typeof CreateChatCompletionRequestModelEnum]>;
|
|
1544
1567
|
store: S.optionalWith<typeof S.Boolean, {
|
|
1545
1568
|
nullable: true;
|
|
1546
1569
|
default: () => false;
|
|
1547
1570
|
}>;
|
|
1548
|
-
reasoning_effort: S.optionalWith<typeof
|
|
1571
|
+
reasoning_effort: S.optionalWith<typeof ReasoningEffort, {
|
|
1549
1572
|
nullable: true;
|
|
1550
1573
|
default: () => "medium";
|
|
1551
1574
|
}>;
|
|
@@ -1556,8 +1579,8 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1556
1579
|
nullable: true;
|
|
1557
1580
|
default: () => 0;
|
|
1558
1581
|
}>;
|
|
1559
|
-
logit_bias: S.optionalWith<S.Record$<typeof S.String, typeof S.Unknown
|
|
1560
|
-
|
|
1582
|
+
logit_bias: S.optionalWith<S.NullOr<S.Record$<typeof S.String, typeof S.Unknown>>, {
|
|
1583
|
+
default: () => null;
|
|
1561
1584
|
}>;
|
|
1562
1585
|
logprobs: S.optionalWith<typeof S.Boolean, {
|
|
1563
1586
|
nullable: true;
|
|
@@ -1602,15 +1625,15 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1602
1625
|
nullable: true;
|
|
1603
1626
|
default: () => "auto";
|
|
1604
1627
|
}>;
|
|
1605
|
-
stop: S.optionalWith<S.Union<[typeof S.String, S.filter<S.Schema<readonly string[], readonly string[], never>>]
|
|
1606
|
-
|
|
1628
|
+
stop: S.optionalWith<S.NullOr<S.Union<[typeof S.String, S.filter<S.Schema<readonly string[], readonly string[], never>>]>>, {
|
|
1629
|
+
default: () => null;
|
|
1607
1630
|
}>;
|
|
1608
1631
|
stream: S.optionalWith<typeof S.Boolean, {
|
|
1609
1632
|
nullable: true;
|
|
1610
1633
|
default: () => false;
|
|
1611
1634
|
}>;
|
|
1612
|
-
stream_options: S.optionalWith<typeof ChatCompletionStreamOptions
|
|
1613
|
-
|
|
1635
|
+
stream_options: S.optionalWith<S.NullOr<typeof ChatCompletionStreamOptions>, {
|
|
1636
|
+
default: () => null;
|
|
1614
1637
|
}>;
|
|
1615
1638
|
temperature: S.optionalWith<S.filter<S.Schema<number, number, never>>, {
|
|
1616
1639
|
nullable: true;
|
|
@@ -1633,7 +1656,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1633
1656
|
user: S.optionalWith<typeof S.String, {
|
|
1634
1657
|
nullable: true;
|
|
1635
1658
|
}>;
|
|
1636
|
-
function_call: S.optionalWith<S.Union<[typeof
|
|
1659
|
+
function_call: S.optionalWith<S.Union<[typeof CreateChatCompletionRequestFunctionCallEnum, typeof ChatCompletionFunctionCallOption]>, {
|
|
1637
1660
|
nullable: true;
|
|
1638
1661
|
}>;
|
|
1639
1662
|
functions: S.optionalWith<S.filter<S.Schema<readonly {
|
|
@@ -1689,6 +1712,8 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1689
1712
|
} | undefined;
|
|
1690
1713
|
};
|
|
1691
1714
|
} | undefined;
|
|
1715
|
+
} & {
|
|
1716
|
+
readonly reasoning_effort?: "low" | "medium" | "high" | undefined;
|
|
1692
1717
|
} & {
|
|
1693
1718
|
readonly user?: string | undefined;
|
|
1694
1719
|
} & {
|
|
@@ -1904,14 +1929,12 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1904
1929
|
})[]];
|
|
1905
1930
|
} & {
|
|
1906
1931
|
readonly store?: boolean | undefined;
|
|
1907
|
-
} & {
|
|
1908
|
-
readonly reasoning_effort?: "low" | "high" | "medium" | undefined;
|
|
1909
1932
|
} & {
|
|
1910
1933
|
readonly frequency_penalty?: number | undefined;
|
|
1911
1934
|
} & {
|
|
1912
1935
|
readonly logit_bias?: {
|
|
1913
1936
|
readonly [x: string]: unknown;
|
|
1914
|
-
} | undefined;
|
|
1937
|
+
} | null | undefined;
|
|
1915
1938
|
} & {
|
|
1916
1939
|
readonly logprobs?: boolean | undefined;
|
|
1917
1940
|
} & {
|
|
@@ -1942,20 +1965,20 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1942
1965
|
} & {
|
|
1943
1966
|
readonly service_tier?: "default" | "auto" | undefined;
|
|
1944
1967
|
} & {
|
|
1945
|
-
readonly stop?: string | readonly string[] | undefined;
|
|
1968
|
+
readonly stop?: string | readonly string[] | null | undefined;
|
|
1946
1969
|
} & {
|
|
1947
1970
|
readonly stream?: boolean | undefined;
|
|
1948
1971
|
} & {
|
|
1949
1972
|
readonly stream_options?: {
|
|
1950
1973
|
readonly include_usage?: boolean | undefined;
|
|
1951
|
-
} | undefined;
|
|
1974
|
+
} | null | undefined;
|
|
1952
1975
|
} & {
|
|
1953
|
-
readonly tool_choice?: "auto" | {
|
|
1976
|
+
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
1954
1977
|
readonly function: {
|
|
1955
1978
|
readonly name: string;
|
|
1956
1979
|
};
|
|
1957
1980
|
readonly type: "function";
|
|
1958
|
-
} |
|
|
1981
|
+
} | undefined;
|
|
1959
1982
|
} & {
|
|
1960
1983
|
readonly parallel_tool_calls?: boolean | undefined;
|
|
1961
1984
|
} & {
|
|
@@ -1969,9 +1992,6 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1969
1992
|
}, {}, {}>;
|
|
1970
1993
|
export declare class CreateChatCompletionRequest extends CreateChatCompletionRequest_base {
|
|
1971
1994
|
}
|
|
1972
|
-
declare const CreateChatCompletionResponseChoicesFinishReason_base: S.Literal<["stop", "length", "tool_calls", "content_filter", "function_call"]>;
|
|
1973
|
-
export declare class CreateChatCompletionResponseChoicesFinishReason extends CreateChatCompletionResponseChoicesFinishReason_base {
|
|
1974
|
-
}
|
|
1975
1995
|
declare const ChatCompletionResponseMessageRole_base: S.Literal<["assistant"]>;
|
|
1976
1996
|
export declare class ChatCompletionResponseMessageRole extends ChatCompletionResponseMessageRole_base {
|
|
1977
1997
|
}
|
|
@@ -2059,7 +2079,7 @@ export declare class CompletionUsage extends CompletionUsage_base {
|
|
|
2059
2079
|
declare const CreateChatCompletionResponse_base: S.Class<CreateChatCompletionResponse, {
|
|
2060
2080
|
id: typeof S.String;
|
|
2061
2081
|
choices: S.Array$<S.Struct<{
|
|
2062
|
-
finish_reason:
|
|
2082
|
+
finish_reason: S.Literal<["stop", "length", "tool_calls", "content_filter", "function_call"]>;
|
|
2063
2083
|
index: typeof S.Int;
|
|
2064
2084
|
message: typeof ChatCompletionResponseMessage;
|
|
2065
2085
|
logprobs: S.NullOr<S.Struct<{
|
|
@@ -2082,7 +2102,7 @@ declare const CreateChatCompletionResponse_base: S.Class<CreateChatCompletionRes
|
|
|
2082
2102
|
}, S.Struct.Encoded<{
|
|
2083
2103
|
id: typeof S.String;
|
|
2084
2104
|
choices: S.Array$<S.Struct<{
|
|
2085
|
-
finish_reason:
|
|
2105
|
+
finish_reason: S.Literal<["stop", "length", "tool_calls", "content_filter", "function_call"]>;
|
|
2086
2106
|
index: typeof S.Int;
|
|
2087
2107
|
message: typeof ChatCompletionResponseMessage;
|
|
2088
2108
|
logprobs: S.NullOr<S.Struct<{
|
|
@@ -2183,11 +2203,11 @@ declare const CreateChatCompletionResponse_base: S.Class<CreateChatCompletionRes
|
|
|
2183
2203
|
}, {}, {}>;
|
|
2184
2204
|
export declare class CreateChatCompletionResponse extends CreateChatCompletionResponse_base {
|
|
2185
2205
|
}
|
|
2186
|
-
declare const
|
|
2187
|
-
export declare class
|
|
2206
|
+
declare const CreateCompletionRequestModelEnum_base: S.Literal<["gpt-3.5-turbo-instruct", "davinci-002", "babbage-002"]>;
|
|
2207
|
+
export declare class CreateCompletionRequestModelEnum extends CreateCompletionRequestModelEnum_base {
|
|
2188
2208
|
}
|
|
2189
2209
|
declare const CreateCompletionRequest_base: S.Class<CreateCompletionRequest, {
|
|
2190
|
-
model: S.Union<[typeof S.String, typeof
|
|
2210
|
+
model: S.Union<[typeof S.String, typeof CreateCompletionRequestModelEnum]>;
|
|
2191
2211
|
prompt: S.PropertySignature<":", string | readonly string[] | readonly [number, ...number[]] | readonly [readonly [number, ...number[]], ...(readonly [number, ...number[]])[]] | null, never, ":", string | readonly string[] | readonly [number, ...number[]] | readonly [readonly [number, ...number[]], ...(readonly [number, ...number[]])[]] | null, true, never>;
|
|
2192
2212
|
best_of: S.optionalWith<S.filter<S.Schema<number, number, never>>, {
|
|
2193
2213
|
nullable: true;
|
|
@@ -2201,11 +2221,11 @@ declare const CreateCompletionRequest_base: S.Class<CreateCompletionRequest, {
|
|
|
2201
2221
|
nullable: true;
|
|
2202
2222
|
default: () => 0;
|
|
2203
2223
|
}>;
|
|
2204
|
-
logit_bias: S.optionalWith<S.Record$<typeof S.String, typeof S.Unknown
|
|
2205
|
-
|
|
2224
|
+
logit_bias: S.optionalWith<S.NullOr<S.Record$<typeof S.String, typeof S.Unknown>>, {
|
|
2225
|
+
default: () => null;
|
|
2206
2226
|
}>;
|
|
2207
|
-
logprobs: S.optionalWith<S.filter<S.Schema<number, number, never
|
|
2208
|
-
|
|
2227
|
+
logprobs: S.optionalWith<S.NullOr<S.filter<S.Schema<number, number, never>>>, {
|
|
2228
|
+
default: () => null;
|
|
2209
2229
|
}>;
|
|
2210
2230
|
max_tokens: S.optionalWith<S.filter<S.Schema<number, number, never>>, {
|
|
2211
2231
|
nullable: true;
|
|
@@ -2222,18 +2242,18 @@ declare const CreateCompletionRequest_base: S.Class<CreateCompletionRequest, {
|
|
|
2222
2242
|
seed: S.optionalWith<typeof S.Int, {
|
|
2223
2243
|
nullable: true;
|
|
2224
2244
|
}>;
|
|
2225
|
-
stop: S.optionalWith<S.Union<[typeof S.String, S.filter<S.Schema<readonly string[], readonly string[], never>>]
|
|
2226
|
-
|
|
2245
|
+
stop: S.optionalWith<S.NullOr<S.Union<[typeof S.String, S.filter<S.Schema<readonly string[], readonly string[], never>>]>>, {
|
|
2246
|
+
default: () => null;
|
|
2227
2247
|
}>;
|
|
2228
2248
|
stream: S.optionalWith<typeof S.Boolean, {
|
|
2229
2249
|
nullable: true;
|
|
2230
2250
|
default: () => false;
|
|
2231
2251
|
}>;
|
|
2232
|
-
stream_options: S.optionalWith<typeof ChatCompletionStreamOptions
|
|
2233
|
-
|
|
2252
|
+
stream_options: S.optionalWith<S.NullOr<typeof ChatCompletionStreamOptions>, {
|
|
2253
|
+
default: () => null;
|
|
2234
2254
|
}>;
|
|
2235
|
-
suffix: S.optionalWith<typeof S.String
|
|
2236
|
-
|
|
2255
|
+
suffix: S.optionalWith<S.NullOr<typeof S.String>, {
|
|
2256
|
+
default: () => null;
|
|
2237
2257
|
}>;
|
|
2238
2258
|
temperature: S.optionalWith<S.filter<S.Schema<number, number, never>>, {
|
|
2239
2259
|
nullable: true;
|
|
@@ -2247,7 +2267,7 @@ declare const CreateCompletionRequest_base: S.Class<CreateCompletionRequest, {
|
|
|
2247
2267
|
nullable: true;
|
|
2248
2268
|
}>;
|
|
2249
2269
|
}, S.Struct.Encoded<{
|
|
2250
|
-
model: S.Union<[typeof S.String, typeof
|
|
2270
|
+
model: S.Union<[typeof S.String, typeof CreateCompletionRequestModelEnum]>;
|
|
2251
2271
|
prompt: S.PropertySignature<":", string | readonly string[] | readonly [number, ...number[]] | readonly [readonly [number, ...number[]], ...(readonly [number, ...number[]])[]] | null, never, ":", string | readonly string[] | readonly [number, ...number[]] | readonly [readonly [number, ...number[]], ...(readonly [number, ...number[]])[]] | null, true, never>;
|
|
2252
2272
|
best_of: S.optionalWith<S.filter<S.Schema<number, number, never>>, {
|
|
2253
2273
|
nullable: true;
|
|
@@ -2261,11 +2281,11 @@ declare const CreateCompletionRequest_base: S.Class<CreateCompletionRequest, {
|
|
|
2261
2281
|
nullable: true;
|
|
2262
2282
|
default: () => 0;
|
|
2263
2283
|
}>;
|
|
2264
|
-
logit_bias: S.optionalWith<S.Record$<typeof S.String, typeof S.Unknown
|
|
2265
|
-
|
|
2284
|
+
logit_bias: S.optionalWith<S.NullOr<S.Record$<typeof S.String, typeof S.Unknown>>, {
|
|
2285
|
+
default: () => null;
|
|
2266
2286
|
}>;
|
|
2267
|
-
logprobs: S.optionalWith<S.filter<S.Schema<number, number, never
|
|
2268
|
-
|
|
2287
|
+
logprobs: S.optionalWith<S.NullOr<S.filter<S.Schema<number, number, never>>>, {
|
|
2288
|
+
default: () => null;
|
|
2269
2289
|
}>;
|
|
2270
2290
|
max_tokens: S.optionalWith<S.filter<S.Schema<number, number, never>>, {
|
|
2271
2291
|
nullable: true;
|
|
@@ -2282,18 +2302,18 @@ declare const CreateCompletionRequest_base: S.Class<CreateCompletionRequest, {
|
|
|
2282
2302
|
seed: S.optionalWith<typeof S.Int, {
|
|
2283
2303
|
nullable: true;
|
|
2284
2304
|
}>;
|
|
2285
|
-
stop: S.optionalWith<S.Union<[typeof S.String, S.filter<S.Schema<readonly string[], readonly string[], never>>]
|
|
2286
|
-
|
|
2305
|
+
stop: S.optionalWith<S.NullOr<S.Union<[typeof S.String, S.filter<S.Schema<readonly string[], readonly string[], never>>]>>, {
|
|
2306
|
+
default: () => null;
|
|
2287
2307
|
}>;
|
|
2288
2308
|
stream: S.optionalWith<typeof S.Boolean, {
|
|
2289
2309
|
nullable: true;
|
|
2290
2310
|
default: () => false;
|
|
2291
2311
|
}>;
|
|
2292
|
-
stream_options: S.optionalWith<typeof ChatCompletionStreamOptions
|
|
2293
|
-
|
|
2312
|
+
stream_options: S.optionalWith<S.NullOr<typeof ChatCompletionStreamOptions>, {
|
|
2313
|
+
default: () => null;
|
|
2294
2314
|
}>;
|
|
2295
|
-
suffix: S.optionalWith<typeof S.String
|
|
2296
|
-
|
|
2315
|
+
suffix: S.optionalWith<S.NullOr<typeof S.String>, {
|
|
2316
|
+
default: () => null;
|
|
2297
2317
|
}>;
|
|
2298
2318
|
temperature: S.optionalWith<S.filter<S.Schema<number, number, never>>, {
|
|
2299
2319
|
nullable: true;
|
|
@@ -2321,9 +2341,9 @@ declare const CreateCompletionRequest_base: S.Class<CreateCompletionRequest, {
|
|
|
2321
2341
|
} & {
|
|
2322
2342
|
readonly logit_bias?: {
|
|
2323
2343
|
readonly [x: string]: unknown;
|
|
2324
|
-
} | undefined;
|
|
2344
|
+
} | null | undefined;
|
|
2325
2345
|
} & {
|
|
2326
|
-
readonly logprobs?: number | undefined;
|
|
2346
|
+
readonly logprobs?: number | null | undefined;
|
|
2327
2347
|
} & {
|
|
2328
2348
|
readonly max_tokens?: number | undefined;
|
|
2329
2349
|
} & {
|
|
@@ -2333,32 +2353,29 @@ declare const CreateCompletionRequest_base: S.Class<CreateCompletionRequest, {
|
|
|
2333
2353
|
} & {
|
|
2334
2354
|
readonly seed?: number | undefined;
|
|
2335
2355
|
} & {
|
|
2336
|
-
readonly stop?: string | readonly string[] | undefined;
|
|
2356
|
+
readonly stop?: string | readonly string[] | null | undefined;
|
|
2337
2357
|
} & {
|
|
2338
2358
|
readonly stream?: boolean | undefined;
|
|
2339
2359
|
} & {
|
|
2340
2360
|
readonly stream_options?: {
|
|
2341
2361
|
readonly include_usage?: boolean | undefined;
|
|
2342
|
-
} | undefined;
|
|
2362
|
+
} | null | undefined;
|
|
2343
2363
|
} & {
|
|
2344
2364
|
readonly prompt?: string | readonly string[] | readonly [number, ...number[]] | readonly [readonly [number, ...number[]], ...(readonly [number, ...number[]])[]] | null | undefined;
|
|
2345
2365
|
} & {
|
|
2346
2366
|
readonly best_of?: number | undefined;
|
|
2347
2367
|
} & {
|
|
2348
|
-
readonly suffix?: string | undefined;
|
|
2368
|
+
readonly suffix?: string | null | undefined;
|
|
2349
2369
|
}, {}, {}>;
|
|
2350
2370
|
export declare class CreateCompletionRequest extends CreateCompletionRequest_base {
|
|
2351
2371
|
}
|
|
2352
|
-
declare const CreateCompletionResponseChoicesFinishReason_base: S.Literal<["stop", "length", "content_filter"]>;
|
|
2353
|
-
export declare class CreateCompletionResponseChoicesFinishReason extends CreateCompletionResponseChoicesFinishReason_base {
|
|
2354
|
-
}
|
|
2355
2372
|
declare const CreateCompletionResponseObject_base: S.Literal<["text_completion"]>;
|
|
2356
2373
|
export declare class CreateCompletionResponseObject extends CreateCompletionResponseObject_base {
|
|
2357
2374
|
}
|
|
2358
2375
|
declare const CreateCompletionResponse_base: S.Class<CreateCompletionResponse, {
|
|
2359
2376
|
id: typeof S.String;
|
|
2360
2377
|
choices: S.Array$<S.Struct<{
|
|
2361
|
-
finish_reason:
|
|
2378
|
+
finish_reason: S.Literal<["stop", "length", "content_filter"]>;
|
|
2362
2379
|
index: typeof S.Int;
|
|
2363
2380
|
logprobs: S.NullOr<S.Struct<{
|
|
2364
2381
|
text_offset: S.optionalWith<S.Array$<typeof S.Int>, {
|
|
@@ -2388,7 +2405,7 @@ declare const CreateCompletionResponse_base: S.Class<CreateCompletionResponse, {
|
|
|
2388
2405
|
}, S.Struct.Encoded<{
|
|
2389
2406
|
id: typeof S.String;
|
|
2390
2407
|
choices: S.Array$<S.Struct<{
|
|
2391
|
-
finish_reason:
|
|
2408
|
+
finish_reason: S.Literal<["stop", "length", "content_filter"]>;
|
|
2392
2409
|
index: typeof S.Int;
|
|
2393
2410
|
logprobs: S.NullOr<S.Struct<{
|
|
2394
2411
|
text_offset: S.optionalWith<S.Array$<typeof S.Int>, {
|
|
@@ -2458,15 +2475,15 @@ declare const CreateCompletionResponse_base: S.Class<CreateCompletionResponse, {
|
|
|
2458
2475
|
}, {}, {}>;
|
|
2459
2476
|
export declare class CreateCompletionResponse extends CreateCompletionResponse_base {
|
|
2460
2477
|
}
|
|
2461
|
-
declare const
|
|
2462
|
-
export declare class
|
|
2478
|
+
declare const CreateEmbeddingRequestModelEnum_base: S.Literal<["text-embedding-ada-002", "text-embedding-3-small", "text-embedding-3-large"]>;
|
|
2479
|
+
export declare class CreateEmbeddingRequestModelEnum extends CreateEmbeddingRequestModelEnum_base {
|
|
2463
2480
|
}
|
|
2464
2481
|
declare const CreateEmbeddingRequestEncodingFormat_base: S.Literal<["float", "base64"]>;
|
|
2465
2482
|
export declare class CreateEmbeddingRequestEncodingFormat extends CreateEmbeddingRequestEncodingFormat_base {
|
|
2466
2483
|
}
|
|
2467
2484
|
declare const CreateEmbeddingRequest_base: S.Class<CreateEmbeddingRequest, {
|
|
2468
2485
|
input: S.Union<[typeof S.String, S.filter<S.Schema<readonly string[], readonly string[], never>>, S.filter<S.Schema<readonly number[], readonly number[], never>>, S.filter<S.Schema<readonly (readonly [number, ...number[]])[], readonly (readonly [number, ...number[]])[], never>>]>;
|
|
2469
|
-
model: S.Union<[typeof S.String, typeof
|
|
2486
|
+
model: S.Union<[typeof S.String, typeof CreateEmbeddingRequestModelEnum]>;
|
|
2470
2487
|
encoding_format: S.optionalWith<typeof CreateEmbeddingRequestEncodingFormat, {
|
|
2471
2488
|
nullable: true;
|
|
2472
2489
|
default: () => "float";
|
|
@@ -2479,7 +2496,7 @@ declare const CreateEmbeddingRequest_base: S.Class<CreateEmbeddingRequest, {
|
|
|
2479
2496
|
}>;
|
|
2480
2497
|
}, S.Struct.Encoded<{
|
|
2481
2498
|
input: S.Union<[typeof S.String, S.filter<S.Schema<readonly string[], readonly string[], never>>, S.filter<S.Schema<readonly number[], readonly number[], never>>, S.filter<S.Schema<readonly (readonly [number, ...number[]])[], readonly (readonly [number, ...number[]])[], never>>]>;
|
|
2482
|
-
model: S.Union<[typeof S.String, typeof
|
|
2499
|
+
model: S.Union<[typeof S.String, typeof CreateEmbeddingRequestModelEnum]>;
|
|
2483
2500
|
encoding_format: S.optionalWith<typeof CreateEmbeddingRequestEncodingFormat, {
|
|
2484
2501
|
nullable: true;
|
|
2485
2502
|
default: () => "float";
|
|
@@ -2661,14 +2678,14 @@ declare const ListPaginatedFineTuningJobsParams_base: S.Struct<{
|
|
|
2661
2678
|
}>;
|
|
2662
2679
|
export declare class ListPaginatedFineTuningJobsParams extends ListPaginatedFineTuningJobsParams_base {
|
|
2663
2680
|
}
|
|
2664
|
-
declare const
|
|
2665
|
-
export declare class
|
|
2681
|
+
declare const FineTuningJobHyperparametersBatchSizeEnum_base: S.Literal<["auto"]>;
|
|
2682
|
+
export declare class FineTuningJobHyperparametersBatchSizeEnum extends FineTuningJobHyperparametersBatchSizeEnum_base {
|
|
2666
2683
|
}
|
|
2667
|
-
declare const
|
|
2668
|
-
export declare class
|
|
2684
|
+
declare const FineTuningJobHyperparametersLearningRateMultiplierEnum_base: S.Literal<["auto"]>;
|
|
2685
|
+
export declare class FineTuningJobHyperparametersLearningRateMultiplierEnum extends FineTuningJobHyperparametersLearningRateMultiplierEnum_base {
|
|
2669
2686
|
}
|
|
2670
|
-
declare const
|
|
2671
|
-
export declare class
|
|
2687
|
+
declare const FineTuningJobHyperparametersNEpochsEnum_base: S.Literal<["auto"]>;
|
|
2688
|
+
export declare class FineTuningJobHyperparametersNEpochsEnum extends FineTuningJobHyperparametersNEpochsEnum_base {
|
|
2672
2689
|
}
|
|
2673
2690
|
declare const FineTuningJobObject_base: S.Literal<["fine_tuning.job"]>;
|
|
2674
2691
|
export declare class FineTuningJobObject extends FineTuningJobObject_base {
|
|
@@ -2699,26 +2716,26 @@ export declare class FineTuningIntegration extends FineTuningIntegration_base {
|
|
|
2699
2716
|
declare const FineTuneMethodType_base: S.Literal<["supervised", "dpo"]>;
|
|
2700
2717
|
export declare class FineTuneMethodType extends FineTuneMethodType_base {
|
|
2701
2718
|
}
|
|
2702
|
-
declare const
|
|
2703
|
-
export declare class
|
|
2719
|
+
declare const FineTuneSupervisedMethodHyperparametersBatchSizeEnum_base: S.Literal<["auto"]>;
|
|
2720
|
+
export declare class FineTuneSupervisedMethodHyperparametersBatchSizeEnum extends FineTuneSupervisedMethodHyperparametersBatchSizeEnum_base {
|
|
2704
2721
|
}
|
|
2705
|
-
declare const
|
|
2706
|
-
export declare class
|
|
2722
|
+
declare const FineTuneSupervisedMethodHyperparametersLearningRateMultiplierEnum_base: S.Literal<["auto"]>;
|
|
2723
|
+
export declare class FineTuneSupervisedMethodHyperparametersLearningRateMultiplierEnum extends FineTuneSupervisedMethodHyperparametersLearningRateMultiplierEnum_base {
|
|
2707
2724
|
}
|
|
2708
|
-
declare const
|
|
2709
|
-
export declare class
|
|
2725
|
+
declare const FineTuneSupervisedMethodHyperparametersNEpochsEnum_base: S.Literal<["auto"]>;
|
|
2726
|
+
export declare class FineTuneSupervisedMethodHyperparametersNEpochsEnum extends FineTuneSupervisedMethodHyperparametersNEpochsEnum_base {
|
|
2710
2727
|
}
|
|
2711
2728
|
declare const FineTuneSupervisedMethod_base: S.Struct<{
|
|
2712
2729
|
hyperparameters: S.optionalWith<S.Struct<{
|
|
2713
|
-
batch_size: S.optionalWith<S.Union<[typeof
|
|
2730
|
+
batch_size: S.optionalWith<S.Union<[typeof FineTuneSupervisedMethodHyperparametersBatchSizeEnum, S.filter<S.Schema<number, number, never>>]>, {
|
|
2714
2731
|
nullable: true;
|
|
2715
2732
|
default: () => "auto";
|
|
2716
2733
|
}>;
|
|
2717
|
-
learning_rate_multiplier: S.optionalWith<S.Union<[typeof
|
|
2734
|
+
learning_rate_multiplier: S.optionalWith<S.Union<[typeof FineTuneSupervisedMethodHyperparametersLearningRateMultiplierEnum, S.filter<S.Schema<number, number, never>>]>, {
|
|
2718
2735
|
nullable: true;
|
|
2719
2736
|
default: () => "auto";
|
|
2720
2737
|
}>;
|
|
2721
|
-
n_epochs: S.optionalWith<S.Union<[typeof
|
|
2738
|
+
n_epochs: S.optionalWith<S.Union<[typeof FineTuneSupervisedMethodHyperparametersNEpochsEnum, S.filter<S.Schema<number, number, never>>]>, {
|
|
2722
2739
|
nullable: true;
|
|
2723
2740
|
default: () => "auto";
|
|
2724
2741
|
}>;
|
|
@@ -2728,33 +2745,33 @@ declare const FineTuneSupervisedMethod_base: S.Struct<{
|
|
|
2728
2745
|
}>;
|
|
2729
2746
|
export declare class FineTuneSupervisedMethod extends FineTuneSupervisedMethod_base {
|
|
2730
2747
|
}
|
|
2731
|
-
declare const
|
|
2732
|
-
export declare class
|
|
2748
|
+
declare const FineTuneDPOMethodHyperparametersBetaEnum_base: S.Literal<["auto"]>;
|
|
2749
|
+
export declare class FineTuneDPOMethodHyperparametersBetaEnum extends FineTuneDPOMethodHyperparametersBetaEnum_base {
|
|
2733
2750
|
}
|
|
2734
|
-
declare const
|
|
2735
|
-
export declare class
|
|
2751
|
+
declare const FineTuneDPOMethodHyperparametersBatchSizeEnum_base: S.Literal<["auto"]>;
|
|
2752
|
+
export declare class FineTuneDPOMethodHyperparametersBatchSizeEnum extends FineTuneDPOMethodHyperparametersBatchSizeEnum_base {
|
|
2736
2753
|
}
|
|
2737
|
-
declare const
|
|
2738
|
-
export declare class
|
|
2754
|
+
declare const FineTuneDPOMethodHyperparametersLearningRateMultiplierEnum_base: S.Literal<["auto"]>;
|
|
2755
|
+
export declare class FineTuneDPOMethodHyperparametersLearningRateMultiplierEnum extends FineTuneDPOMethodHyperparametersLearningRateMultiplierEnum_base {
|
|
2739
2756
|
}
|
|
2740
|
-
declare const
|
|
2741
|
-
export declare class
|
|
2757
|
+
declare const FineTuneDPOMethodHyperparametersNEpochsEnum_base: S.Literal<["auto"]>;
|
|
2758
|
+
export declare class FineTuneDPOMethodHyperparametersNEpochsEnum extends FineTuneDPOMethodHyperparametersNEpochsEnum_base {
|
|
2742
2759
|
}
|
|
2743
2760
|
declare const FineTuneDPOMethod_base: S.Struct<{
|
|
2744
2761
|
hyperparameters: S.optionalWith<S.Struct<{
|
|
2745
|
-
beta: S.optionalWith<S.Union<[typeof
|
|
2762
|
+
beta: S.optionalWith<S.Union<[typeof FineTuneDPOMethodHyperparametersBetaEnum, S.filter<S.Schema<number, number, never>>]>, {
|
|
2746
2763
|
nullable: true;
|
|
2747
2764
|
default: () => "auto";
|
|
2748
2765
|
}>;
|
|
2749
|
-
batch_size: S.optionalWith<S.Union<[typeof
|
|
2766
|
+
batch_size: S.optionalWith<S.Union<[typeof FineTuneDPOMethodHyperparametersBatchSizeEnum, S.filter<S.Schema<number, number, never>>]>, {
|
|
2750
2767
|
nullable: true;
|
|
2751
2768
|
default: () => "auto";
|
|
2752
2769
|
}>;
|
|
2753
|
-
learning_rate_multiplier: S.optionalWith<S.Union<[typeof
|
|
2770
|
+
learning_rate_multiplier: S.optionalWith<S.Union<[typeof FineTuneDPOMethodHyperparametersLearningRateMultiplierEnum, S.filter<S.Schema<number, number, never>>]>, {
|
|
2754
2771
|
nullable: true;
|
|
2755
2772
|
default: () => "auto";
|
|
2756
2773
|
}>;
|
|
2757
|
-
n_epochs: S.optionalWith<S.Union<[typeof
|
|
2774
|
+
n_epochs: S.optionalWith<S.Union<[typeof FineTuneDPOMethodHyperparametersNEpochsEnum, S.filter<S.Schema<number, number, never>>]>, {
|
|
2758
2775
|
nullable: true;
|
|
2759
2776
|
default: () => "auto";
|
|
2760
2777
|
}>;
|
|
@@ -2788,15 +2805,15 @@ declare const FineTuningJob_base: S.Struct<{
|
|
|
2788
2805
|
fine_tuned_model: S.NullOr<typeof S.String>;
|
|
2789
2806
|
finished_at: S.NullOr<typeof S.Int>;
|
|
2790
2807
|
hyperparameters: S.Struct<{
|
|
2791
|
-
batch_size: S.optionalWith<S.Union<[typeof
|
|
2808
|
+
batch_size: S.optionalWith<S.Union<[typeof FineTuningJobHyperparametersBatchSizeEnum, S.filter<S.Schema<number, number, never>>]>, {
|
|
2792
2809
|
nullable: true;
|
|
2793
2810
|
default: () => "auto";
|
|
2794
2811
|
}>;
|
|
2795
|
-
learning_rate_multiplier: S.optionalWith<S.Union<[typeof
|
|
2812
|
+
learning_rate_multiplier: S.optionalWith<S.Union<[typeof FineTuningJobHyperparametersLearningRateMultiplierEnum, S.filter<S.Schema<number, number, never>>]>, {
|
|
2796
2813
|
nullable: true;
|
|
2797
2814
|
default: () => "auto";
|
|
2798
2815
|
}>;
|
|
2799
|
-
n_epochs: S.optionalWith<S.Union<[typeof
|
|
2816
|
+
n_epochs: S.optionalWith<S.Union<[typeof FineTuningJobHyperparametersNEpochsEnum, S.filter<S.Schema<number, number, never>>]>, {
|
|
2800
2817
|
nullable: true;
|
|
2801
2818
|
default: () => "auto";
|
|
2802
2819
|
}>;
|
|
@@ -2910,48 +2927,45 @@ declare const ListPaginatedFineTuningJobsResponse_base: S.Class<ListPaginatedFin
|
|
|
2910
2927
|
}, {}, {}>;
|
|
2911
2928
|
export declare class ListPaginatedFineTuningJobsResponse extends ListPaginatedFineTuningJobsResponse_base {
|
|
2912
2929
|
}
|
|
2913
|
-
declare const
|
|
2914
|
-
export declare class
|
|
2915
|
-
}
|
|
2916
|
-
declare const CreateFineTuningJobRequestHyperparametersBatchSize_base: S.Literal<["auto"]>;
|
|
2917
|
-
export declare class CreateFineTuningJobRequestHyperparametersBatchSize extends CreateFineTuningJobRequestHyperparametersBatchSize_base {
|
|
2930
|
+
declare const CreateFineTuningJobRequestModelEnum_base: S.Literal<["babbage-002", "davinci-002", "gpt-3.5-turbo", "gpt-4o-mini"]>;
|
|
2931
|
+
export declare class CreateFineTuningJobRequestModelEnum extends CreateFineTuningJobRequestModelEnum_base {
|
|
2918
2932
|
}
|
|
2919
|
-
declare const
|
|
2920
|
-
export declare class
|
|
2933
|
+
declare const CreateFineTuningJobRequestHyperparametersBatchSizeEnum_base: S.Literal<["auto"]>;
|
|
2934
|
+
export declare class CreateFineTuningJobRequestHyperparametersBatchSizeEnum extends CreateFineTuningJobRequestHyperparametersBatchSizeEnum_base {
|
|
2921
2935
|
}
|
|
2922
|
-
declare const
|
|
2923
|
-
export declare class
|
|
2936
|
+
declare const CreateFineTuningJobRequestHyperparametersLearningRateMultiplierEnum_base: S.Literal<["auto"]>;
|
|
2937
|
+
export declare class CreateFineTuningJobRequestHyperparametersLearningRateMultiplierEnum extends CreateFineTuningJobRequestHyperparametersLearningRateMultiplierEnum_base {
|
|
2924
2938
|
}
|
|
2925
|
-
declare const
|
|
2926
|
-
export declare class
|
|
2939
|
+
declare const CreateFineTuningJobRequestHyperparametersNEpochsEnum_base: S.Literal<["auto"]>;
|
|
2940
|
+
export declare class CreateFineTuningJobRequestHyperparametersNEpochsEnum extends CreateFineTuningJobRequestHyperparametersNEpochsEnum_base {
|
|
2927
2941
|
}
|
|
2928
2942
|
declare const CreateFineTuningJobRequest_base: S.Class<CreateFineTuningJobRequest, {
|
|
2929
|
-
model: S.Union<[typeof S.String, typeof
|
|
2943
|
+
model: S.Union<[typeof S.String, typeof CreateFineTuningJobRequestModelEnum]>;
|
|
2930
2944
|
training_file: typeof S.String;
|
|
2931
2945
|
hyperparameters: S.optionalWith<S.Struct<{
|
|
2932
|
-
batch_size: S.optionalWith<S.Union<[typeof
|
|
2946
|
+
batch_size: S.optionalWith<S.Union<[typeof CreateFineTuningJobRequestHyperparametersBatchSizeEnum, S.filter<S.Schema<number, number, never>>]>, {
|
|
2933
2947
|
nullable: true;
|
|
2934
2948
|
default: () => "auto";
|
|
2935
2949
|
}>;
|
|
2936
|
-
learning_rate_multiplier: S.optionalWith<S.Union<[typeof
|
|
2950
|
+
learning_rate_multiplier: S.optionalWith<S.Union<[typeof CreateFineTuningJobRequestHyperparametersLearningRateMultiplierEnum, S.filter<S.Schema<number, number, never>>]>, {
|
|
2937
2951
|
nullable: true;
|
|
2938
2952
|
default: () => "auto";
|
|
2939
2953
|
}>;
|
|
2940
|
-
n_epochs: S.optionalWith<S.Union<[typeof
|
|
2954
|
+
n_epochs: S.optionalWith<S.Union<[typeof CreateFineTuningJobRequestHyperparametersNEpochsEnum, S.filter<S.Schema<number, number, never>>]>, {
|
|
2941
2955
|
nullable: true;
|
|
2942
2956
|
default: () => "auto";
|
|
2943
2957
|
}>;
|
|
2944
2958
|
}>, {
|
|
2945
2959
|
nullable: true;
|
|
2946
2960
|
}>;
|
|
2947
|
-
suffix: S.optionalWith<S.filter<S.Schema<string, string, never
|
|
2948
|
-
|
|
2961
|
+
suffix: S.optionalWith<S.NullOr<S.filter<S.Schema<string, string, never>>>, {
|
|
2962
|
+
default: () => null;
|
|
2949
2963
|
}>;
|
|
2950
2964
|
validation_file: S.optionalWith<typeof S.String, {
|
|
2951
2965
|
nullable: true;
|
|
2952
2966
|
}>;
|
|
2953
2967
|
integrations: S.optionalWith<S.Array$<S.Struct<{
|
|
2954
|
-
type:
|
|
2968
|
+
type: S.Literal<["wandb"]>;
|
|
2955
2969
|
wandb: S.Struct<{
|
|
2956
2970
|
project: typeof S.String;
|
|
2957
2971
|
name: S.optionalWith<typeof S.String, {
|
|
@@ -2974,32 +2988,32 @@ declare const CreateFineTuningJobRequest_base: S.Class<CreateFineTuningJobReques
|
|
|
2974
2988
|
nullable: true;
|
|
2975
2989
|
}>;
|
|
2976
2990
|
}, S.Struct.Encoded<{
|
|
2977
|
-
model: S.Union<[typeof S.String, typeof
|
|
2991
|
+
model: S.Union<[typeof S.String, typeof CreateFineTuningJobRequestModelEnum]>;
|
|
2978
2992
|
training_file: typeof S.String;
|
|
2979
2993
|
hyperparameters: S.optionalWith<S.Struct<{
|
|
2980
|
-
batch_size: S.optionalWith<S.Union<[typeof
|
|
2994
|
+
batch_size: S.optionalWith<S.Union<[typeof CreateFineTuningJobRequestHyperparametersBatchSizeEnum, S.filter<S.Schema<number, number, never>>]>, {
|
|
2981
2995
|
nullable: true;
|
|
2982
2996
|
default: () => "auto";
|
|
2983
2997
|
}>;
|
|
2984
|
-
learning_rate_multiplier: S.optionalWith<S.Union<[typeof
|
|
2998
|
+
learning_rate_multiplier: S.optionalWith<S.Union<[typeof CreateFineTuningJobRequestHyperparametersLearningRateMultiplierEnum, S.filter<S.Schema<number, number, never>>]>, {
|
|
2985
2999
|
nullable: true;
|
|
2986
3000
|
default: () => "auto";
|
|
2987
3001
|
}>;
|
|
2988
|
-
n_epochs: S.optionalWith<S.Union<[typeof
|
|
3002
|
+
n_epochs: S.optionalWith<S.Union<[typeof CreateFineTuningJobRequestHyperparametersNEpochsEnum, S.filter<S.Schema<number, number, never>>]>, {
|
|
2989
3003
|
nullable: true;
|
|
2990
3004
|
default: () => "auto";
|
|
2991
3005
|
}>;
|
|
2992
3006
|
}>, {
|
|
2993
3007
|
nullable: true;
|
|
2994
3008
|
}>;
|
|
2995
|
-
suffix: S.optionalWith<S.filter<S.Schema<string, string, never
|
|
2996
|
-
|
|
3009
|
+
suffix: S.optionalWith<S.NullOr<S.filter<S.Schema<string, string, never>>>, {
|
|
3010
|
+
default: () => null;
|
|
2997
3011
|
}>;
|
|
2998
3012
|
validation_file: S.optionalWith<typeof S.String, {
|
|
2999
3013
|
nullable: true;
|
|
3000
3014
|
}>;
|
|
3001
3015
|
integrations: S.optionalWith<S.Array$<S.Struct<{
|
|
3002
|
-
type:
|
|
3016
|
+
type: S.Literal<["wandb"]>;
|
|
3003
3017
|
wandb: S.Struct<{
|
|
3004
3018
|
project: typeof S.String;
|
|
3005
3019
|
name: S.optionalWith<typeof S.String, {
|
|
@@ -3026,7 +3040,7 @@ declare const CreateFineTuningJobRequest_base: S.Class<CreateFineTuningJobReques
|
|
|
3026
3040
|
} & {
|
|
3027
3041
|
readonly seed?: number | undefined;
|
|
3028
3042
|
} & {
|
|
3029
|
-
readonly suffix?: string | undefined;
|
|
3043
|
+
readonly suffix?: string | null | undefined;
|
|
3030
3044
|
} & {
|
|
3031
3045
|
readonly hyperparameters?: {
|
|
3032
3046
|
readonly batch_size: number | "auto";
|
|
@@ -3209,11 +3223,15 @@ export declare class ListFineTuningJobEventsResponseObject extends ListFineTunin
|
|
|
3209
3223
|
declare const ListFineTuningJobEventsResponse_base: S.Class<ListFineTuningJobEventsResponse, {
|
|
3210
3224
|
data: S.Array$<typeof FineTuningJobEvent>;
|
|
3211
3225
|
object: typeof ListFineTuningJobEventsResponseObject;
|
|
3226
|
+
has_more: typeof S.Boolean;
|
|
3212
3227
|
}, S.Struct.Encoded<{
|
|
3213
3228
|
data: S.Array$<typeof FineTuningJobEvent>;
|
|
3214
3229
|
object: typeof ListFineTuningJobEventsResponseObject;
|
|
3230
|
+
has_more: typeof S.Boolean;
|
|
3215
3231
|
}>, never, {
|
|
3216
3232
|
readonly object: "list";
|
|
3233
|
+
} & {
|
|
3234
|
+
readonly has_more: boolean;
|
|
3217
3235
|
} & {
|
|
3218
3236
|
readonly data: readonly {
|
|
3219
3237
|
readonly object: "fine_tuning.job.event";
|
|
@@ -3259,8 +3277,8 @@ declare const ImagesResponse_base: S.Class<ImagesResponse, {
|
|
|
3259
3277
|
}, {}, {}>;
|
|
3260
3278
|
export declare class ImagesResponse extends ImagesResponse_base {
|
|
3261
3279
|
}
|
|
3262
|
-
declare const
|
|
3263
|
-
export declare class
|
|
3280
|
+
declare const CreateImageRequestModelEnum_base: S.Literal<["dall-e-2", "dall-e-3"]>;
|
|
3281
|
+
export declare class CreateImageRequestModelEnum extends CreateImageRequestModelEnum_base {
|
|
3264
3282
|
}
|
|
3265
3283
|
declare const CreateImageRequestQuality_base: S.Literal<["standard", "hd"]>;
|
|
3266
3284
|
export declare class CreateImageRequestQuality extends CreateImageRequestQuality_base {
|
|
@@ -3276,7 +3294,7 @@ export declare class CreateImageRequestStyle extends CreateImageRequestStyle_bas
|
|
|
3276
3294
|
}
|
|
3277
3295
|
declare const CreateImageRequest_base: S.Class<CreateImageRequest, {
|
|
3278
3296
|
prompt: typeof S.String;
|
|
3279
|
-
model: S.optionalWith<S.Union<[typeof S.String, typeof
|
|
3297
|
+
model: S.optionalWith<S.Union<[typeof S.String, typeof CreateImageRequestModelEnum]>, {
|
|
3280
3298
|
nullable: true;
|
|
3281
3299
|
default: () => "dall-e-2";
|
|
3282
3300
|
}>;
|
|
@@ -3305,7 +3323,7 @@ declare const CreateImageRequest_base: S.Class<CreateImageRequest, {
|
|
|
3305
3323
|
}>;
|
|
3306
3324
|
}, S.Struct.Encoded<{
|
|
3307
3325
|
prompt: typeof S.String;
|
|
3308
|
-
model: S.optionalWith<S.Union<[typeof S.String, typeof
|
|
3326
|
+
model: S.optionalWith<S.Union<[typeof S.String, typeof CreateImageRequestModelEnum]>, {
|
|
3309
3327
|
nullable: true;
|
|
3310
3328
|
default: () => "dall-e-2";
|
|
3311
3329
|
}>;
|
|
@@ -3400,37 +3418,34 @@ declare const DeleteModelResponse_base: S.Class<DeleteModelResponse, {
|
|
|
3400
3418
|
}, {}, {}>;
|
|
3401
3419
|
export declare class DeleteModelResponse extends DeleteModelResponse_base {
|
|
3402
3420
|
}
|
|
3403
|
-
declare const
|
|
3404
|
-
export declare class
|
|
3405
|
-
}
|
|
3406
|
-
declare const CreateModerationRequestModel_base: S.Literal<["omni-moderation-latest", "omni-moderation-2024-09-26", "text-moderation-latest", "text-moderation-stable"]>;
|
|
3407
|
-
export declare class CreateModerationRequestModel extends CreateModerationRequestModel_base {
|
|
3421
|
+
declare const CreateModerationRequestModelEnum_base: S.Literal<["omni-moderation-latest", "omni-moderation-2024-09-26", "text-moderation-latest", "text-moderation-stable"]>;
|
|
3422
|
+
export declare class CreateModerationRequestModelEnum extends CreateModerationRequestModelEnum_base {
|
|
3408
3423
|
}
|
|
3409
3424
|
declare const CreateModerationRequest_base: S.Class<CreateModerationRequest, {
|
|
3410
3425
|
input: S.Union<[typeof S.String, S.Array$<typeof S.String>, S.Array$<S.Union<[S.Struct<{
|
|
3411
|
-
type:
|
|
3426
|
+
type: S.Literal<["image_url"]>;
|
|
3412
3427
|
image_url: S.Struct<{
|
|
3413
3428
|
url: typeof S.String;
|
|
3414
3429
|
}>;
|
|
3415
3430
|
}>, S.Struct<{
|
|
3416
|
-
type:
|
|
3431
|
+
type: S.Literal<["text"]>;
|
|
3417
3432
|
text: typeof S.String;
|
|
3418
3433
|
}>]>>]>;
|
|
3419
|
-
model: S.optionalWith<S.Union<[typeof S.String, typeof
|
|
3434
|
+
model: S.optionalWith<S.Union<[typeof S.String, typeof CreateModerationRequestModelEnum]>, {
|
|
3420
3435
|
nullable: true;
|
|
3421
3436
|
default: () => "omni-moderation-latest";
|
|
3422
3437
|
}>;
|
|
3423
3438
|
}, S.Struct.Encoded<{
|
|
3424
3439
|
input: S.Union<[typeof S.String, S.Array$<typeof S.String>, S.Array$<S.Union<[S.Struct<{
|
|
3425
|
-
type:
|
|
3440
|
+
type: S.Literal<["image_url"]>;
|
|
3426
3441
|
image_url: S.Struct<{
|
|
3427
3442
|
url: typeof S.String;
|
|
3428
3443
|
}>;
|
|
3429
3444
|
}>, S.Struct<{
|
|
3430
|
-
type:
|
|
3445
|
+
type: S.Literal<["text"]>;
|
|
3431
3446
|
text: typeof S.String;
|
|
3432
3447
|
}>]>>]>;
|
|
3433
|
-
model: S.optionalWith<S.Union<[typeof S.String, typeof
|
|
3448
|
+
model: S.optionalWith<S.Union<[typeof S.String, typeof CreateModerationRequestModelEnum]>, {
|
|
3434
3449
|
nullable: true;
|
|
3435
3450
|
default: () => "omni-moderation-latest";
|
|
3436
3451
|
}>;
|
|
@@ -3438,7 +3453,7 @@ declare const CreateModerationRequest_base: S.Class<CreateModerationRequest, {
|
|
|
3438
3453
|
readonly model?: string | undefined;
|
|
3439
3454
|
} & {
|
|
3440
3455
|
readonly input: string | readonly string[] | readonly ({
|
|
3441
|
-
readonly type: "
|
|
3456
|
+
readonly type: "image_url";
|
|
3442
3457
|
readonly image_url: {
|
|
3443
3458
|
readonly url: string;
|
|
3444
3459
|
};
|
|
@@ -3449,45 +3464,6 @@ declare const CreateModerationRequest_base: S.Class<CreateModerationRequest, {
|
|
|
3449
3464
|
}, {}, {}>;
|
|
3450
3465
|
export declare class CreateModerationRequest extends CreateModerationRequest_base {
|
|
3451
3466
|
}
|
|
3452
|
-
declare const CreateModerationResponseResultsCategoryAppliedInputTypesHate_base: S.Literal<["text"]>;
|
|
3453
|
-
export declare class CreateModerationResponseResultsCategoryAppliedInputTypesHate extends CreateModerationResponseResultsCategoryAppliedInputTypesHate_base {
|
|
3454
|
-
}
|
|
3455
|
-
declare const CreateModerationResponseResultsCategoryAppliedInputTypesHateThreatening_base: S.Literal<["text"]>;
|
|
3456
|
-
export declare class CreateModerationResponseResultsCategoryAppliedInputTypesHateThreatening extends CreateModerationResponseResultsCategoryAppliedInputTypesHateThreatening_base {
|
|
3457
|
-
}
|
|
3458
|
-
declare const CreateModerationResponseResultsCategoryAppliedInputTypesHarassment_base: S.Literal<["text"]>;
|
|
3459
|
-
export declare class CreateModerationResponseResultsCategoryAppliedInputTypesHarassment extends CreateModerationResponseResultsCategoryAppliedInputTypesHarassment_base {
|
|
3460
|
-
}
|
|
3461
|
-
declare const CreateModerationResponseResultsCategoryAppliedInputTypesHarassmentThreatening_base: S.Literal<["text"]>;
|
|
3462
|
-
export declare class CreateModerationResponseResultsCategoryAppliedInputTypesHarassmentThreatening extends CreateModerationResponseResultsCategoryAppliedInputTypesHarassmentThreatening_base {
|
|
3463
|
-
}
|
|
3464
|
-
declare const CreateModerationResponseResultsCategoryAppliedInputTypesIllicit_base: S.Literal<["text"]>;
|
|
3465
|
-
export declare class CreateModerationResponseResultsCategoryAppliedInputTypesIllicit extends CreateModerationResponseResultsCategoryAppliedInputTypesIllicit_base {
|
|
3466
|
-
}
|
|
3467
|
-
declare const CreateModerationResponseResultsCategoryAppliedInputTypesIllicitViolent_base: S.Literal<["text"]>;
|
|
3468
|
-
export declare class CreateModerationResponseResultsCategoryAppliedInputTypesIllicitViolent extends CreateModerationResponseResultsCategoryAppliedInputTypesIllicitViolent_base {
|
|
3469
|
-
}
|
|
3470
|
-
declare const CreateModerationResponseResultsCategoryAppliedInputTypesSelfHarm_base: S.Literal<["text", "image"]>;
|
|
3471
|
-
export declare class CreateModerationResponseResultsCategoryAppliedInputTypesSelfHarm extends CreateModerationResponseResultsCategoryAppliedInputTypesSelfHarm_base {
|
|
3472
|
-
}
|
|
3473
|
-
declare const CreateModerationResponseResultsCategoryAppliedInputTypesSelfHarmIntent_base: S.Literal<["text", "image"]>;
|
|
3474
|
-
export declare class CreateModerationResponseResultsCategoryAppliedInputTypesSelfHarmIntent extends CreateModerationResponseResultsCategoryAppliedInputTypesSelfHarmIntent_base {
|
|
3475
|
-
}
|
|
3476
|
-
declare const CreateModerationResponseResultsCategoryAppliedInputTypesSelfHarmInstructions_base: S.Literal<["text", "image"]>;
|
|
3477
|
-
export declare class CreateModerationResponseResultsCategoryAppliedInputTypesSelfHarmInstructions extends CreateModerationResponseResultsCategoryAppliedInputTypesSelfHarmInstructions_base {
|
|
3478
|
-
}
|
|
3479
|
-
declare const CreateModerationResponseResultsCategoryAppliedInputTypesSexual_base: S.Literal<["text", "image"]>;
|
|
3480
|
-
export declare class CreateModerationResponseResultsCategoryAppliedInputTypesSexual extends CreateModerationResponseResultsCategoryAppliedInputTypesSexual_base {
|
|
3481
|
-
}
|
|
3482
|
-
declare const CreateModerationResponseResultsCategoryAppliedInputTypesSexualMinors_base: S.Literal<["text"]>;
|
|
3483
|
-
export declare class CreateModerationResponseResultsCategoryAppliedInputTypesSexualMinors extends CreateModerationResponseResultsCategoryAppliedInputTypesSexualMinors_base {
|
|
3484
|
-
}
|
|
3485
|
-
declare const CreateModerationResponseResultsCategoryAppliedInputTypesViolence_base: S.Literal<["text", "image"]>;
|
|
3486
|
-
export declare class CreateModerationResponseResultsCategoryAppliedInputTypesViolence extends CreateModerationResponseResultsCategoryAppliedInputTypesViolence_base {
|
|
3487
|
-
}
|
|
3488
|
-
declare const CreateModerationResponseResultsCategoryAppliedInputTypesViolenceGraphic_base: S.Literal<["text", "image"]>;
|
|
3489
|
-
export declare class CreateModerationResponseResultsCategoryAppliedInputTypesViolenceGraphic extends CreateModerationResponseResultsCategoryAppliedInputTypesViolenceGraphic_base {
|
|
3490
|
-
}
|
|
3491
3467
|
declare const CreateModerationResponse_base: S.Class<CreateModerationResponse, {
|
|
3492
3468
|
id: typeof S.String;
|
|
3493
3469
|
model: typeof S.String;
|
|
@@ -3498,8 +3474,8 @@ declare const CreateModerationResponse_base: S.Class<CreateModerationResponse, {
|
|
|
3498
3474
|
"hate/threatening": typeof S.Boolean;
|
|
3499
3475
|
harassment: typeof S.Boolean;
|
|
3500
3476
|
"harassment/threatening": typeof S.Boolean;
|
|
3501
|
-
illicit: typeof S.Boolean
|
|
3502
|
-
"illicit/violent": typeof S.Boolean
|
|
3477
|
+
illicit: S.NullOr<typeof S.Boolean>;
|
|
3478
|
+
"illicit/violent": S.NullOr<typeof S.Boolean>;
|
|
3503
3479
|
"self-harm": typeof S.Boolean;
|
|
3504
3480
|
"self-harm/intent": typeof S.Boolean;
|
|
3505
3481
|
"self-harm/instructions": typeof S.Boolean;
|
|
@@ -3524,19 +3500,19 @@ declare const CreateModerationResponse_base: S.Class<CreateModerationResponse, {
|
|
|
3524
3500
|
"violence/graphic": typeof S.Number;
|
|
3525
3501
|
}>;
|
|
3526
3502
|
category_applied_input_types: S.Struct<{
|
|
3527
|
-
hate: S.Array$<
|
|
3528
|
-
"hate/threatening": S.Array$<
|
|
3529
|
-
harassment: S.Array$<
|
|
3530
|
-
"harassment/threatening": S.Array$<
|
|
3531
|
-
illicit: S.Array$<
|
|
3532
|
-
"illicit/violent": S.Array$<
|
|
3533
|
-
"self-harm": S.Array$<
|
|
3534
|
-
"self-harm/intent": S.Array$<
|
|
3535
|
-
"self-harm/instructions": S.Array$<
|
|
3536
|
-
sexual: S.Array$<
|
|
3537
|
-
"sexual/minors": S.Array$<
|
|
3538
|
-
violence: S.Array$<
|
|
3539
|
-
"violence/graphic": S.Array$<
|
|
3503
|
+
hate: S.Array$<S.Literal<["text"]>>;
|
|
3504
|
+
"hate/threatening": S.Array$<S.Literal<["text"]>>;
|
|
3505
|
+
harassment: S.Array$<S.Literal<["text"]>>;
|
|
3506
|
+
"harassment/threatening": S.Array$<S.Literal<["text"]>>;
|
|
3507
|
+
illicit: S.Array$<S.Literal<["text"]>>;
|
|
3508
|
+
"illicit/violent": S.Array$<S.Literal<["text"]>>;
|
|
3509
|
+
"self-harm": S.Array$<S.Literal<["text", "image"]>>;
|
|
3510
|
+
"self-harm/intent": S.Array$<S.Literal<["text", "image"]>>;
|
|
3511
|
+
"self-harm/instructions": S.Array$<S.Literal<["text", "image"]>>;
|
|
3512
|
+
sexual: S.Array$<S.Literal<["text", "image"]>>;
|
|
3513
|
+
"sexual/minors": S.Array$<S.Literal<["text"]>>;
|
|
3514
|
+
violence: S.Array$<S.Literal<["text", "image"]>>;
|
|
3515
|
+
"violence/graphic": S.Array$<S.Literal<["text", "image"]>>;
|
|
3540
3516
|
}>;
|
|
3541
3517
|
}>>;
|
|
3542
3518
|
}, S.Struct.Encoded<{
|
|
@@ -3549,8 +3525,8 @@ declare const CreateModerationResponse_base: S.Class<CreateModerationResponse, {
|
|
|
3549
3525
|
"hate/threatening": typeof S.Boolean;
|
|
3550
3526
|
harassment: typeof S.Boolean;
|
|
3551
3527
|
"harassment/threatening": typeof S.Boolean;
|
|
3552
|
-
illicit: typeof S.Boolean
|
|
3553
|
-
"illicit/violent": typeof S.Boolean
|
|
3528
|
+
illicit: S.NullOr<typeof S.Boolean>;
|
|
3529
|
+
"illicit/violent": S.NullOr<typeof S.Boolean>;
|
|
3554
3530
|
"self-harm": typeof S.Boolean;
|
|
3555
3531
|
"self-harm/intent": typeof S.Boolean;
|
|
3556
3532
|
"self-harm/instructions": typeof S.Boolean;
|
|
@@ -3575,19 +3551,19 @@ declare const CreateModerationResponse_base: S.Class<CreateModerationResponse, {
|
|
|
3575
3551
|
"violence/graphic": typeof S.Number;
|
|
3576
3552
|
}>;
|
|
3577
3553
|
category_applied_input_types: S.Struct<{
|
|
3578
|
-
hate: S.Array$<
|
|
3579
|
-
"hate/threatening": S.Array$<
|
|
3580
|
-
harassment: S.Array$<
|
|
3581
|
-
"harassment/threatening": S.Array$<
|
|
3582
|
-
illicit: S.Array$<
|
|
3583
|
-
"illicit/violent": S.Array$<
|
|
3584
|
-
"self-harm": S.Array$<
|
|
3585
|
-
"self-harm/intent": S.Array$<
|
|
3586
|
-
"self-harm/instructions": S.Array$<
|
|
3587
|
-
sexual: S.Array$<
|
|
3588
|
-
"sexual/minors": S.Array$<
|
|
3589
|
-
violence: S.Array$<
|
|
3590
|
-
"violence/graphic": S.Array$<
|
|
3554
|
+
hate: S.Array$<S.Literal<["text"]>>;
|
|
3555
|
+
"hate/threatening": S.Array$<S.Literal<["text"]>>;
|
|
3556
|
+
harassment: S.Array$<S.Literal<["text"]>>;
|
|
3557
|
+
"harassment/threatening": S.Array$<S.Literal<["text"]>>;
|
|
3558
|
+
illicit: S.Array$<S.Literal<["text"]>>;
|
|
3559
|
+
"illicit/violent": S.Array$<S.Literal<["text"]>>;
|
|
3560
|
+
"self-harm": S.Array$<S.Literal<["text", "image"]>>;
|
|
3561
|
+
"self-harm/intent": S.Array$<S.Literal<["text", "image"]>>;
|
|
3562
|
+
"self-harm/instructions": S.Array$<S.Literal<["text", "image"]>>;
|
|
3563
|
+
sexual: S.Array$<S.Literal<["text", "image"]>>;
|
|
3564
|
+
"sexual/minors": S.Array$<S.Literal<["text"]>>;
|
|
3565
|
+
violence: S.Array$<S.Literal<["text", "image"]>>;
|
|
3566
|
+
"violence/graphic": S.Array$<S.Literal<["text", "image"]>>;
|
|
3591
3567
|
}>;
|
|
3592
3568
|
}>>;
|
|
3593
3569
|
}>, never, {
|
|
@@ -3602,8 +3578,8 @@ declare const CreateModerationResponse_base: S.Class<CreateModerationResponse, {
|
|
|
3602
3578
|
readonly "hate/threatening": boolean;
|
|
3603
3579
|
readonly harassment: boolean;
|
|
3604
3580
|
readonly "harassment/threatening": boolean;
|
|
3605
|
-
readonly illicit: boolean;
|
|
3606
|
-
readonly "illicit/violent": boolean;
|
|
3581
|
+
readonly illicit: boolean | null;
|
|
3582
|
+
readonly "illicit/violent": boolean | null;
|
|
3607
3583
|
readonly "self-harm": boolean;
|
|
3608
3584
|
readonly "self-harm/intent": boolean;
|
|
3609
3585
|
readonly "self-harm/instructions": boolean;
|
|
@@ -4338,9 +4314,6 @@ export declare class ListAuditLogsResponse extends ListAuditLogsResponse_base {
|
|
|
4338
4314
|
declare const UsageCostsParamsBucketWidth_base: S.Literal<["1d"]>;
|
|
4339
4315
|
export declare class UsageCostsParamsBucketWidth extends UsageCostsParamsBucketWidth_base {
|
|
4340
4316
|
}
|
|
4341
|
-
declare const UsageCostsParamsGroupBy_base: S.Literal<["project_id", "line_item"]>;
|
|
4342
|
-
export declare class UsageCostsParamsGroupBy extends UsageCostsParamsGroupBy_base {
|
|
4343
|
-
}
|
|
4344
4317
|
declare const UsageCostsParams_base: S.Struct<{
|
|
4345
4318
|
start_time: typeof S.Int;
|
|
4346
4319
|
end_time: S.optionalWith<typeof S.Int, {
|
|
@@ -4353,7 +4326,7 @@ declare const UsageCostsParams_base: S.Struct<{
|
|
|
4353
4326
|
project_ids: S.optionalWith<S.Array$<typeof S.String>, {
|
|
4354
4327
|
nullable: true;
|
|
4355
4328
|
}>;
|
|
4356
|
-
group_by: S.optionalWith<S.Array$<
|
|
4329
|
+
group_by: S.optionalWith<S.Array$<S.Literal<["project_id", "line_item"]>>, {
|
|
4357
4330
|
nullable: true;
|
|
4358
4331
|
}>;
|
|
4359
4332
|
limit: S.optionalWith<typeof S.Int, {
|
|
@@ -4540,7 +4513,9 @@ export declare class UsageCodeInterpreterSessionsResultObject extends UsageCodeI
|
|
|
4540
4513
|
}
|
|
4541
4514
|
declare const UsageCodeInterpreterSessionsResult_base: S.Struct<{
|
|
4542
4515
|
object: typeof UsageCodeInterpreterSessionsResultObject;
|
|
4543
|
-
|
|
4516
|
+
num_sessions: S.optionalWith<typeof S.Int, {
|
|
4517
|
+
nullable: true;
|
|
4518
|
+
}>;
|
|
4544
4519
|
project_id: S.optionalWith<typeof S.String, {
|
|
4545
4520
|
nullable: true;
|
|
4546
4521
|
}>;
|
|
@@ -4660,7 +4635,7 @@ declare const UsageResponse_base: S.Class<UsageResponse, {
|
|
|
4660
4635
|
} | {
|
|
4661
4636
|
readonly object: "organization.usage.code_interpreter_sessions.result";
|
|
4662
4637
|
readonly project_id?: string | undefined;
|
|
4663
|
-
readonly
|
|
4638
|
+
readonly num_sessions?: number | undefined;
|
|
4664
4639
|
} | {
|
|
4665
4640
|
readonly object: "organization.costs.result";
|
|
4666
4641
|
readonly project_id?: string | undefined;
|
|
@@ -4699,9 +4674,6 @@ export declare class InviteRole extends InviteRole_base {
|
|
|
4699
4674
|
declare const InviteStatus_base: S.Literal<["accepted", "expired", "pending"]>;
|
|
4700
4675
|
export declare class InviteStatus extends InviteStatus_base {
|
|
4701
4676
|
}
|
|
4702
|
-
declare const InviteProjectsRole_base: S.Literal<["member", "owner"]>;
|
|
4703
|
-
export declare class InviteProjectsRole extends InviteProjectsRole_base {
|
|
4704
|
-
}
|
|
4705
4677
|
declare const Invite_base: S.Struct<{
|
|
4706
4678
|
object: typeof InviteObject;
|
|
4707
4679
|
id: typeof S.String;
|
|
@@ -4717,7 +4689,7 @@ declare const Invite_base: S.Struct<{
|
|
|
4717
4689
|
id: S.optionalWith<typeof S.String, {
|
|
4718
4690
|
nullable: true;
|
|
4719
4691
|
}>;
|
|
4720
|
-
role: S.optionalWith<
|
|
4692
|
+
role: S.optionalWith<S.Literal<["member", "owner"]>, {
|
|
4721
4693
|
nullable: true;
|
|
4722
4694
|
}>;
|
|
4723
4695
|
}>>, {
|
|
@@ -4779,15 +4751,12 @@ export declare class InviteListResponse extends InviteListResponse_base {
|
|
|
4779
4751
|
declare const InviteRequestRole_base: S.Literal<["reader", "owner"]>;
|
|
4780
4752
|
export declare class InviteRequestRole extends InviteRequestRole_base {
|
|
4781
4753
|
}
|
|
4782
|
-
declare const InviteRequestProjectsRole_base: S.Literal<["member", "owner"]>;
|
|
4783
|
-
export declare class InviteRequestProjectsRole extends InviteRequestProjectsRole_base {
|
|
4784
|
-
}
|
|
4785
4754
|
declare const InviteRequest_base: S.Class<InviteRequest, {
|
|
4786
4755
|
email: typeof S.String;
|
|
4787
4756
|
role: typeof InviteRequestRole;
|
|
4788
4757
|
projects: S.optionalWith<S.Array$<S.Struct<{
|
|
4789
4758
|
id: typeof S.String;
|
|
4790
|
-
role:
|
|
4759
|
+
role: S.Literal<["member", "owner"]>;
|
|
4791
4760
|
}>>, {
|
|
4792
4761
|
nullable: true;
|
|
4793
4762
|
}>;
|
|
@@ -4796,7 +4765,7 @@ declare const InviteRequest_base: S.Class<InviteRequest, {
|
|
|
4796
4765
|
role: typeof InviteRequestRole;
|
|
4797
4766
|
projects: S.optionalWith<S.Array$<S.Struct<{
|
|
4798
4767
|
id: typeof S.String;
|
|
4799
|
-
role:
|
|
4768
|
+
role: S.Literal<["member", "owner"]>;
|
|
4800
4769
|
}>>, {
|
|
4801
4770
|
nullable: true;
|
|
4802
4771
|
}>;
|
|
@@ -5430,9 +5399,6 @@ export declare class ProjectUserDeleteResponse extends ProjectUserDeleteResponse
|
|
|
5430
5399
|
declare const UsageAudioSpeechesParamsBucketWidth_base: S.Literal<["1m", "1h", "1d"]>;
|
|
5431
5400
|
export declare class UsageAudioSpeechesParamsBucketWidth extends UsageAudioSpeechesParamsBucketWidth_base {
|
|
5432
5401
|
}
|
|
5433
|
-
declare const UsageAudioSpeechesParamsGroupBy_base: S.Literal<["project_id", "user_id", "api_key_id", "model"]>;
|
|
5434
|
-
export declare class UsageAudioSpeechesParamsGroupBy extends UsageAudioSpeechesParamsGroupBy_base {
|
|
5435
|
-
}
|
|
5436
5402
|
declare const UsageAudioSpeechesParams_base: S.Struct<{
|
|
5437
5403
|
start_time: typeof S.Int;
|
|
5438
5404
|
end_time: S.optionalWith<typeof S.Int, {
|
|
@@ -5454,7 +5420,7 @@ declare const UsageAudioSpeechesParams_base: S.Struct<{
|
|
|
5454
5420
|
models: S.optionalWith<S.Array$<typeof S.String>, {
|
|
5455
5421
|
nullable: true;
|
|
5456
5422
|
}>;
|
|
5457
|
-
group_by: S.optionalWith<S.Array$<
|
|
5423
|
+
group_by: S.optionalWith<S.Array$<S.Literal<["project_id", "user_id", "api_key_id", "model"]>>, {
|
|
5458
5424
|
nullable: true;
|
|
5459
5425
|
}>;
|
|
5460
5426
|
limit: S.optionalWith<typeof S.Int, {
|
|
@@ -5469,9 +5435,6 @@ export declare class UsageAudioSpeechesParams extends UsageAudioSpeechesParams_b
|
|
|
5469
5435
|
declare const UsageAudioTranscriptionsParamsBucketWidth_base: S.Literal<["1m", "1h", "1d"]>;
|
|
5470
5436
|
export declare class UsageAudioTranscriptionsParamsBucketWidth extends UsageAudioTranscriptionsParamsBucketWidth_base {
|
|
5471
5437
|
}
|
|
5472
|
-
declare const UsageAudioTranscriptionsParamsGroupBy_base: S.Literal<["project_id", "user_id", "api_key_id", "model"]>;
|
|
5473
|
-
export declare class UsageAudioTranscriptionsParamsGroupBy extends UsageAudioTranscriptionsParamsGroupBy_base {
|
|
5474
|
-
}
|
|
5475
5438
|
declare const UsageAudioTranscriptionsParams_base: S.Struct<{
|
|
5476
5439
|
start_time: typeof S.Int;
|
|
5477
5440
|
end_time: S.optionalWith<typeof S.Int, {
|
|
@@ -5493,7 +5456,7 @@ declare const UsageAudioTranscriptionsParams_base: S.Struct<{
|
|
|
5493
5456
|
models: S.optionalWith<S.Array$<typeof S.String>, {
|
|
5494
5457
|
nullable: true;
|
|
5495
5458
|
}>;
|
|
5496
|
-
group_by: S.optionalWith<S.Array$<
|
|
5459
|
+
group_by: S.optionalWith<S.Array$<S.Literal<["project_id", "user_id", "api_key_id", "model"]>>, {
|
|
5497
5460
|
nullable: true;
|
|
5498
5461
|
}>;
|
|
5499
5462
|
limit: S.optionalWith<typeof S.Int, {
|
|
@@ -5508,9 +5471,6 @@ export declare class UsageAudioTranscriptionsParams extends UsageAudioTranscript
|
|
|
5508
5471
|
declare const UsageCodeInterpreterSessionsParamsBucketWidth_base: S.Literal<["1m", "1h", "1d"]>;
|
|
5509
5472
|
export declare class UsageCodeInterpreterSessionsParamsBucketWidth extends UsageCodeInterpreterSessionsParamsBucketWidth_base {
|
|
5510
5473
|
}
|
|
5511
|
-
declare const UsageCodeInterpreterSessionsParamsGroupBy_base: S.Literal<["project_id"]>;
|
|
5512
|
-
export declare class UsageCodeInterpreterSessionsParamsGroupBy extends UsageCodeInterpreterSessionsParamsGroupBy_base {
|
|
5513
|
-
}
|
|
5514
5474
|
declare const UsageCodeInterpreterSessionsParams_base: S.Struct<{
|
|
5515
5475
|
start_time: typeof S.Int;
|
|
5516
5476
|
end_time: S.optionalWith<typeof S.Int, {
|
|
@@ -5523,7 +5483,7 @@ declare const UsageCodeInterpreterSessionsParams_base: S.Struct<{
|
|
|
5523
5483
|
project_ids: S.optionalWith<S.Array$<typeof S.String>, {
|
|
5524
5484
|
nullable: true;
|
|
5525
5485
|
}>;
|
|
5526
|
-
group_by: S.optionalWith<S.Array$<
|
|
5486
|
+
group_by: S.optionalWith<S.Array$<S.Literal<["project_id"]>>, {
|
|
5527
5487
|
nullable: true;
|
|
5528
5488
|
}>;
|
|
5529
5489
|
limit: S.optionalWith<typeof S.Int, {
|
|
@@ -5538,9 +5498,6 @@ export declare class UsageCodeInterpreterSessionsParams extends UsageCodeInterpr
|
|
|
5538
5498
|
declare const UsageCompletionsParamsBucketWidth_base: S.Literal<["1m", "1h", "1d"]>;
|
|
5539
5499
|
export declare class UsageCompletionsParamsBucketWidth extends UsageCompletionsParamsBucketWidth_base {
|
|
5540
5500
|
}
|
|
5541
|
-
declare const UsageCompletionsParamsGroupBy_base: S.Literal<["project_id", "user_id", "api_key_id", "model", "batch"]>;
|
|
5542
|
-
export declare class UsageCompletionsParamsGroupBy extends UsageCompletionsParamsGroupBy_base {
|
|
5543
|
-
}
|
|
5544
5501
|
declare const UsageCompletionsParams_base: S.Struct<{
|
|
5545
5502
|
start_time: typeof S.Int;
|
|
5546
5503
|
end_time: S.optionalWith<typeof S.Int, {
|
|
@@ -5565,7 +5522,7 @@ declare const UsageCompletionsParams_base: S.Struct<{
|
|
|
5565
5522
|
batch: S.optionalWith<typeof S.Boolean, {
|
|
5566
5523
|
nullable: true;
|
|
5567
5524
|
}>;
|
|
5568
|
-
group_by: S.optionalWith<S.Array$<
|
|
5525
|
+
group_by: S.optionalWith<S.Array$<S.Literal<["project_id", "user_id", "api_key_id", "model", "batch"]>>, {
|
|
5569
5526
|
nullable: true;
|
|
5570
5527
|
}>;
|
|
5571
5528
|
limit: S.optionalWith<typeof S.Int, {
|
|
@@ -5580,9 +5537,6 @@ export declare class UsageCompletionsParams extends UsageCompletionsParams_base
|
|
|
5580
5537
|
declare const UsageEmbeddingsParamsBucketWidth_base: S.Literal<["1m", "1h", "1d"]>;
|
|
5581
5538
|
export declare class UsageEmbeddingsParamsBucketWidth extends UsageEmbeddingsParamsBucketWidth_base {
|
|
5582
5539
|
}
|
|
5583
|
-
declare const UsageEmbeddingsParamsGroupBy_base: S.Literal<["project_id", "user_id", "api_key_id", "model"]>;
|
|
5584
|
-
export declare class UsageEmbeddingsParamsGroupBy extends UsageEmbeddingsParamsGroupBy_base {
|
|
5585
|
-
}
|
|
5586
5540
|
declare const UsageEmbeddingsParams_base: S.Struct<{
|
|
5587
5541
|
start_time: typeof S.Int;
|
|
5588
5542
|
end_time: S.optionalWith<typeof S.Int, {
|
|
@@ -5604,7 +5558,7 @@ declare const UsageEmbeddingsParams_base: S.Struct<{
|
|
|
5604
5558
|
models: S.optionalWith<S.Array$<typeof S.String>, {
|
|
5605
5559
|
nullable: true;
|
|
5606
5560
|
}>;
|
|
5607
|
-
group_by: S.optionalWith<S.Array$<
|
|
5561
|
+
group_by: S.optionalWith<S.Array$<S.Literal<["project_id", "user_id", "api_key_id", "model"]>>, {
|
|
5608
5562
|
nullable: true;
|
|
5609
5563
|
}>;
|
|
5610
5564
|
limit: S.optionalWith<typeof S.Int, {
|
|
@@ -5619,15 +5573,6 @@ export declare class UsageEmbeddingsParams extends UsageEmbeddingsParams_base {
|
|
|
5619
5573
|
declare const UsageImagesParamsBucketWidth_base: S.Literal<["1m", "1h", "1d"]>;
|
|
5620
5574
|
export declare class UsageImagesParamsBucketWidth extends UsageImagesParamsBucketWidth_base {
|
|
5621
5575
|
}
|
|
5622
|
-
declare const UsageImagesParamsSources_base: S.Literal<["image.generation", "image.edit", "image.variation"]>;
|
|
5623
|
-
export declare class UsageImagesParamsSources extends UsageImagesParamsSources_base {
|
|
5624
|
-
}
|
|
5625
|
-
declare const UsageImagesParamsSizes_base: S.Literal<["256x256", "512x512", "1024x1024", "1792x1792", "1024x1792"]>;
|
|
5626
|
-
export declare class UsageImagesParamsSizes extends UsageImagesParamsSizes_base {
|
|
5627
|
-
}
|
|
5628
|
-
declare const UsageImagesParamsGroupBy_base: S.Literal<["project_id", "user_id", "api_key_id", "model", "size", "source"]>;
|
|
5629
|
-
export declare class UsageImagesParamsGroupBy extends UsageImagesParamsGroupBy_base {
|
|
5630
|
-
}
|
|
5631
5576
|
declare const UsageImagesParams_base: S.Struct<{
|
|
5632
5577
|
start_time: typeof S.Int;
|
|
5633
5578
|
end_time: S.optionalWith<typeof S.Int, {
|
|
@@ -5637,10 +5582,10 @@ declare const UsageImagesParams_base: S.Struct<{
|
|
|
5637
5582
|
nullable: true;
|
|
5638
5583
|
default: () => "1d";
|
|
5639
5584
|
}>;
|
|
5640
|
-
sources: S.optionalWith<S.Array$<
|
|
5585
|
+
sources: S.optionalWith<S.Array$<S.Literal<["image.generation", "image.edit", "image.variation"]>>, {
|
|
5641
5586
|
nullable: true;
|
|
5642
5587
|
}>;
|
|
5643
|
-
sizes: S.optionalWith<S.Array$<
|
|
5588
|
+
sizes: S.optionalWith<S.Array$<S.Literal<["256x256", "512x512", "1024x1024", "1792x1792", "1024x1792"]>>, {
|
|
5644
5589
|
nullable: true;
|
|
5645
5590
|
}>;
|
|
5646
5591
|
project_ids: S.optionalWith<S.Array$<typeof S.String>, {
|
|
@@ -5655,7 +5600,7 @@ declare const UsageImagesParams_base: S.Struct<{
|
|
|
5655
5600
|
models: S.optionalWith<S.Array$<typeof S.String>, {
|
|
5656
5601
|
nullable: true;
|
|
5657
5602
|
}>;
|
|
5658
|
-
group_by: S.optionalWith<S.Array$<
|
|
5603
|
+
group_by: S.optionalWith<S.Array$<S.Literal<["project_id", "user_id", "api_key_id", "model", "size", "source"]>>, {
|
|
5659
5604
|
nullable: true;
|
|
5660
5605
|
}>;
|
|
5661
5606
|
limit: S.optionalWith<typeof S.Int, {
|
|
@@ -5670,9 +5615,6 @@ export declare class UsageImagesParams extends UsageImagesParams_base {
|
|
|
5670
5615
|
declare const UsageModerationsParamsBucketWidth_base: S.Literal<["1m", "1h", "1d"]>;
|
|
5671
5616
|
export declare class UsageModerationsParamsBucketWidth extends UsageModerationsParamsBucketWidth_base {
|
|
5672
5617
|
}
|
|
5673
|
-
declare const UsageModerationsParamsGroupBy_base: S.Literal<["project_id", "user_id", "api_key_id", "model"]>;
|
|
5674
|
-
export declare class UsageModerationsParamsGroupBy extends UsageModerationsParamsGroupBy_base {
|
|
5675
|
-
}
|
|
5676
5618
|
declare const UsageModerationsParams_base: S.Struct<{
|
|
5677
5619
|
start_time: typeof S.Int;
|
|
5678
5620
|
end_time: S.optionalWith<typeof S.Int, {
|
|
@@ -5694,7 +5636,7 @@ declare const UsageModerationsParams_base: S.Struct<{
|
|
|
5694
5636
|
models: S.optionalWith<S.Array$<typeof S.String>, {
|
|
5695
5637
|
nullable: true;
|
|
5696
5638
|
}>;
|
|
5697
|
-
group_by: S.optionalWith<S.Array$<
|
|
5639
|
+
group_by: S.optionalWith<S.Array$<S.Literal<["project_id", "user_id", "api_key_id", "model"]>>, {
|
|
5698
5640
|
nullable: true;
|
|
5699
5641
|
}>;
|
|
5700
5642
|
limit: S.optionalWith<typeof S.Int, {
|
|
@@ -5709,9 +5651,6 @@ export declare class UsageModerationsParams extends UsageModerationsParams_base
|
|
|
5709
5651
|
declare const UsageVectorStoresParamsBucketWidth_base: S.Literal<["1m", "1h", "1d"]>;
|
|
5710
5652
|
export declare class UsageVectorStoresParamsBucketWidth extends UsageVectorStoresParamsBucketWidth_base {
|
|
5711
5653
|
}
|
|
5712
|
-
declare const UsageVectorStoresParamsGroupBy_base: S.Literal<["project_id"]>;
|
|
5713
|
-
export declare class UsageVectorStoresParamsGroupBy extends UsageVectorStoresParamsGroupBy_base {
|
|
5714
|
-
}
|
|
5715
5654
|
declare const UsageVectorStoresParams_base: S.Struct<{
|
|
5716
5655
|
start_time: typeof S.Int;
|
|
5717
5656
|
end_time: S.optionalWith<typeof S.Int, {
|
|
@@ -5724,7 +5663,7 @@ declare const UsageVectorStoresParams_base: S.Struct<{
|
|
|
5724
5663
|
project_ids: S.optionalWith<S.Array$<typeof S.String>, {
|
|
5725
5664
|
nullable: true;
|
|
5726
5665
|
}>;
|
|
5727
|
-
group_by: S.optionalWith<S.Array$<
|
|
5666
|
+
group_by: S.optionalWith<S.Array$<S.Literal<["project_id"]>>, {
|
|
5728
5667
|
nullable: true;
|
|
5729
5668
|
}>;
|
|
5730
5669
|
limit: S.optionalWith<typeof S.Int, {
|
|
@@ -5845,11 +5784,8 @@ export declare class RealtimeSessionCreateRequestInputAudioFormat extends Realti
|
|
|
5845
5784
|
declare const RealtimeSessionCreateRequestOutputAudioFormat_base: S.Literal<["pcm16", "g711_ulaw", "g711_alaw"]>;
|
|
5846
5785
|
export declare class RealtimeSessionCreateRequestOutputAudioFormat extends RealtimeSessionCreateRequestOutputAudioFormat_base {
|
|
5847
5786
|
}
|
|
5848
|
-
declare const
|
|
5849
|
-
export declare class
|
|
5850
|
-
}
|
|
5851
|
-
declare const RealtimeSessionCreateRequestMaxResponseOutputTokens_base: S.Literal<["inf"]>;
|
|
5852
|
-
export declare class RealtimeSessionCreateRequestMaxResponseOutputTokens extends RealtimeSessionCreateRequestMaxResponseOutputTokens_base {
|
|
5787
|
+
declare const RealtimeSessionCreateRequestMaxResponseOutputTokensEnum_base: S.Literal<["inf"]>;
|
|
5788
|
+
export declare class RealtimeSessionCreateRequestMaxResponseOutputTokensEnum extends RealtimeSessionCreateRequestMaxResponseOutputTokensEnum_base {
|
|
5853
5789
|
}
|
|
5854
5790
|
declare const RealtimeSessionCreateRequest_base: S.Class<RealtimeSessionCreateRequest, {
|
|
5855
5791
|
model: S.optionalWith<typeof RealtimeSessionCreateRequestModel, {
|
|
@@ -5901,7 +5837,7 @@ declare const RealtimeSessionCreateRequest_base: S.Class<RealtimeSessionCreateRe
|
|
|
5901
5837
|
nullable: true;
|
|
5902
5838
|
}>;
|
|
5903
5839
|
tools: S.optionalWith<S.Array$<S.Struct<{
|
|
5904
|
-
type: S.optionalWith<
|
|
5840
|
+
type: S.optionalWith<S.Literal<["function"]>, {
|
|
5905
5841
|
nullable: true;
|
|
5906
5842
|
}>;
|
|
5907
5843
|
name: S.optionalWith<typeof S.String, {
|
|
@@ -5922,7 +5858,7 @@ declare const RealtimeSessionCreateRequest_base: S.Class<RealtimeSessionCreateRe
|
|
|
5922
5858
|
temperature: S.optionalWith<typeof S.Number, {
|
|
5923
5859
|
nullable: true;
|
|
5924
5860
|
}>;
|
|
5925
|
-
max_response_output_tokens: S.optionalWith<S.Union<[typeof S.Int, typeof
|
|
5861
|
+
max_response_output_tokens: S.optionalWith<S.Union<[typeof S.Int, typeof RealtimeSessionCreateRequestMaxResponseOutputTokensEnum]>, {
|
|
5926
5862
|
nullable: true;
|
|
5927
5863
|
}>;
|
|
5928
5864
|
}, S.Struct.Encoded<{
|
|
@@ -5975,7 +5911,7 @@ declare const RealtimeSessionCreateRequest_base: S.Class<RealtimeSessionCreateRe
|
|
|
5975
5911
|
nullable: true;
|
|
5976
5912
|
}>;
|
|
5977
5913
|
tools: S.optionalWith<S.Array$<S.Struct<{
|
|
5978
|
-
type: S.optionalWith<
|
|
5914
|
+
type: S.optionalWith<S.Literal<["function"]>, {
|
|
5979
5915
|
nullable: true;
|
|
5980
5916
|
}>;
|
|
5981
5917
|
name: S.optionalWith<typeof S.String, {
|
|
@@ -5996,7 +5932,7 @@ declare const RealtimeSessionCreateRequest_base: S.Class<RealtimeSessionCreateRe
|
|
|
5996
5932
|
temperature: S.optionalWith<typeof S.Number, {
|
|
5997
5933
|
nullable: true;
|
|
5998
5934
|
}>;
|
|
5999
|
-
max_response_output_tokens: S.optionalWith<S.Union<[typeof S.Int, typeof
|
|
5935
|
+
max_response_output_tokens: S.optionalWith<S.Union<[typeof S.Int, typeof RealtimeSessionCreateRequestMaxResponseOutputTokensEnum]>, {
|
|
6000
5936
|
nullable: true;
|
|
6001
5937
|
}>;
|
|
6002
5938
|
}>, never, {
|
|
@@ -6044,11 +5980,8 @@ export declare class RealtimeSessionCreateRequest extends RealtimeSessionCreateR
|
|
|
6044
5980
|
declare const RealtimeSessionCreateResponseVoice_base: S.Literal<["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse"]>;
|
|
6045
5981
|
export declare class RealtimeSessionCreateResponseVoice extends RealtimeSessionCreateResponseVoice_base {
|
|
6046
5982
|
}
|
|
6047
|
-
declare const
|
|
6048
|
-
export declare class
|
|
6049
|
-
}
|
|
6050
|
-
declare const RealtimeSessionCreateResponseMaxResponseOutputTokens_base: S.Literal<["inf"]>;
|
|
6051
|
-
export declare class RealtimeSessionCreateResponseMaxResponseOutputTokens extends RealtimeSessionCreateResponseMaxResponseOutputTokens_base {
|
|
5983
|
+
declare const RealtimeSessionCreateResponseMaxResponseOutputTokensEnum_base: S.Literal<["inf"]>;
|
|
5984
|
+
export declare class RealtimeSessionCreateResponseMaxResponseOutputTokensEnum extends RealtimeSessionCreateResponseMaxResponseOutputTokensEnum_base {
|
|
6052
5985
|
}
|
|
6053
5986
|
declare const RealtimeSessionCreateResponse_base: S.Class<RealtimeSessionCreateResponse, {
|
|
6054
5987
|
client_secret: S.Struct<{
|
|
@@ -6091,7 +6024,7 @@ declare const RealtimeSessionCreateResponse_base: S.Class<RealtimeSessionCreateR
|
|
|
6091
6024
|
nullable: true;
|
|
6092
6025
|
}>;
|
|
6093
6026
|
tools: S.optionalWith<S.Array$<S.Struct<{
|
|
6094
|
-
type: S.optionalWith<
|
|
6027
|
+
type: S.optionalWith<S.Literal<["function"]>, {
|
|
6095
6028
|
nullable: true;
|
|
6096
6029
|
}>;
|
|
6097
6030
|
name: S.optionalWith<typeof S.String, {
|
|
@@ -6112,7 +6045,7 @@ declare const RealtimeSessionCreateResponse_base: S.Class<RealtimeSessionCreateR
|
|
|
6112
6045
|
temperature: S.optionalWith<typeof S.Number, {
|
|
6113
6046
|
nullable: true;
|
|
6114
6047
|
}>;
|
|
6115
|
-
max_response_output_tokens: S.optionalWith<S.Union<[typeof S.Int, typeof
|
|
6048
|
+
max_response_output_tokens: S.optionalWith<S.Union<[typeof S.Int, typeof RealtimeSessionCreateResponseMaxResponseOutputTokensEnum]>, {
|
|
6116
6049
|
nullable: true;
|
|
6117
6050
|
}>;
|
|
6118
6051
|
}, S.Struct.Encoded<{
|
|
@@ -6156,7 +6089,7 @@ declare const RealtimeSessionCreateResponse_base: S.Class<RealtimeSessionCreateR
|
|
|
6156
6089
|
nullable: true;
|
|
6157
6090
|
}>;
|
|
6158
6091
|
tools: S.optionalWith<S.Array$<S.Struct<{
|
|
6159
|
-
type: S.optionalWith<
|
|
6092
|
+
type: S.optionalWith<S.Literal<["function"]>, {
|
|
6160
6093
|
nullable: true;
|
|
6161
6094
|
}>;
|
|
6162
6095
|
name: S.optionalWith<typeof S.String, {
|
|
@@ -6177,7 +6110,7 @@ declare const RealtimeSessionCreateResponse_base: S.Class<RealtimeSessionCreateR
|
|
|
6177
6110
|
temperature: S.optionalWith<typeof S.Number, {
|
|
6178
6111
|
nullable: true;
|
|
6179
6112
|
}>;
|
|
6180
|
-
max_response_output_tokens: S.optionalWith<S.Union<[typeof S.Int, typeof
|
|
6113
|
+
max_response_output_tokens: S.optionalWith<S.Union<[typeof S.Int, typeof RealtimeSessionCreateResponseMaxResponseOutputTokensEnum]>, {
|
|
6181
6114
|
nullable: true;
|
|
6182
6115
|
}>;
|
|
6183
6116
|
}>, never, {
|
|
@@ -6297,9 +6230,6 @@ declare const CreateMessageRequest_base: S.Struct<{
|
|
|
6297
6230
|
}>;
|
|
6298
6231
|
export declare class CreateMessageRequest extends CreateMessageRequest_base {
|
|
6299
6232
|
}
|
|
6300
|
-
declare const CreateThreadRequestToolResourcesFileSearchVectorStoresChunkingStrategyType_base: S.Literal<["static"]>;
|
|
6301
|
-
export declare class CreateThreadRequestToolResourcesFileSearchVectorStoresChunkingStrategyType extends CreateThreadRequestToolResourcesFileSearchVectorStoresChunkingStrategyType_base {
|
|
6302
|
-
}
|
|
6303
6233
|
declare const CreateThreadRequest_base: S.Class<CreateThreadRequest, {
|
|
6304
6234
|
messages: S.optionalWith<S.Array$<typeof CreateMessageRequest>, {
|
|
6305
6235
|
nullable: true;
|
|
@@ -6530,8 +6460,8 @@ declare const ThreadObject_base: S.Class<ThreadObject, {
|
|
|
6530
6460
|
}, {}, {}>;
|
|
6531
6461
|
export declare class ThreadObject extends ThreadObject_base {
|
|
6532
6462
|
}
|
|
6533
|
-
declare const
|
|
6534
|
-
export declare class
|
|
6463
|
+
declare const CreateThreadAndRunRequestModelEnum_base: S.Literal<["gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "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-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613"]>;
|
|
6464
|
+
export declare class CreateThreadAndRunRequestModelEnum extends CreateThreadAndRunRequestModelEnum_base {
|
|
6535
6465
|
}
|
|
6536
6466
|
declare const TruncationObjectType_base: S.Literal<["auto", "last_messages"]>;
|
|
6537
6467
|
export declare class TruncationObjectType extends TruncationObjectType_base {
|
|
@@ -6544,6 +6474,9 @@ declare const TruncationObject_base: S.Struct<{
|
|
|
6544
6474
|
}>;
|
|
6545
6475
|
export declare class TruncationObject extends TruncationObject_base {
|
|
6546
6476
|
}
|
|
6477
|
+
declare const AssistantsApiToolChoiceOptionEnum_base: S.Literal<["none", "auto", "required"]>;
|
|
6478
|
+
export declare class AssistantsApiToolChoiceOptionEnum extends AssistantsApiToolChoiceOptionEnum_base {
|
|
6479
|
+
}
|
|
6547
6480
|
declare const AssistantsNamedToolChoiceType_base: S.Literal<["function", "code_interpreter", "file_search"]>;
|
|
6548
6481
|
export declare class AssistantsNamedToolChoiceType extends AssistantsNamedToolChoiceType_base {
|
|
6549
6482
|
}
|
|
@@ -6557,7 +6490,7 @@ declare const AssistantsNamedToolChoice_base: S.Struct<{
|
|
|
6557
6490
|
}>;
|
|
6558
6491
|
export declare class AssistantsNamedToolChoice extends AssistantsNamedToolChoice_base {
|
|
6559
6492
|
}
|
|
6560
|
-
declare const AssistantsApiToolChoiceOption_base: S.Union<[
|
|
6493
|
+
declare const AssistantsApiToolChoiceOption_base: S.Union<[typeof AssistantsApiToolChoiceOptionEnum, typeof AssistantsNamedToolChoice]>;
|
|
6561
6494
|
export declare class AssistantsApiToolChoiceOption extends AssistantsApiToolChoiceOption_base {
|
|
6562
6495
|
}
|
|
6563
6496
|
declare const CreateThreadAndRunRequest_base: S.Class<CreateThreadAndRunRequest, {
|
|
@@ -6565,7 +6498,7 @@ declare const CreateThreadAndRunRequest_base: S.Class<CreateThreadAndRunRequest,
|
|
|
6565
6498
|
thread: S.optionalWith<typeof CreateThreadRequest, {
|
|
6566
6499
|
nullable: true;
|
|
6567
6500
|
}>;
|
|
6568
|
-
model: S.optionalWith<S.Union<[typeof S.String, typeof
|
|
6501
|
+
model: S.optionalWith<S.Union<[typeof S.String, typeof CreateThreadAndRunRequestModelEnum]>, {
|
|
6569
6502
|
nullable: true;
|
|
6570
6503
|
}>;
|
|
6571
6504
|
instructions: S.optionalWith<typeof S.String, {
|
|
@@ -6673,7 +6606,7 @@ declare const CreateThreadAndRunRequest_base: S.Class<CreateThreadAndRunRequest,
|
|
|
6673
6606
|
thread: S.optionalWith<typeof CreateThreadRequest, {
|
|
6674
6607
|
nullable: true;
|
|
6675
6608
|
}>;
|
|
6676
|
-
model: S.optionalWith<S.Union<[typeof S.String, typeof
|
|
6609
|
+
model: S.optionalWith<S.Union<[typeof S.String, typeof CreateThreadAndRunRequestModelEnum]>, {
|
|
6677
6610
|
nullable: true;
|
|
6678
6611
|
}>;
|
|
6679
6612
|
instructions: S.optionalWith<typeof S.String, {
|
|
@@ -7556,23 +7489,21 @@ declare const ListRunsResponse_base: S.Class<ListRunsResponse, {
|
|
|
7556
7489
|
}, {}, {}>;
|
|
7557
7490
|
export declare class ListRunsResponse extends ListRunsResponse_base {
|
|
7558
7491
|
}
|
|
7559
|
-
declare const CreateRunParamsInclude_base: S.Literal<["step_details.tool_calls[*].file_search.results[*].content"]>;
|
|
7560
|
-
export declare class CreateRunParamsInclude extends CreateRunParamsInclude_base {
|
|
7561
|
-
}
|
|
7562
7492
|
declare const CreateRunParams_base: S.Struct<{
|
|
7563
|
-
"include[]": S.optionalWith<S.Array$<
|
|
7493
|
+
"include[]": S.optionalWith<S.Array$<S.Literal<["step_details.tool_calls[*].file_search.results[*].content"]>>, {
|
|
7564
7494
|
nullable: true;
|
|
7565
7495
|
}>;
|
|
7566
7496
|
}>;
|
|
7567
7497
|
export declare class CreateRunParams extends CreateRunParams_base {
|
|
7568
7498
|
}
|
|
7569
|
-
declare const CreateRunRequestModel_base: S.Literal<["gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "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-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613"]>;
|
|
7570
|
-
export declare class CreateRunRequestModel extends CreateRunRequestModel_base {
|
|
7571
|
-
}
|
|
7572
7499
|
declare const CreateRunRequest_base: S.Class<CreateRunRequest, {
|
|
7573
7500
|
assistant_id: typeof S.String;
|
|
7574
|
-
model: S.optionalWith<S.Union<[typeof S.String, typeof
|
|
7501
|
+
model: S.optionalWith<S.Union<[typeof S.String, typeof AssistantSupportedModels]>, {
|
|
7502
|
+
nullable: true;
|
|
7503
|
+
}>;
|
|
7504
|
+
reasoning_effort: S.optionalWith<typeof ReasoningEffort, {
|
|
7575
7505
|
nullable: true;
|
|
7506
|
+
default: () => "medium";
|
|
7576
7507
|
}>;
|
|
7577
7508
|
instructions: S.optionalWith<typeof S.String, {
|
|
7578
7509
|
nullable: true;
|
|
@@ -7663,8 +7594,12 @@ declare const CreateRunRequest_base: S.Class<CreateRunRequest, {
|
|
|
7663
7594
|
}>;
|
|
7664
7595
|
}, S.Struct.Encoded<{
|
|
7665
7596
|
assistant_id: typeof S.String;
|
|
7666
|
-
model: S.optionalWith<S.Union<[typeof S.String, typeof
|
|
7597
|
+
model: S.optionalWith<S.Union<[typeof S.String, typeof AssistantSupportedModels]>, {
|
|
7598
|
+
nullable: true;
|
|
7599
|
+
}>;
|
|
7600
|
+
reasoning_effort: S.optionalWith<typeof ReasoningEffort, {
|
|
7667
7601
|
nullable: true;
|
|
7602
|
+
default: () => "medium";
|
|
7668
7603
|
}>;
|
|
7669
7604
|
instructions: S.optionalWith<typeof S.String, {
|
|
7670
7605
|
nullable: true;
|
|
@@ -7804,6 +7739,8 @@ declare const CreateRunRequest_base: S.Class<CreateRunRequest, {
|
|
|
7804
7739
|
} | undefined;
|
|
7805
7740
|
};
|
|
7806
7741
|
} | undefined;
|
|
7742
|
+
} & {
|
|
7743
|
+
readonly reasoning_effort?: "low" | "medium" | "high" | undefined;
|
|
7807
7744
|
} & {
|
|
7808
7745
|
readonly max_completion_tokens?: number | undefined;
|
|
7809
7746
|
} & {
|
|
@@ -7895,9 +7832,6 @@ export declare class ModifyRunRequest extends ModifyRunRequest_base {
|
|
|
7895
7832
|
declare const ListRunStepsParamsOrder_base: S.Literal<["asc", "desc"]>;
|
|
7896
7833
|
export declare class ListRunStepsParamsOrder extends ListRunStepsParamsOrder_base {
|
|
7897
7834
|
}
|
|
7898
|
-
declare const ListRunStepsParamsInclude_base: S.Literal<["step_details.tool_calls[*].file_search.results[*].content"]>;
|
|
7899
|
-
export declare class ListRunStepsParamsInclude extends ListRunStepsParamsInclude_base {
|
|
7900
|
-
}
|
|
7901
7835
|
declare const ListRunStepsParams_base: S.Struct<{
|
|
7902
7836
|
limit: S.optionalWith<typeof S.Int, {
|
|
7903
7837
|
nullable: true;
|
|
@@ -7913,7 +7847,7 @@ declare const ListRunStepsParams_base: S.Struct<{
|
|
|
7913
7847
|
before: S.optionalWith<typeof S.String, {
|
|
7914
7848
|
nullable: true;
|
|
7915
7849
|
}>;
|
|
7916
|
-
"include[]": S.optionalWith<S.Array$<
|
|
7850
|
+
"include[]": S.optionalWith<S.Array$<S.Literal<["step_details.tool_calls[*].file_search.results[*].content"]>>, {
|
|
7917
7851
|
nullable: true;
|
|
7918
7852
|
}>;
|
|
7919
7853
|
}>;
|
|
@@ -7987,15 +7921,12 @@ declare const RunStepDetailsToolCallsFileSearchRankingOptionsObject_base: S.Stru
|
|
|
7987
7921
|
}>;
|
|
7988
7922
|
export declare class RunStepDetailsToolCallsFileSearchRankingOptionsObject extends RunStepDetailsToolCallsFileSearchRankingOptionsObject_base {
|
|
7989
7923
|
}
|
|
7990
|
-
declare const RunStepDetailsToolCallsFileSearchResultObjectContentType_base: S.Literal<["text"]>;
|
|
7991
|
-
export declare class RunStepDetailsToolCallsFileSearchResultObjectContentType extends RunStepDetailsToolCallsFileSearchResultObjectContentType_base {
|
|
7992
|
-
}
|
|
7993
7924
|
declare const RunStepDetailsToolCallsFileSearchResultObject_base: S.Struct<{
|
|
7994
7925
|
file_id: typeof S.String;
|
|
7995
7926
|
file_name: typeof S.String;
|
|
7996
7927
|
score: S.filter<S.Schema<number, number, never>>;
|
|
7997
7928
|
content: S.optionalWith<S.Array$<S.Struct<{
|
|
7998
|
-
type: S.optionalWith<
|
|
7929
|
+
type: S.optionalWith<S.Literal<["text"]>, {
|
|
7999
7930
|
nullable: true;
|
|
8000
7931
|
}>;
|
|
8001
7932
|
text: S.optionalWith<typeof S.String, {
|
|
@@ -8127,11 +8058,8 @@ declare const ListRunStepsResponse_base: S.Class<ListRunStepsResponse, {
|
|
|
8127
8058
|
}, {}, {}>;
|
|
8128
8059
|
export declare class ListRunStepsResponse extends ListRunStepsResponse_base {
|
|
8129
8060
|
}
|
|
8130
|
-
declare const GetRunStepParamsInclude_base: S.Literal<["step_details.tool_calls[*].file_search.results[*].content"]>;
|
|
8131
|
-
export declare class GetRunStepParamsInclude extends GetRunStepParamsInclude_base {
|
|
8132
|
-
}
|
|
8133
8061
|
declare const GetRunStepParams_base: S.Struct<{
|
|
8134
|
-
"include[]": S.optionalWith<S.Array$<
|
|
8062
|
+
"include[]": S.optionalWith<S.Array$<S.Literal<["step_details.tool_calls[*].file_search.results[*].content"]>>, {
|
|
8135
8063
|
nullable: true;
|
|
8136
8064
|
}>;
|
|
8137
8065
|
}>;
|