@effect/ai-openai 0.13.2 → 0.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/OpenAiClient.js +3 -2
- package/dist/cjs/OpenAiClient.js.map +1 -1
- package/dist/cjs/OpenAiCompletions.js +62 -7
- package/dist/cjs/OpenAiCompletions.js.map +1 -1
- package/dist/cjs/OpenAiConfig.js.map +1 -1
- package/dist/cjs/OpenAiEmbeddings.js +94 -18
- package/dist/cjs/OpenAiEmbeddings.js.map +1 -1
- package/dist/cjs/OpenAiTokenizer.js +9 -5
- package/dist/cjs/OpenAiTokenizer.js.map +1 -1
- package/dist/dts/Generated.d.ts +203 -603
- package/dist/dts/Generated.d.ts.map +1 -1
- package/dist/dts/OpenAiClient.d.ts +3 -2
- package/dist/dts/OpenAiClient.d.ts.map +1 -1
- package/dist/dts/OpenAiCompletions.d.ts +51 -1
- package/dist/dts/OpenAiCompletions.d.ts.map +1 -1
- package/dist/dts/OpenAiConfig.d.ts +2 -4
- package/dist/dts/OpenAiConfig.d.ts.map +1 -1
- package/dist/dts/OpenAiEmbeddings.d.ts +63 -8
- package/dist/dts/OpenAiEmbeddings.d.ts.map +1 -1
- package/dist/dts/OpenAiTokenizer.d.ts +7 -0
- package/dist/dts/OpenAiTokenizer.d.ts.map +1 -1
- package/dist/esm/OpenAiClient.js +3 -2
- package/dist/esm/OpenAiClient.js.map +1 -1
- package/dist/esm/OpenAiCompletions.js +59 -6
- package/dist/esm/OpenAiCompletions.js.map +1 -1
- package/dist/esm/OpenAiConfig.js.map +1 -1
- package/dist/esm/OpenAiEmbeddings.js +91 -16
- package/dist/esm/OpenAiEmbeddings.js.map +1 -1
- package/dist/esm/OpenAiTokenizer.js +8 -5
- package/dist/esm/OpenAiTokenizer.js.map +1 -1
- package/package.json +5 -5
- package/src/OpenAiClient.ts +9 -3
- package/src/OpenAiCompletions.ts +206 -93
- package/src/OpenAiConfig.ts +2 -13
- package/src/OpenAiEmbeddings.ts +165 -38
- package/src/OpenAiTokenizer.ts +8 -5
package/dist/dts/Generated.d.ts
CHANGED
|
@@ -48,14 +48,14 @@ declare const FileSearchRankingOptions_base: S.Struct<{
|
|
|
48
48
|
ranker: S.optionalWith<typeof FileSearchRankingOptionsRanker, {
|
|
49
49
|
nullable: true;
|
|
50
50
|
}>;
|
|
51
|
-
score_threshold: S.filter<S.
|
|
51
|
+
score_threshold: S.filter<S.filter<typeof S.Number>>;
|
|
52
52
|
}>;
|
|
53
53
|
export declare class FileSearchRankingOptions extends FileSearchRankingOptions_base {
|
|
54
54
|
}
|
|
55
55
|
declare const AssistantToolsFileSearch_base: S.Struct<{
|
|
56
56
|
type: typeof AssistantToolsFileSearchType;
|
|
57
57
|
file_search: S.optionalWith<S.Struct<{
|
|
58
|
-
max_num_results: S.optionalWith<S.filter<S.
|
|
58
|
+
max_num_results: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
59
59
|
nullable: true;
|
|
60
60
|
}>;
|
|
61
61
|
ranking_options: S.optionalWith<typeof FileSearchRankingOptions, {
|
|
@@ -147,10 +147,10 @@ declare const AssistantObject_base: S.Struct<{
|
|
|
147
147
|
id: typeof S.String;
|
|
148
148
|
object: typeof AssistantObjectObject;
|
|
149
149
|
created_at: typeof S.Int;
|
|
150
|
-
name: S.NullOr<S.filter<S.
|
|
151
|
-
description: S.NullOr<S.filter<S.
|
|
150
|
+
name: S.NullOr<S.filter<typeof S.String>>;
|
|
151
|
+
description: S.NullOr<S.filter<typeof S.String>>;
|
|
152
152
|
model: typeof S.String;
|
|
153
|
-
instructions: S.NullOr<S.filter<S.
|
|
153
|
+
instructions: S.NullOr<S.filter<typeof S.String>>;
|
|
154
154
|
tools: S.PropertySignature<":", readonly ({
|
|
155
155
|
readonly type: "code_interpreter";
|
|
156
156
|
} | {
|
|
@@ -196,7 +196,7 @@ declare const AssistantObject_base: S.Struct<{
|
|
|
196
196
|
})[], true, never>;
|
|
197
197
|
tool_resources: S.optionalWith<S.Struct<{
|
|
198
198
|
code_interpreter: S.optionalWith<S.Struct<{
|
|
199
|
-
file_ids: S.optionalWith<S.filter<S.
|
|
199
|
+
file_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
200
200
|
nullable: true;
|
|
201
201
|
default: () => readonly [];
|
|
202
202
|
}>;
|
|
@@ -204,7 +204,7 @@ declare const AssistantObject_base: S.Struct<{
|
|
|
204
204
|
nullable: true;
|
|
205
205
|
}>;
|
|
206
206
|
file_search: S.optionalWith<S.Struct<{
|
|
207
|
-
vector_store_ids: S.optionalWith<S.filter<S.
|
|
207
|
+
vector_store_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
208
208
|
nullable: true;
|
|
209
209
|
}>;
|
|
210
210
|
}>, {
|
|
@@ -214,11 +214,11 @@ declare const AssistantObject_base: S.Struct<{
|
|
|
214
214
|
nullable: true;
|
|
215
215
|
}>;
|
|
216
216
|
metadata: S.NullOr<typeof Metadata>;
|
|
217
|
-
temperature: S.optionalWith<S.filter<S.
|
|
217
|
+
temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
218
218
|
nullable: true;
|
|
219
219
|
default: () => 1;
|
|
220
220
|
}>;
|
|
221
|
-
top_p: S.optionalWith<S.filter<S.
|
|
221
|
+
top_p: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
222
222
|
nullable: true;
|
|
223
223
|
default: () => 1;
|
|
224
224
|
}>;
|
|
@@ -319,68 +319,26 @@ export declare class ReasoningEffort extends ReasoningEffort_base {
|
|
|
319
319
|
}
|
|
320
320
|
declare const CreateAssistantRequest_base: S.Class<CreateAssistantRequest, {
|
|
321
321
|
model: S.Union<[typeof S.String, typeof AssistantSupportedModels]>;
|
|
322
|
-
name: S.optionalWith<S.filter<S.
|
|
322
|
+
name: S.optionalWith<S.filter<typeof S.String>, {
|
|
323
323
|
nullable: true;
|
|
324
324
|
}>;
|
|
325
|
-
description: S.optionalWith<S.filter<S.
|
|
325
|
+
description: S.optionalWith<S.filter<typeof S.String>, {
|
|
326
326
|
nullable: true;
|
|
327
327
|
}>;
|
|
328
|
-
instructions: S.optionalWith<S.filter<S.
|
|
328
|
+
instructions: S.optionalWith<S.filter<typeof S.String>, {
|
|
329
329
|
nullable: true;
|
|
330
330
|
}>;
|
|
331
331
|
reasoning_effort: S.optionalWith<typeof ReasoningEffort, {
|
|
332
332
|
nullable: true;
|
|
333
333
|
default: () => "medium";
|
|
334
334
|
}>;
|
|
335
|
-
tools: S.optionalWith<S.filter<S.
|
|
336
|
-
readonly type: "code_interpreter";
|
|
337
|
-
} | {
|
|
338
|
-
readonly type: "file_search";
|
|
339
|
-
readonly file_search?: {
|
|
340
|
-
readonly max_num_results?: number | undefined;
|
|
341
|
-
readonly ranking_options?: {
|
|
342
|
-
readonly ranker?: "auto" | "default_2024_08_21" | undefined;
|
|
343
|
-
readonly score_threshold: number;
|
|
344
|
-
} | undefined;
|
|
345
|
-
} | undefined;
|
|
346
|
-
} | {
|
|
347
|
-
readonly function: {
|
|
348
|
-
readonly description?: string | undefined;
|
|
349
|
-
readonly name: string;
|
|
350
|
-
readonly parameters?: {
|
|
351
|
-
readonly [x: string]: unknown;
|
|
352
|
-
} | undefined;
|
|
353
|
-
readonly strict: boolean;
|
|
354
|
-
};
|
|
355
|
-
readonly type: "function";
|
|
356
|
-
})[], readonly ({
|
|
357
|
-
readonly type: "code_interpreter";
|
|
358
|
-
} | {
|
|
359
|
-
readonly type: "file_search";
|
|
360
|
-
readonly file_search?: {
|
|
361
|
-
readonly max_num_results?: number | null | undefined;
|
|
362
|
-
readonly ranking_options?: {
|
|
363
|
-
readonly score_threshold: number;
|
|
364
|
-
readonly ranker?: "auto" | "default_2024_08_21" | null | undefined;
|
|
365
|
-
} | null | undefined;
|
|
366
|
-
} | null | undefined;
|
|
367
|
-
} | {
|
|
368
|
-
readonly function: {
|
|
369
|
-
readonly name: string;
|
|
370
|
-
readonly description?: string | null | undefined;
|
|
371
|
-
readonly parameters?: {
|
|
372
|
-
readonly [x: string]: unknown;
|
|
373
|
-
} | null | undefined;
|
|
374
|
-
readonly strict?: boolean | null | undefined;
|
|
375
|
-
};
|
|
376
|
-
readonly type: "function";
|
|
377
|
-
})[], never>>, {
|
|
335
|
+
tools: S.optionalWith<S.filter<S.Array$<S.Union<[typeof AssistantToolsCode, typeof AssistantToolsFileSearch, typeof AssistantToolsFunction]>>>, {
|
|
378
336
|
nullable: true;
|
|
379
337
|
default: () => readonly [];
|
|
380
338
|
}>;
|
|
381
339
|
tool_resources: S.optionalWith<S.Struct<{
|
|
382
340
|
code_interpreter: S.optionalWith<S.Struct<{
|
|
383
|
-
file_ids: S.optionalWith<S.filter<S.
|
|
341
|
+
file_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
384
342
|
nullable: true;
|
|
385
343
|
default: () => readonly [];
|
|
386
344
|
}>;
|
|
@@ -388,26 +346,20 @@ declare const CreateAssistantRequest_base: S.Class<CreateAssistantRequest, {
|
|
|
388
346
|
nullable: true;
|
|
389
347
|
}>;
|
|
390
348
|
file_search: S.optionalWith<S.Struct<{
|
|
391
|
-
vector_store_ids: S.optionalWith<S.filter<S.
|
|
349
|
+
vector_store_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
392
350
|
nullable: true;
|
|
393
351
|
}>;
|
|
394
|
-
vector_stores: S.optionalWith<S.filter<S.
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
} | null | undefined;
|
|
406
|
-
readonly file_ids?: readonly string[] | null | undefined;
|
|
407
|
-
readonly chunking_strategy?: {
|
|
408
|
-
readonly [x: string]: unknown;
|
|
409
|
-
} | null | undefined;
|
|
410
|
-
}[], never>>, {
|
|
352
|
+
vector_stores: S.optionalWith<S.filter<S.Array$<S.Struct<{
|
|
353
|
+
file_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
354
|
+
nullable: true;
|
|
355
|
+
}>;
|
|
356
|
+
chunking_strategy: S.optionalWith<S.Record$<typeof S.String, typeof S.Unknown>, {
|
|
357
|
+
nullable: true;
|
|
358
|
+
}>;
|
|
359
|
+
metadata: S.optionalWith<typeof Metadata, {
|
|
360
|
+
nullable: true;
|
|
361
|
+
}>;
|
|
362
|
+
}>>>, {
|
|
411
363
|
nullable: true;
|
|
412
364
|
}>;
|
|
413
365
|
}>, {
|
|
@@ -419,11 +371,11 @@ declare const CreateAssistantRequest_base: S.Class<CreateAssistantRequest, {
|
|
|
419
371
|
metadata: S.optionalWith<typeof Metadata, {
|
|
420
372
|
nullable: true;
|
|
421
373
|
}>;
|
|
422
|
-
temperature: S.optionalWith<S.filter<S.
|
|
374
|
+
temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
423
375
|
nullable: true;
|
|
424
376
|
default: () => 1;
|
|
425
377
|
}>;
|
|
426
|
-
top_p: S.optionalWith<S.filter<S.
|
|
378
|
+
top_p: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
427
379
|
nullable: true;
|
|
428
380
|
default: () => 1;
|
|
429
381
|
}>;
|
|
@@ -432,68 +384,26 @@ declare const CreateAssistantRequest_base: S.Class<CreateAssistantRequest, {
|
|
|
432
384
|
}>;
|
|
433
385
|
}, S.Struct.Encoded<{
|
|
434
386
|
model: S.Union<[typeof S.String, typeof AssistantSupportedModels]>;
|
|
435
|
-
name: S.optionalWith<S.filter<S.
|
|
387
|
+
name: S.optionalWith<S.filter<typeof S.String>, {
|
|
436
388
|
nullable: true;
|
|
437
389
|
}>;
|
|
438
|
-
description: S.optionalWith<S.filter<S.
|
|
390
|
+
description: S.optionalWith<S.filter<typeof S.String>, {
|
|
439
391
|
nullable: true;
|
|
440
392
|
}>;
|
|
441
|
-
instructions: S.optionalWith<S.filter<S.
|
|
393
|
+
instructions: S.optionalWith<S.filter<typeof S.String>, {
|
|
442
394
|
nullable: true;
|
|
443
395
|
}>;
|
|
444
396
|
reasoning_effort: S.optionalWith<typeof ReasoningEffort, {
|
|
445
397
|
nullable: true;
|
|
446
398
|
default: () => "medium";
|
|
447
399
|
}>;
|
|
448
|
-
tools: S.optionalWith<S.filter<S.
|
|
449
|
-
readonly type: "code_interpreter";
|
|
450
|
-
} | {
|
|
451
|
-
readonly type: "file_search";
|
|
452
|
-
readonly file_search?: {
|
|
453
|
-
readonly max_num_results?: number | undefined;
|
|
454
|
-
readonly ranking_options?: {
|
|
455
|
-
readonly ranker?: "auto" | "default_2024_08_21" | undefined;
|
|
456
|
-
readonly score_threshold: number;
|
|
457
|
-
} | undefined;
|
|
458
|
-
} | undefined;
|
|
459
|
-
} | {
|
|
460
|
-
readonly function: {
|
|
461
|
-
readonly description?: string | undefined;
|
|
462
|
-
readonly name: string;
|
|
463
|
-
readonly parameters?: {
|
|
464
|
-
readonly [x: string]: unknown;
|
|
465
|
-
} | undefined;
|
|
466
|
-
readonly strict: boolean;
|
|
467
|
-
};
|
|
468
|
-
readonly type: "function";
|
|
469
|
-
})[], readonly ({
|
|
470
|
-
readonly type: "code_interpreter";
|
|
471
|
-
} | {
|
|
472
|
-
readonly type: "file_search";
|
|
473
|
-
readonly file_search?: {
|
|
474
|
-
readonly max_num_results?: number | null | undefined;
|
|
475
|
-
readonly ranking_options?: {
|
|
476
|
-
readonly score_threshold: number;
|
|
477
|
-
readonly ranker?: "auto" | "default_2024_08_21" | null | undefined;
|
|
478
|
-
} | null | undefined;
|
|
479
|
-
} | null | undefined;
|
|
480
|
-
} | {
|
|
481
|
-
readonly function: {
|
|
482
|
-
readonly name: string;
|
|
483
|
-
readonly description?: string | null | undefined;
|
|
484
|
-
readonly parameters?: {
|
|
485
|
-
readonly [x: string]: unknown;
|
|
486
|
-
} | null | undefined;
|
|
487
|
-
readonly strict?: boolean | null | undefined;
|
|
488
|
-
};
|
|
489
|
-
readonly type: "function";
|
|
490
|
-
})[], never>>, {
|
|
400
|
+
tools: S.optionalWith<S.filter<S.Array$<S.Union<[typeof AssistantToolsCode, typeof AssistantToolsFileSearch, typeof AssistantToolsFunction]>>>, {
|
|
491
401
|
nullable: true;
|
|
492
402
|
default: () => readonly [];
|
|
493
403
|
}>;
|
|
494
404
|
tool_resources: S.optionalWith<S.Struct<{
|
|
495
405
|
code_interpreter: S.optionalWith<S.Struct<{
|
|
496
|
-
file_ids: S.optionalWith<S.filter<S.
|
|
406
|
+
file_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
497
407
|
nullable: true;
|
|
498
408
|
default: () => readonly [];
|
|
499
409
|
}>;
|
|
@@ -501,26 +411,20 @@ declare const CreateAssistantRequest_base: S.Class<CreateAssistantRequest, {
|
|
|
501
411
|
nullable: true;
|
|
502
412
|
}>;
|
|
503
413
|
file_search: S.optionalWith<S.Struct<{
|
|
504
|
-
vector_store_ids: S.optionalWith<S.filter<S.
|
|
414
|
+
vector_store_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
505
415
|
nullable: true;
|
|
506
416
|
}>;
|
|
507
|
-
vector_stores: S.optionalWith<S.filter<S.
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
} | null | undefined;
|
|
519
|
-
readonly file_ids?: readonly string[] | null | undefined;
|
|
520
|
-
readonly chunking_strategy?: {
|
|
521
|
-
readonly [x: string]: unknown;
|
|
522
|
-
} | null | undefined;
|
|
523
|
-
}[], never>>, {
|
|
417
|
+
vector_stores: S.optionalWith<S.filter<S.Array$<S.Struct<{
|
|
418
|
+
file_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
419
|
+
nullable: true;
|
|
420
|
+
}>;
|
|
421
|
+
chunking_strategy: S.optionalWith<S.Record$<typeof S.String, typeof S.Unknown>, {
|
|
422
|
+
nullable: true;
|
|
423
|
+
}>;
|
|
424
|
+
metadata: S.optionalWith<typeof Metadata, {
|
|
425
|
+
nullable: true;
|
|
426
|
+
}>;
|
|
427
|
+
}>>>, {
|
|
524
428
|
nullable: true;
|
|
525
429
|
}>;
|
|
526
430
|
}>, {
|
|
@@ -532,11 +436,11 @@ declare const CreateAssistantRequest_base: S.Class<CreateAssistantRequest, {
|
|
|
532
436
|
metadata: S.optionalWith<typeof Metadata, {
|
|
533
437
|
nullable: true;
|
|
534
438
|
}>;
|
|
535
|
-
temperature: S.optionalWith<S.filter<S.
|
|
439
|
+
temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
536
440
|
nullable: true;
|
|
537
441
|
default: () => 1;
|
|
538
442
|
}>;
|
|
539
|
-
top_p: S.optionalWith<S.filter<S.
|
|
443
|
+
top_p: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
540
444
|
nullable: true;
|
|
541
445
|
default: () => 1;
|
|
542
446
|
}>;
|
|
@@ -629,64 +533,22 @@ declare const ModifyAssistantRequest_base: S.Class<ModifyAssistantRequest, {
|
|
|
629
533
|
nullable: true;
|
|
630
534
|
default: () => "medium";
|
|
631
535
|
}>;
|
|
632
|
-
name: S.optionalWith<S.filter<S.
|
|
536
|
+
name: S.optionalWith<S.filter<typeof S.String>, {
|
|
633
537
|
nullable: true;
|
|
634
538
|
}>;
|
|
635
|
-
description: S.optionalWith<S.filter<S.
|
|
539
|
+
description: S.optionalWith<S.filter<typeof S.String>, {
|
|
636
540
|
nullable: true;
|
|
637
541
|
}>;
|
|
638
|
-
instructions: S.optionalWith<S.filter<S.
|
|
542
|
+
instructions: S.optionalWith<S.filter<typeof S.String>, {
|
|
639
543
|
nullable: true;
|
|
640
544
|
}>;
|
|
641
|
-
tools: S.optionalWith<S.filter<S.
|
|
642
|
-
readonly type: "code_interpreter";
|
|
643
|
-
} | {
|
|
644
|
-
readonly type: "file_search";
|
|
645
|
-
readonly file_search?: {
|
|
646
|
-
readonly max_num_results?: number | undefined;
|
|
647
|
-
readonly ranking_options?: {
|
|
648
|
-
readonly ranker?: "auto" | "default_2024_08_21" | undefined;
|
|
649
|
-
readonly score_threshold: number;
|
|
650
|
-
} | undefined;
|
|
651
|
-
} | undefined;
|
|
652
|
-
} | {
|
|
653
|
-
readonly function: {
|
|
654
|
-
readonly description?: string | undefined;
|
|
655
|
-
readonly name: string;
|
|
656
|
-
readonly parameters?: {
|
|
657
|
-
readonly [x: string]: unknown;
|
|
658
|
-
} | undefined;
|
|
659
|
-
readonly strict: boolean;
|
|
660
|
-
};
|
|
661
|
-
readonly type: "function";
|
|
662
|
-
})[], readonly ({
|
|
663
|
-
readonly type: "code_interpreter";
|
|
664
|
-
} | {
|
|
665
|
-
readonly type: "file_search";
|
|
666
|
-
readonly file_search?: {
|
|
667
|
-
readonly max_num_results?: number | null | undefined;
|
|
668
|
-
readonly ranking_options?: {
|
|
669
|
-
readonly score_threshold: number;
|
|
670
|
-
readonly ranker?: "auto" | "default_2024_08_21" | null | undefined;
|
|
671
|
-
} | null | undefined;
|
|
672
|
-
} | null | undefined;
|
|
673
|
-
} | {
|
|
674
|
-
readonly function: {
|
|
675
|
-
readonly name: string;
|
|
676
|
-
readonly description?: string | null | undefined;
|
|
677
|
-
readonly parameters?: {
|
|
678
|
-
readonly [x: string]: unknown;
|
|
679
|
-
} | null | undefined;
|
|
680
|
-
readonly strict?: boolean | null | undefined;
|
|
681
|
-
};
|
|
682
|
-
readonly type: "function";
|
|
683
|
-
})[], never>>, {
|
|
545
|
+
tools: S.optionalWith<S.filter<S.Array$<S.Union<[typeof AssistantToolsCode, typeof AssistantToolsFileSearch, typeof AssistantToolsFunction]>>>, {
|
|
684
546
|
nullable: true;
|
|
685
547
|
default: () => readonly [];
|
|
686
548
|
}>;
|
|
687
549
|
tool_resources: S.optionalWith<S.Struct<{
|
|
688
550
|
code_interpreter: S.optionalWith<S.Struct<{
|
|
689
|
-
file_ids: S.optionalWith<S.filter<S.
|
|
551
|
+
file_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
690
552
|
nullable: true;
|
|
691
553
|
default: () => readonly [];
|
|
692
554
|
}>;
|
|
@@ -694,7 +556,7 @@ declare const ModifyAssistantRequest_base: S.Class<ModifyAssistantRequest, {
|
|
|
694
556
|
nullable: true;
|
|
695
557
|
}>;
|
|
696
558
|
file_search: S.optionalWith<S.Struct<{
|
|
697
|
-
vector_store_ids: S.optionalWith<S.filter<S.
|
|
559
|
+
vector_store_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
698
560
|
nullable: true;
|
|
699
561
|
}>;
|
|
700
562
|
}>, {
|
|
@@ -706,11 +568,11 @@ declare const ModifyAssistantRequest_base: S.Class<ModifyAssistantRequest, {
|
|
|
706
568
|
metadata: S.optionalWith<typeof Metadata, {
|
|
707
569
|
nullable: true;
|
|
708
570
|
}>;
|
|
709
|
-
temperature: S.optionalWith<S.filter<S.
|
|
571
|
+
temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
710
572
|
nullable: true;
|
|
711
573
|
default: () => 1;
|
|
712
574
|
}>;
|
|
713
|
-
top_p: S.optionalWith<S.filter<S.
|
|
575
|
+
top_p: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
714
576
|
nullable: true;
|
|
715
577
|
default: () => 1;
|
|
716
578
|
}>;
|
|
@@ -725,64 +587,22 @@ declare const ModifyAssistantRequest_base: S.Class<ModifyAssistantRequest, {
|
|
|
725
587
|
nullable: true;
|
|
726
588
|
default: () => "medium";
|
|
727
589
|
}>;
|
|
728
|
-
name: S.optionalWith<S.filter<S.
|
|
590
|
+
name: S.optionalWith<S.filter<typeof S.String>, {
|
|
729
591
|
nullable: true;
|
|
730
592
|
}>;
|
|
731
|
-
description: S.optionalWith<S.filter<S.
|
|
593
|
+
description: S.optionalWith<S.filter<typeof S.String>, {
|
|
732
594
|
nullable: true;
|
|
733
595
|
}>;
|
|
734
|
-
instructions: S.optionalWith<S.filter<S.
|
|
596
|
+
instructions: S.optionalWith<S.filter<typeof S.String>, {
|
|
735
597
|
nullable: true;
|
|
736
598
|
}>;
|
|
737
|
-
tools: S.optionalWith<S.filter<S.
|
|
738
|
-
readonly type: "code_interpreter";
|
|
739
|
-
} | {
|
|
740
|
-
readonly type: "file_search";
|
|
741
|
-
readonly file_search?: {
|
|
742
|
-
readonly max_num_results?: number | undefined;
|
|
743
|
-
readonly ranking_options?: {
|
|
744
|
-
readonly ranker?: "auto" | "default_2024_08_21" | undefined;
|
|
745
|
-
readonly score_threshold: number;
|
|
746
|
-
} | undefined;
|
|
747
|
-
} | undefined;
|
|
748
|
-
} | {
|
|
749
|
-
readonly function: {
|
|
750
|
-
readonly description?: string | undefined;
|
|
751
|
-
readonly name: string;
|
|
752
|
-
readonly parameters?: {
|
|
753
|
-
readonly [x: string]: unknown;
|
|
754
|
-
} | undefined;
|
|
755
|
-
readonly strict: boolean;
|
|
756
|
-
};
|
|
757
|
-
readonly type: "function";
|
|
758
|
-
})[], readonly ({
|
|
759
|
-
readonly type: "code_interpreter";
|
|
760
|
-
} | {
|
|
761
|
-
readonly type: "file_search";
|
|
762
|
-
readonly file_search?: {
|
|
763
|
-
readonly max_num_results?: number | null | undefined;
|
|
764
|
-
readonly ranking_options?: {
|
|
765
|
-
readonly score_threshold: number;
|
|
766
|
-
readonly ranker?: "auto" | "default_2024_08_21" | null | undefined;
|
|
767
|
-
} | null | undefined;
|
|
768
|
-
} | null | undefined;
|
|
769
|
-
} | {
|
|
770
|
-
readonly function: {
|
|
771
|
-
readonly name: string;
|
|
772
|
-
readonly description?: string | null | undefined;
|
|
773
|
-
readonly parameters?: {
|
|
774
|
-
readonly [x: string]: unknown;
|
|
775
|
-
} | null | undefined;
|
|
776
|
-
readonly strict?: boolean | null | undefined;
|
|
777
|
-
};
|
|
778
|
-
readonly type: "function";
|
|
779
|
-
})[], never>>, {
|
|
599
|
+
tools: S.optionalWith<S.filter<S.Array$<S.Union<[typeof AssistantToolsCode, typeof AssistantToolsFileSearch, typeof AssistantToolsFunction]>>>, {
|
|
780
600
|
nullable: true;
|
|
781
601
|
default: () => readonly [];
|
|
782
602
|
}>;
|
|
783
603
|
tool_resources: S.optionalWith<S.Struct<{
|
|
784
604
|
code_interpreter: S.optionalWith<S.Struct<{
|
|
785
|
-
file_ids: S.optionalWith<S.filter<S.
|
|
605
|
+
file_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
786
606
|
nullable: true;
|
|
787
607
|
default: () => readonly [];
|
|
788
608
|
}>;
|
|
@@ -790,7 +610,7 @@ declare const ModifyAssistantRequest_base: S.Class<ModifyAssistantRequest, {
|
|
|
790
610
|
nullable: true;
|
|
791
611
|
}>;
|
|
792
612
|
file_search: S.optionalWith<S.Struct<{
|
|
793
|
-
vector_store_ids: S.optionalWith<S.filter<S.
|
|
613
|
+
vector_store_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
794
614
|
nullable: true;
|
|
795
615
|
}>;
|
|
796
616
|
}>, {
|
|
@@ -802,11 +622,11 @@ declare const ModifyAssistantRequest_base: S.Class<ModifyAssistantRequest, {
|
|
|
802
622
|
metadata: S.optionalWith<typeof Metadata, {
|
|
803
623
|
nullable: true;
|
|
804
624
|
}>;
|
|
805
|
-
temperature: S.optionalWith<S.filter<S.
|
|
625
|
+
temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
806
626
|
nullable: true;
|
|
807
627
|
default: () => 1;
|
|
808
628
|
}>;
|
|
809
|
-
top_p: S.optionalWith<S.filter<S.
|
|
629
|
+
top_p: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
810
630
|
nullable: true;
|
|
811
631
|
default: () => 1;
|
|
812
632
|
}>;
|
|
@@ -913,25 +733,25 @@ export declare class CreateSpeechRequestResponseFormat extends CreateSpeechReque
|
|
|
913
733
|
}
|
|
914
734
|
declare const CreateSpeechRequest_base: S.Class<CreateSpeechRequest, {
|
|
915
735
|
model: S.Union<[typeof S.String, typeof CreateSpeechRequestModelEnum]>;
|
|
916
|
-
input: S.filter<S.
|
|
736
|
+
input: S.filter<typeof S.String>;
|
|
917
737
|
voice: typeof CreateSpeechRequestVoice;
|
|
918
738
|
response_format: S.optionalWith<typeof CreateSpeechRequestResponseFormat, {
|
|
919
739
|
nullable: true;
|
|
920
740
|
default: () => "mp3";
|
|
921
741
|
}>;
|
|
922
|
-
speed: S.optionalWith<S.filter<S.
|
|
742
|
+
speed: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
923
743
|
nullable: true;
|
|
924
744
|
default: () => 1;
|
|
925
745
|
}>;
|
|
926
746
|
}, S.Struct.Encoded<{
|
|
927
747
|
model: S.Union<[typeof S.String, typeof CreateSpeechRequestModelEnum]>;
|
|
928
|
-
input: S.filter<S.
|
|
748
|
+
input: S.filter<typeof S.String>;
|
|
929
749
|
voice: typeof CreateSpeechRequestVoice;
|
|
930
750
|
response_format: S.optionalWith<typeof CreateSpeechRequestResponseFormat, {
|
|
931
751
|
nullable: true;
|
|
932
752
|
default: () => "mp3";
|
|
933
753
|
}>;
|
|
934
|
-
speed: S.optionalWith<S.filter<S.
|
|
754
|
+
speed: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
935
755
|
nullable: true;
|
|
936
756
|
default: () => 1;
|
|
937
757
|
}>;
|
|
@@ -1462,7 +1282,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1462
1282
|
metadata: S.optionalWith<typeof Metadata, {
|
|
1463
1283
|
nullable: true;
|
|
1464
1284
|
}>;
|
|
1465
|
-
frequency_penalty: S.optionalWith<S.filter<S.
|
|
1285
|
+
frequency_penalty: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
1466
1286
|
nullable: true;
|
|
1467
1287
|
default: () => 0;
|
|
1468
1288
|
}>;
|
|
@@ -1473,7 +1293,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1473
1293
|
nullable: true;
|
|
1474
1294
|
default: () => false;
|
|
1475
1295
|
}>;
|
|
1476
|
-
top_logprobs: S.optionalWith<S.filter<S.
|
|
1296
|
+
top_logprobs: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
1477
1297
|
nullable: true;
|
|
1478
1298
|
}>;
|
|
1479
1299
|
max_tokens: S.optionalWith<typeof S.Int, {
|
|
@@ -1482,7 +1302,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1482
1302
|
max_completion_tokens: S.optionalWith<typeof S.Int, {
|
|
1483
1303
|
nullable: true;
|
|
1484
1304
|
}>;
|
|
1485
|
-
n: S.optionalWith<S.filter<S.
|
|
1305
|
+
n: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
1486
1306
|
nullable: true;
|
|
1487
1307
|
default: () => 1;
|
|
1488
1308
|
}>;
|
|
@@ -1498,7 +1318,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1498
1318
|
}>, {
|
|
1499
1319
|
nullable: true;
|
|
1500
1320
|
}>;
|
|
1501
|
-
presence_penalty: S.optionalWith<S.filter<S.
|
|
1321
|
+
presence_penalty: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
1502
1322
|
nullable: true;
|
|
1503
1323
|
default: () => 0;
|
|
1504
1324
|
}>;
|
|
@@ -1512,7 +1332,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1512
1332
|
nullable: true;
|
|
1513
1333
|
default: () => "auto";
|
|
1514
1334
|
}>;
|
|
1515
|
-
stop: S.optionalWith<S.NullOr<S.Union<[typeof S.String, S.filter<S.
|
|
1335
|
+
stop: S.optionalWith<S.NullOr<S.Union<[typeof S.String, S.filter<S.filter<S.Array$<typeof S.String>>>]>>, {
|
|
1516
1336
|
default: () => null;
|
|
1517
1337
|
}>;
|
|
1518
1338
|
stream: S.optionalWith<typeof S.Boolean, {
|
|
@@ -1522,11 +1342,11 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1522
1342
|
stream_options: S.optionalWith<S.NullOr<typeof ChatCompletionStreamOptions>, {
|
|
1523
1343
|
default: () => null;
|
|
1524
1344
|
}>;
|
|
1525
|
-
temperature: S.optionalWith<S.filter<S.
|
|
1345
|
+
temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
1526
1346
|
nullable: true;
|
|
1527
1347
|
default: () => 1;
|
|
1528
1348
|
}>;
|
|
1529
|
-
top_p: S.optionalWith<S.filter<S.
|
|
1349
|
+
top_p: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
1530
1350
|
nullable: true;
|
|
1531
1351
|
default: () => 1;
|
|
1532
1352
|
}>;
|
|
@@ -1546,19 +1366,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1546
1366
|
function_call: S.optionalWith<S.Union<[typeof CreateChatCompletionRequestFunctionCallEnum, typeof ChatCompletionFunctionCallOption]>, {
|
|
1547
1367
|
nullable: true;
|
|
1548
1368
|
}>;
|
|
1549
|
-
functions: S.optionalWith<S.filter<S.
|
|
1550
|
-
readonly description?: string | undefined;
|
|
1551
|
-
readonly name: string;
|
|
1552
|
-
readonly parameters?: {
|
|
1553
|
-
readonly [x: string]: unknown;
|
|
1554
|
-
} | undefined;
|
|
1555
|
-
}[], readonly {
|
|
1556
|
-
readonly name: string;
|
|
1557
|
-
readonly description?: string | null | undefined;
|
|
1558
|
-
readonly parameters?: {
|
|
1559
|
-
readonly [x: string]: unknown;
|
|
1560
|
-
} | null | undefined;
|
|
1561
|
-
}[], never>>, {
|
|
1369
|
+
functions: S.optionalWith<S.filter<S.filter<S.Array$<typeof ChatCompletionFunctions>>>, {
|
|
1562
1370
|
nullable: true;
|
|
1563
1371
|
}>;
|
|
1564
1372
|
}, S.Struct.Encoded<{
|
|
@@ -1575,7 +1383,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1575
1383
|
metadata: S.optionalWith<typeof Metadata, {
|
|
1576
1384
|
nullable: true;
|
|
1577
1385
|
}>;
|
|
1578
|
-
frequency_penalty: S.optionalWith<S.filter<S.
|
|
1386
|
+
frequency_penalty: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
1579
1387
|
nullable: true;
|
|
1580
1388
|
default: () => 0;
|
|
1581
1389
|
}>;
|
|
@@ -1586,7 +1394,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1586
1394
|
nullable: true;
|
|
1587
1395
|
default: () => false;
|
|
1588
1396
|
}>;
|
|
1589
|
-
top_logprobs: S.optionalWith<S.filter<S.
|
|
1397
|
+
top_logprobs: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
1590
1398
|
nullable: true;
|
|
1591
1399
|
}>;
|
|
1592
1400
|
max_tokens: S.optionalWith<typeof S.Int, {
|
|
@@ -1595,7 +1403,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1595
1403
|
max_completion_tokens: S.optionalWith<typeof S.Int, {
|
|
1596
1404
|
nullable: true;
|
|
1597
1405
|
}>;
|
|
1598
|
-
n: S.optionalWith<S.filter<S.
|
|
1406
|
+
n: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
1599
1407
|
nullable: true;
|
|
1600
1408
|
default: () => 1;
|
|
1601
1409
|
}>;
|
|
@@ -1611,7 +1419,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1611
1419
|
}>, {
|
|
1612
1420
|
nullable: true;
|
|
1613
1421
|
}>;
|
|
1614
|
-
presence_penalty: S.optionalWith<S.filter<S.
|
|
1422
|
+
presence_penalty: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
1615
1423
|
nullable: true;
|
|
1616
1424
|
default: () => 0;
|
|
1617
1425
|
}>;
|
|
@@ -1625,7 +1433,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1625
1433
|
nullable: true;
|
|
1626
1434
|
default: () => "auto";
|
|
1627
1435
|
}>;
|
|
1628
|
-
stop: S.optionalWith<S.NullOr<S.Union<[typeof S.String, S.filter<S.
|
|
1436
|
+
stop: S.optionalWith<S.NullOr<S.Union<[typeof S.String, S.filter<S.filter<S.Array$<typeof S.String>>>]>>, {
|
|
1629
1437
|
default: () => null;
|
|
1630
1438
|
}>;
|
|
1631
1439
|
stream: S.optionalWith<typeof S.Boolean, {
|
|
@@ -1635,11 +1443,11 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1635
1443
|
stream_options: S.optionalWith<S.NullOr<typeof ChatCompletionStreamOptions>, {
|
|
1636
1444
|
default: () => null;
|
|
1637
1445
|
}>;
|
|
1638
|
-
temperature: S.optionalWith<S.filter<S.
|
|
1446
|
+
temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
1639
1447
|
nullable: true;
|
|
1640
1448
|
default: () => 1;
|
|
1641
1449
|
}>;
|
|
1642
|
-
top_p: S.optionalWith<S.filter<S.
|
|
1450
|
+
top_p: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
1643
1451
|
nullable: true;
|
|
1644
1452
|
default: () => 1;
|
|
1645
1453
|
}>;
|
|
@@ -1659,19 +1467,7 @@ declare const CreateChatCompletionRequest_base: S.Class<CreateChatCompletionRequ
|
|
|
1659
1467
|
function_call: S.optionalWith<S.Union<[typeof CreateChatCompletionRequestFunctionCallEnum, typeof ChatCompletionFunctionCallOption]>, {
|
|
1660
1468
|
nullable: true;
|
|
1661
1469
|
}>;
|
|
1662
|
-
functions: S.optionalWith<S.filter<S.
|
|
1663
|
-
readonly description?: string | undefined;
|
|
1664
|
-
readonly name: string;
|
|
1665
|
-
readonly parameters?: {
|
|
1666
|
-
readonly [x: string]: unknown;
|
|
1667
|
-
} | undefined;
|
|
1668
|
-
}[], readonly {
|
|
1669
|
-
readonly name: string;
|
|
1670
|
-
readonly description?: string | null | undefined;
|
|
1671
|
-
readonly parameters?: {
|
|
1672
|
-
readonly [x: string]: unknown;
|
|
1673
|
-
} | null | undefined;
|
|
1674
|
-
}[], never>>, {
|
|
1470
|
+
functions: S.optionalWith<S.filter<S.filter<S.Array$<typeof ChatCompletionFunctions>>>, {
|
|
1675
1471
|
nullable: true;
|
|
1676
1472
|
}>;
|
|
1677
1473
|
}>, never, {
|
|
@@ -2209,7 +2005,7 @@ export declare class CreateCompletionRequestModelEnum extends CreateCompletionRe
|
|
|
2209
2005
|
declare const CreateCompletionRequest_base: S.Class<CreateCompletionRequest, {
|
|
2210
2006
|
model: S.Union<[typeof S.String, typeof CreateCompletionRequestModelEnum]>;
|
|
2211
2007
|
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>;
|
|
2212
|
-
best_of: S.optionalWith<S.filter<S.
|
|
2008
|
+
best_of: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
2213
2009
|
nullable: true;
|
|
2214
2010
|
default: () => 1;
|
|
2215
2011
|
}>;
|
|
@@ -2217,32 +2013,32 @@ declare const CreateCompletionRequest_base: S.Class<CreateCompletionRequest, {
|
|
|
2217
2013
|
nullable: true;
|
|
2218
2014
|
default: () => false;
|
|
2219
2015
|
}>;
|
|
2220
|
-
frequency_penalty: S.optionalWith<S.filter<S.
|
|
2016
|
+
frequency_penalty: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
2221
2017
|
nullable: true;
|
|
2222
2018
|
default: () => 0;
|
|
2223
2019
|
}>;
|
|
2224
2020
|
logit_bias: S.optionalWith<S.NullOr<S.Record$<typeof S.String, typeof S.Unknown>>, {
|
|
2225
2021
|
default: () => null;
|
|
2226
2022
|
}>;
|
|
2227
|
-
logprobs: S.optionalWith<S.NullOr<S.filter<S.
|
|
2023
|
+
logprobs: S.optionalWith<S.NullOr<S.filter<S.filter<typeof S.Int>>>, {
|
|
2228
2024
|
default: () => null;
|
|
2229
2025
|
}>;
|
|
2230
|
-
max_tokens: S.optionalWith<S.filter<S.
|
|
2026
|
+
max_tokens: S.optionalWith<S.filter<typeof S.Int>, {
|
|
2231
2027
|
nullable: true;
|
|
2232
2028
|
default: () => 16;
|
|
2233
2029
|
}>;
|
|
2234
|
-
n: S.optionalWith<S.filter<S.
|
|
2030
|
+
n: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
2235
2031
|
nullable: true;
|
|
2236
2032
|
default: () => 1;
|
|
2237
2033
|
}>;
|
|
2238
|
-
presence_penalty: S.optionalWith<S.filter<S.
|
|
2034
|
+
presence_penalty: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
2239
2035
|
nullable: true;
|
|
2240
2036
|
default: () => 0;
|
|
2241
2037
|
}>;
|
|
2242
2038
|
seed: S.optionalWith<typeof S.Int, {
|
|
2243
2039
|
nullable: true;
|
|
2244
2040
|
}>;
|
|
2245
|
-
stop: S.optionalWith<S.NullOr<S.Union<[typeof S.String, S.filter<S.
|
|
2041
|
+
stop: S.optionalWith<S.NullOr<S.Union<[typeof S.String, S.filter<S.filter<S.Array$<typeof S.String>>>]>>, {
|
|
2246
2042
|
default: () => null;
|
|
2247
2043
|
}>;
|
|
2248
2044
|
stream: S.optionalWith<typeof S.Boolean, {
|
|
@@ -2255,11 +2051,11 @@ declare const CreateCompletionRequest_base: S.Class<CreateCompletionRequest, {
|
|
|
2255
2051
|
suffix: S.optionalWith<S.NullOr<typeof S.String>, {
|
|
2256
2052
|
default: () => null;
|
|
2257
2053
|
}>;
|
|
2258
|
-
temperature: S.optionalWith<S.filter<S.
|
|
2054
|
+
temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
2259
2055
|
nullable: true;
|
|
2260
2056
|
default: () => 1;
|
|
2261
2057
|
}>;
|
|
2262
|
-
top_p: S.optionalWith<S.filter<S.
|
|
2058
|
+
top_p: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
2263
2059
|
nullable: true;
|
|
2264
2060
|
default: () => 1;
|
|
2265
2061
|
}>;
|
|
@@ -2269,7 +2065,7 @@ declare const CreateCompletionRequest_base: S.Class<CreateCompletionRequest, {
|
|
|
2269
2065
|
}, S.Struct.Encoded<{
|
|
2270
2066
|
model: S.Union<[typeof S.String, typeof CreateCompletionRequestModelEnum]>;
|
|
2271
2067
|
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>;
|
|
2272
|
-
best_of: S.optionalWith<S.filter<S.
|
|
2068
|
+
best_of: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
2273
2069
|
nullable: true;
|
|
2274
2070
|
default: () => 1;
|
|
2275
2071
|
}>;
|
|
@@ -2277,32 +2073,32 @@ declare const CreateCompletionRequest_base: S.Class<CreateCompletionRequest, {
|
|
|
2277
2073
|
nullable: true;
|
|
2278
2074
|
default: () => false;
|
|
2279
2075
|
}>;
|
|
2280
|
-
frequency_penalty: S.optionalWith<S.filter<S.
|
|
2076
|
+
frequency_penalty: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
2281
2077
|
nullable: true;
|
|
2282
2078
|
default: () => 0;
|
|
2283
2079
|
}>;
|
|
2284
2080
|
logit_bias: S.optionalWith<S.NullOr<S.Record$<typeof S.String, typeof S.Unknown>>, {
|
|
2285
2081
|
default: () => null;
|
|
2286
2082
|
}>;
|
|
2287
|
-
logprobs: S.optionalWith<S.NullOr<S.filter<S.
|
|
2083
|
+
logprobs: S.optionalWith<S.NullOr<S.filter<S.filter<typeof S.Int>>>, {
|
|
2288
2084
|
default: () => null;
|
|
2289
2085
|
}>;
|
|
2290
|
-
max_tokens: S.optionalWith<S.filter<S.
|
|
2086
|
+
max_tokens: S.optionalWith<S.filter<typeof S.Int>, {
|
|
2291
2087
|
nullable: true;
|
|
2292
2088
|
default: () => 16;
|
|
2293
2089
|
}>;
|
|
2294
|
-
n: S.optionalWith<S.filter<S.
|
|
2090
|
+
n: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
2295
2091
|
nullable: true;
|
|
2296
2092
|
default: () => 1;
|
|
2297
2093
|
}>;
|
|
2298
|
-
presence_penalty: S.optionalWith<S.filter<S.
|
|
2094
|
+
presence_penalty: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
2299
2095
|
nullable: true;
|
|
2300
2096
|
default: () => 0;
|
|
2301
2097
|
}>;
|
|
2302
2098
|
seed: S.optionalWith<typeof S.Int, {
|
|
2303
2099
|
nullable: true;
|
|
2304
2100
|
}>;
|
|
2305
|
-
stop: S.optionalWith<S.NullOr<S.Union<[typeof S.String, S.filter<S.
|
|
2101
|
+
stop: S.optionalWith<S.NullOr<S.Union<[typeof S.String, S.filter<S.filter<S.Array$<typeof S.String>>>]>>, {
|
|
2306
2102
|
default: () => null;
|
|
2307
2103
|
}>;
|
|
2308
2104
|
stream: S.optionalWith<typeof S.Boolean, {
|
|
@@ -2315,11 +2111,11 @@ declare const CreateCompletionRequest_base: S.Class<CreateCompletionRequest, {
|
|
|
2315
2111
|
suffix: S.optionalWith<S.NullOr<typeof S.String>, {
|
|
2316
2112
|
default: () => null;
|
|
2317
2113
|
}>;
|
|
2318
|
-
temperature: S.optionalWith<S.filter<S.
|
|
2114
|
+
temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
2319
2115
|
nullable: true;
|
|
2320
2116
|
default: () => 1;
|
|
2321
2117
|
}>;
|
|
2322
|
-
top_p: S.optionalWith<S.filter<S.
|
|
2118
|
+
top_p: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
2323
2119
|
nullable: true;
|
|
2324
2120
|
default: () => 1;
|
|
2325
2121
|
}>;
|
|
@@ -2482,26 +2278,26 @@ declare const CreateEmbeddingRequestEncodingFormat_base: S.Literal<["float", "ba
|
|
|
2482
2278
|
export declare class CreateEmbeddingRequestEncodingFormat extends CreateEmbeddingRequestEncodingFormat_base {
|
|
2483
2279
|
}
|
|
2484
2280
|
declare const CreateEmbeddingRequest_base: S.Class<CreateEmbeddingRequest, {
|
|
2485
|
-
input: S.Union<[typeof S.String, S.filter<S.
|
|
2281
|
+
input: S.Union<[typeof S.String, S.filter<S.filter<S.Array$<typeof S.String>>>, S.filter<S.filter<S.Array$<typeof S.Int>>>, S.filter<S.filter<S.Array$<S.NonEmptyArray<typeof S.Int>>>>]>;
|
|
2486
2282
|
model: S.Union<[typeof S.String, typeof CreateEmbeddingRequestModelEnum]>;
|
|
2487
2283
|
encoding_format: S.optionalWith<typeof CreateEmbeddingRequestEncodingFormat, {
|
|
2488
2284
|
nullable: true;
|
|
2489
2285
|
default: () => "float";
|
|
2490
2286
|
}>;
|
|
2491
|
-
dimensions: S.optionalWith<S.filter<S.
|
|
2287
|
+
dimensions: S.optionalWith<S.filter<typeof S.Int>, {
|
|
2492
2288
|
nullable: true;
|
|
2493
2289
|
}>;
|
|
2494
2290
|
user: S.optionalWith<typeof S.String, {
|
|
2495
2291
|
nullable: true;
|
|
2496
2292
|
}>;
|
|
2497
2293
|
}, S.Struct.Encoded<{
|
|
2498
|
-
input: S.Union<[typeof S.String, S.filter<S.
|
|
2294
|
+
input: S.Union<[typeof S.String, S.filter<S.filter<S.Array$<typeof S.String>>>, S.filter<S.filter<S.Array$<typeof S.Int>>>, S.filter<S.filter<S.Array$<S.NonEmptyArray<typeof S.Int>>>>]>;
|
|
2499
2295
|
model: S.Union<[typeof S.String, typeof CreateEmbeddingRequestModelEnum]>;
|
|
2500
2296
|
encoding_format: S.optionalWith<typeof CreateEmbeddingRequestEncodingFormat, {
|
|
2501
2297
|
nullable: true;
|
|
2502
2298
|
default: () => "float";
|
|
2503
2299
|
}>;
|
|
2504
|
-
dimensions: S.optionalWith<S.filter<S.
|
|
2300
|
+
dimensions: S.optionalWith<S.filter<typeof S.Int>, {
|
|
2505
2301
|
nullable: true;
|
|
2506
2302
|
}>;
|
|
2507
2303
|
user: S.optionalWith<typeof S.String, {
|
|
@@ -2727,15 +2523,15 @@ export declare class FineTuneSupervisedMethodHyperparametersNEpochsEnum extends
|
|
|
2727
2523
|
}
|
|
2728
2524
|
declare const FineTuneSupervisedMethod_base: S.Struct<{
|
|
2729
2525
|
hyperparameters: S.optionalWith<S.Struct<{
|
|
2730
|
-
batch_size: S.optionalWith<S.Union<[typeof FineTuneSupervisedMethodHyperparametersBatchSizeEnum, S.filter<S.
|
|
2526
|
+
batch_size: S.optionalWith<S.Union<[typeof FineTuneSupervisedMethodHyperparametersBatchSizeEnum, S.filter<S.filter<typeof S.Int>>]>, {
|
|
2731
2527
|
nullable: true;
|
|
2732
2528
|
default: () => "auto";
|
|
2733
2529
|
}>;
|
|
2734
|
-
learning_rate_multiplier: S.optionalWith<S.Union<[typeof FineTuneSupervisedMethodHyperparametersLearningRateMultiplierEnum, S.filter<S.
|
|
2530
|
+
learning_rate_multiplier: S.optionalWith<S.Union<[typeof FineTuneSupervisedMethodHyperparametersLearningRateMultiplierEnum, S.filter<typeof S.Number>]>, {
|
|
2735
2531
|
nullable: true;
|
|
2736
2532
|
default: () => "auto";
|
|
2737
2533
|
}>;
|
|
2738
|
-
n_epochs: S.optionalWith<S.Union<[typeof FineTuneSupervisedMethodHyperparametersNEpochsEnum, S.filter<S.
|
|
2534
|
+
n_epochs: S.optionalWith<S.Union<[typeof FineTuneSupervisedMethodHyperparametersNEpochsEnum, S.filter<S.filter<typeof S.Int>>]>, {
|
|
2739
2535
|
nullable: true;
|
|
2740
2536
|
default: () => "auto";
|
|
2741
2537
|
}>;
|
|
@@ -2759,19 +2555,19 @@ export declare class FineTuneDPOMethodHyperparametersNEpochsEnum extends FineTun
|
|
|
2759
2555
|
}
|
|
2760
2556
|
declare const FineTuneDPOMethod_base: S.Struct<{
|
|
2761
2557
|
hyperparameters: S.optionalWith<S.Struct<{
|
|
2762
|
-
beta: S.optionalWith<S.Union<[typeof FineTuneDPOMethodHyperparametersBetaEnum, S.filter<S.
|
|
2558
|
+
beta: S.optionalWith<S.Union<[typeof FineTuneDPOMethodHyperparametersBetaEnum, S.filter<S.filter<typeof S.Number>>]>, {
|
|
2763
2559
|
nullable: true;
|
|
2764
2560
|
default: () => "auto";
|
|
2765
2561
|
}>;
|
|
2766
|
-
batch_size: S.optionalWith<S.Union<[typeof FineTuneDPOMethodHyperparametersBatchSizeEnum, S.filter<S.
|
|
2562
|
+
batch_size: S.optionalWith<S.Union<[typeof FineTuneDPOMethodHyperparametersBatchSizeEnum, S.filter<S.filter<typeof S.Int>>]>, {
|
|
2767
2563
|
nullable: true;
|
|
2768
2564
|
default: () => "auto";
|
|
2769
2565
|
}>;
|
|
2770
|
-
learning_rate_multiplier: S.optionalWith<S.Union<[typeof FineTuneDPOMethodHyperparametersLearningRateMultiplierEnum, S.filter<S.
|
|
2566
|
+
learning_rate_multiplier: S.optionalWith<S.Union<[typeof FineTuneDPOMethodHyperparametersLearningRateMultiplierEnum, S.filter<typeof S.Number>]>, {
|
|
2771
2567
|
nullable: true;
|
|
2772
2568
|
default: () => "auto";
|
|
2773
2569
|
}>;
|
|
2774
|
-
n_epochs: S.optionalWith<S.Union<[typeof FineTuneDPOMethodHyperparametersNEpochsEnum, S.filter<S.
|
|
2570
|
+
n_epochs: S.optionalWith<S.Union<[typeof FineTuneDPOMethodHyperparametersNEpochsEnum, S.filter<S.filter<typeof S.Int>>]>, {
|
|
2775
2571
|
nullable: true;
|
|
2776
2572
|
default: () => "auto";
|
|
2777
2573
|
}>;
|
|
@@ -2805,15 +2601,15 @@ declare const FineTuningJob_base: S.Struct<{
|
|
|
2805
2601
|
fine_tuned_model: S.NullOr<typeof S.String>;
|
|
2806
2602
|
finished_at: S.NullOr<typeof S.Int>;
|
|
2807
2603
|
hyperparameters: S.Struct<{
|
|
2808
|
-
batch_size: S.optionalWith<S.Union<[typeof FineTuningJobHyperparametersBatchSizeEnum, S.filter<S.
|
|
2604
|
+
batch_size: S.optionalWith<S.Union<[typeof FineTuningJobHyperparametersBatchSizeEnum, S.filter<S.filter<typeof S.Int>>]>, {
|
|
2809
2605
|
nullable: true;
|
|
2810
2606
|
default: () => "auto";
|
|
2811
2607
|
}>;
|
|
2812
|
-
learning_rate_multiplier: S.optionalWith<S.Union<[typeof FineTuningJobHyperparametersLearningRateMultiplierEnum, S.filter<S.
|
|
2608
|
+
learning_rate_multiplier: S.optionalWith<S.Union<[typeof FineTuningJobHyperparametersLearningRateMultiplierEnum, S.filter<typeof S.Number>]>, {
|
|
2813
2609
|
nullable: true;
|
|
2814
2610
|
default: () => "auto";
|
|
2815
2611
|
}>;
|
|
2816
|
-
n_epochs: S.optionalWith<S.Union<[typeof FineTuningJobHyperparametersNEpochsEnum, S.filter<S.
|
|
2612
|
+
n_epochs: S.optionalWith<S.Union<[typeof FineTuningJobHyperparametersNEpochsEnum, S.filter<S.filter<typeof S.Int>>]>, {
|
|
2817
2613
|
nullable: true;
|
|
2818
2614
|
default: () => "auto";
|
|
2819
2615
|
}>;
|
|
@@ -2826,23 +2622,7 @@ declare const FineTuningJob_base: S.Struct<{
|
|
|
2826
2622
|
trained_tokens: S.NullOr<typeof S.Int>;
|
|
2827
2623
|
training_file: typeof S.String;
|
|
2828
2624
|
validation_file: S.NullOr<typeof S.String>;
|
|
2829
|
-
integrations: S.optionalWith<S.filter<S.
|
|
2830
|
-
readonly type: "wandb";
|
|
2831
|
-
readonly wandb: {
|
|
2832
|
-
readonly name?: string | undefined;
|
|
2833
|
-
readonly project: string;
|
|
2834
|
-
readonly entity?: string | undefined;
|
|
2835
|
-
readonly tags?: readonly string[] | undefined;
|
|
2836
|
-
};
|
|
2837
|
-
}[], readonly {
|
|
2838
|
-
readonly type: "wandb";
|
|
2839
|
-
readonly wandb: {
|
|
2840
|
-
readonly project: string;
|
|
2841
|
-
readonly name?: string | null | undefined;
|
|
2842
|
-
readonly entity?: string | null | undefined;
|
|
2843
|
-
readonly tags?: readonly string[] | null | undefined;
|
|
2844
|
-
};
|
|
2845
|
-
}[], never>>, {
|
|
2625
|
+
integrations: S.optionalWith<S.filter<S.Array$<typeof FineTuningIntegration>>, {
|
|
2846
2626
|
nullable: true;
|
|
2847
2627
|
}>;
|
|
2848
2628
|
seed: typeof S.Int;
|
|
@@ -2943,22 +2723,22 @@ declare const CreateFineTuningJobRequest_base: S.Class<CreateFineTuningJobReques
|
|
|
2943
2723
|
model: S.Union<[typeof S.String, typeof CreateFineTuningJobRequestModelEnum]>;
|
|
2944
2724
|
training_file: typeof S.String;
|
|
2945
2725
|
hyperparameters: S.optionalWith<S.Struct<{
|
|
2946
|
-
batch_size: S.optionalWith<S.Union<[typeof CreateFineTuningJobRequestHyperparametersBatchSizeEnum, S.filter<S.
|
|
2726
|
+
batch_size: S.optionalWith<S.Union<[typeof CreateFineTuningJobRequestHyperparametersBatchSizeEnum, S.filter<S.filter<typeof S.Int>>]>, {
|
|
2947
2727
|
nullable: true;
|
|
2948
2728
|
default: () => "auto";
|
|
2949
2729
|
}>;
|
|
2950
|
-
learning_rate_multiplier: S.optionalWith<S.Union<[typeof CreateFineTuningJobRequestHyperparametersLearningRateMultiplierEnum, S.filter<S.
|
|
2730
|
+
learning_rate_multiplier: S.optionalWith<S.Union<[typeof CreateFineTuningJobRequestHyperparametersLearningRateMultiplierEnum, S.filter<typeof S.Number>]>, {
|
|
2951
2731
|
nullable: true;
|
|
2952
2732
|
default: () => "auto";
|
|
2953
2733
|
}>;
|
|
2954
|
-
n_epochs: S.optionalWith<S.Union<[typeof CreateFineTuningJobRequestHyperparametersNEpochsEnum, S.filter<S.
|
|
2734
|
+
n_epochs: S.optionalWith<S.Union<[typeof CreateFineTuningJobRequestHyperparametersNEpochsEnum, S.filter<S.filter<typeof S.Int>>]>, {
|
|
2955
2735
|
nullable: true;
|
|
2956
2736
|
default: () => "auto";
|
|
2957
2737
|
}>;
|
|
2958
2738
|
}>, {
|
|
2959
2739
|
nullable: true;
|
|
2960
2740
|
}>;
|
|
2961
|
-
suffix: S.optionalWith<S.NullOr<S.filter<S.
|
|
2741
|
+
suffix: S.optionalWith<S.NullOr<S.filter<S.filter<typeof S.String>>>, {
|
|
2962
2742
|
default: () => null;
|
|
2963
2743
|
}>;
|
|
2964
2744
|
validation_file: S.optionalWith<typeof S.String, {
|
|
@@ -2981,7 +2761,7 @@ declare const CreateFineTuningJobRequest_base: S.Class<CreateFineTuningJobReques
|
|
|
2981
2761
|
}>>, {
|
|
2982
2762
|
nullable: true;
|
|
2983
2763
|
}>;
|
|
2984
|
-
seed: S.optionalWith<S.filter<S.
|
|
2764
|
+
seed: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
2985
2765
|
nullable: true;
|
|
2986
2766
|
}>;
|
|
2987
2767
|
method: S.optionalWith<typeof FineTuneMethod, {
|
|
@@ -2991,22 +2771,22 @@ declare const CreateFineTuningJobRequest_base: S.Class<CreateFineTuningJobReques
|
|
|
2991
2771
|
model: S.Union<[typeof S.String, typeof CreateFineTuningJobRequestModelEnum]>;
|
|
2992
2772
|
training_file: typeof S.String;
|
|
2993
2773
|
hyperparameters: S.optionalWith<S.Struct<{
|
|
2994
|
-
batch_size: S.optionalWith<S.Union<[typeof CreateFineTuningJobRequestHyperparametersBatchSizeEnum, S.filter<S.
|
|
2774
|
+
batch_size: S.optionalWith<S.Union<[typeof CreateFineTuningJobRequestHyperparametersBatchSizeEnum, S.filter<S.filter<typeof S.Int>>]>, {
|
|
2995
2775
|
nullable: true;
|
|
2996
2776
|
default: () => "auto";
|
|
2997
2777
|
}>;
|
|
2998
|
-
learning_rate_multiplier: S.optionalWith<S.Union<[typeof CreateFineTuningJobRequestHyperparametersLearningRateMultiplierEnum, S.filter<S.
|
|
2778
|
+
learning_rate_multiplier: S.optionalWith<S.Union<[typeof CreateFineTuningJobRequestHyperparametersLearningRateMultiplierEnum, S.filter<typeof S.Number>]>, {
|
|
2999
2779
|
nullable: true;
|
|
3000
2780
|
default: () => "auto";
|
|
3001
2781
|
}>;
|
|
3002
|
-
n_epochs: S.optionalWith<S.Union<[typeof CreateFineTuningJobRequestHyperparametersNEpochsEnum, S.filter<S.
|
|
2782
|
+
n_epochs: S.optionalWith<S.Union<[typeof CreateFineTuningJobRequestHyperparametersNEpochsEnum, S.filter<S.filter<typeof S.Int>>]>, {
|
|
3003
2783
|
nullable: true;
|
|
3004
2784
|
default: () => "auto";
|
|
3005
2785
|
}>;
|
|
3006
2786
|
}>, {
|
|
3007
2787
|
nullable: true;
|
|
3008
2788
|
}>;
|
|
3009
|
-
suffix: S.optionalWith<S.NullOr<S.filter<S.
|
|
2789
|
+
suffix: S.optionalWith<S.NullOr<S.filter<S.filter<typeof S.String>>>, {
|
|
3010
2790
|
default: () => null;
|
|
3011
2791
|
}>;
|
|
3012
2792
|
validation_file: S.optionalWith<typeof S.String, {
|
|
@@ -3029,7 +2809,7 @@ declare const CreateFineTuningJobRequest_base: S.Class<CreateFineTuningJobReques
|
|
|
3029
2809
|
}>>, {
|
|
3030
2810
|
nullable: true;
|
|
3031
2811
|
}>;
|
|
3032
|
-
seed: S.optionalWith<S.filter<S.
|
|
2812
|
+
seed: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
3033
2813
|
nullable: true;
|
|
3034
2814
|
}>;
|
|
3035
2815
|
method: S.optionalWith<typeof FineTuneMethod, {
|
|
@@ -3298,7 +3078,7 @@ declare const CreateImageRequest_base: S.Class<CreateImageRequest, {
|
|
|
3298
3078
|
nullable: true;
|
|
3299
3079
|
default: () => "dall-e-2";
|
|
3300
3080
|
}>;
|
|
3301
|
-
n: S.optionalWith<S.filter<S.
|
|
3081
|
+
n: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
3302
3082
|
nullable: true;
|
|
3303
3083
|
default: () => 1;
|
|
3304
3084
|
}>;
|
|
@@ -3327,7 +3107,7 @@ declare const CreateImageRequest_base: S.Class<CreateImageRequest, {
|
|
|
3327
3107
|
nullable: true;
|
|
3328
3108
|
default: () => "dall-e-2";
|
|
3329
3109
|
}>;
|
|
3330
|
-
n: S.optionalWith<S.filter<S.
|
|
3110
|
+
n: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
|
|
3331
3111
|
nullable: true;
|
|
3332
3112
|
default: () => 1;
|
|
3333
3113
|
}>;
|
|
@@ -6236,7 +6016,7 @@ declare const CreateThreadRequest_base: S.Class<CreateThreadRequest, {
|
|
|
6236
6016
|
}>;
|
|
6237
6017
|
tool_resources: S.optionalWith<S.Struct<{
|
|
6238
6018
|
code_interpreter: S.optionalWith<S.Struct<{
|
|
6239
|
-
file_ids: S.optionalWith<S.filter<S.
|
|
6019
|
+
file_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
6240
6020
|
nullable: true;
|
|
6241
6021
|
default: () => readonly [];
|
|
6242
6022
|
}>;
|
|
@@ -6244,26 +6024,20 @@ declare const CreateThreadRequest_base: S.Class<CreateThreadRequest, {
|
|
|
6244
6024
|
nullable: true;
|
|
6245
6025
|
}>;
|
|
6246
6026
|
file_search: S.optionalWith<S.Struct<{
|
|
6247
|
-
vector_store_ids: S.optionalWith<S.filter<S.
|
|
6027
|
+
vector_store_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
6248
6028
|
nullable: true;
|
|
6249
6029
|
}>;
|
|
6250
|
-
vector_stores: S.optionalWith<S.filter<S.
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
}
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
} | null | undefined;
|
|
6262
|
-
readonly file_ids?: readonly string[] | null | undefined;
|
|
6263
|
-
readonly chunking_strategy?: {
|
|
6264
|
-
readonly [x: string]: unknown;
|
|
6265
|
-
} | null | undefined;
|
|
6266
|
-
}[], never>>, {
|
|
6030
|
+
vector_stores: S.optionalWith<S.filter<S.Array$<S.Struct<{
|
|
6031
|
+
file_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
6032
|
+
nullable: true;
|
|
6033
|
+
}>;
|
|
6034
|
+
chunking_strategy: S.optionalWith<S.Record$<typeof S.String, typeof S.Unknown>, {
|
|
6035
|
+
nullable: true;
|
|
6036
|
+
}>;
|
|
6037
|
+
metadata: S.optionalWith<typeof Metadata, {
|
|
6038
|
+
nullable: true;
|
|
6039
|
+
}>;
|
|
6040
|
+
}>>>, {
|
|
6267
6041
|
nullable: true;
|
|
6268
6042
|
}>;
|
|
6269
6043
|
}>, {
|
|
@@ -6281,7 +6055,7 @@ declare const CreateThreadRequest_base: S.Class<CreateThreadRequest, {
|
|
|
6281
6055
|
}>;
|
|
6282
6056
|
tool_resources: S.optionalWith<S.Struct<{
|
|
6283
6057
|
code_interpreter: S.optionalWith<S.Struct<{
|
|
6284
|
-
file_ids: S.optionalWith<S.filter<S.
|
|
6058
|
+
file_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
6285
6059
|
nullable: true;
|
|
6286
6060
|
default: () => readonly [];
|
|
6287
6061
|
}>;
|
|
@@ -6289,26 +6063,20 @@ declare const CreateThreadRequest_base: S.Class<CreateThreadRequest, {
|
|
|
6289
6063
|
nullable: true;
|
|
6290
6064
|
}>;
|
|
6291
6065
|
file_search: S.optionalWith<S.Struct<{
|
|
6292
|
-
vector_store_ids: S.optionalWith<S.filter<S.
|
|
6066
|
+
vector_store_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
6293
6067
|
nullable: true;
|
|
6294
6068
|
}>;
|
|
6295
|
-
vector_stores: S.optionalWith<S.filter<S.
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
}
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
} | null | undefined;
|
|
6307
|
-
readonly file_ids?: readonly string[] | null | undefined;
|
|
6308
|
-
readonly chunking_strategy?: {
|
|
6309
|
-
readonly [x: string]: unknown;
|
|
6310
|
-
} | null | undefined;
|
|
6311
|
-
}[], never>>, {
|
|
6069
|
+
vector_stores: S.optionalWith<S.filter<S.Array$<S.Struct<{
|
|
6070
|
+
file_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
6071
|
+
nullable: true;
|
|
6072
|
+
}>;
|
|
6073
|
+
chunking_strategy: S.optionalWith<S.Record$<typeof S.String, typeof S.Unknown>, {
|
|
6074
|
+
nullable: true;
|
|
6075
|
+
}>;
|
|
6076
|
+
metadata: S.optionalWith<typeof Metadata, {
|
|
6077
|
+
nullable: true;
|
|
6078
|
+
}>;
|
|
6079
|
+
}>>>, {
|
|
6312
6080
|
nullable: true;
|
|
6313
6081
|
}>;
|
|
6314
6082
|
}>, {
|
|
@@ -6400,7 +6168,7 @@ declare const ThreadObject_base: S.Class<ThreadObject, {
|
|
|
6400
6168
|
created_at: typeof S.Int;
|
|
6401
6169
|
tool_resources: S.NullOr<S.Struct<{
|
|
6402
6170
|
code_interpreter: S.optionalWith<S.Struct<{
|
|
6403
|
-
file_ids: S.optionalWith<S.filter<S.
|
|
6171
|
+
file_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
6404
6172
|
nullable: true;
|
|
6405
6173
|
default: () => readonly [];
|
|
6406
6174
|
}>;
|
|
@@ -6408,7 +6176,7 @@ declare const ThreadObject_base: S.Class<ThreadObject, {
|
|
|
6408
6176
|
nullable: true;
|
|
6409
6177
|
}>;
|
|
6410
6178
|
file_search: S.optionalWith<S.Struct<{
|
|
6411
|
-
vector_store_ids: S.optionalWith<S.filter<S.
|
|
6179
|
+
vector_store_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
6412
6180
|
nullable: true;
|
|
6413
6181
|
}>;
|
|
6414
6182
|
}>, {
|
|
@@ -6422,7 +6190,7 @@ declare const ThreadObject_base: S.Class<ThreadObject, {
|
|
|
6422
6190
|
created_at: typeof S.Int;
|
|
6423
6191
|
tool_resources: S.NullOr<S.Struct<{
|
|
6424
6192
|
code_interpreter: S.optionalWith<S.Struct<{
|
|
6425
|
-
file_ids: S.optionalWith<S.filter<S.
|
|
6193
|
+
file_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
6426
6194
|
nullable: true;
|
|
6427
6195
|
default: () => readonly [];
|
|
6428
6196
|
}>;
|
|
@@ -6430,7 +6198,7 @@ declare const ThreadObject_base: S.Class<ThreadObject, {
|
|
|
6430
6198
|
nullable: true;
|
|
6431
6199
|
}>;
|
|
6432
6200
|
file_search: S.optionalWith<S.Struct<{
|
|
6433
|
-
vector_store_ids: S.optionalWith<S.filter<S.
|
|
6201
|
+
vector_store_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
6434
6202
|
nullable: true;
|
|
6435
6203
|
}>;
|
|
6436
6204
|
}>, {
|
|
@@ -6468,7 +6236,7 @@ export declare class TruncationObjectType extends TruncationObjectType_base {
|
|
|
6468
6236
|
}
|
|
6469
6237
|
declare const TruncationObject_base: S.Struct<{
|
|
6470
6238
|
type: typeof TruncationObjectType;
|
|
6471
|
-
last_messages: S.optionalWith<S.filter<S.
|
|
6239
|
+
last_messages: S.optionalWith<S.filter<typeof S.Int>, {
|
|
6472
6240
|
nullable: true;
|
|
6473
6241
|
}>;
|
|
6474
6242
|
}>;
|
|
@@ -6504,54 +6272,12 @@ declare const CreateThreadAndRunRequest_base: S.Class<CreateThreadAndRunRequest,
|
|
|
6504
6272
|
instructions: S.optionalWith<typeof S.String, {
|
|
6505
6273
|
nullable: true;
|
|
6506
6274
|
}>;
|
|
6507
|
-
tools: S.optionalWith<S.filter<S.
|
|
6508
|
-
readonly type: "code_interpreter";
|
|
6509
|
-
} | {
|
|
6510
|
-
readonly type: "file_search";
|
|
6511
|
-
readonly file_search?: {
|
|
6512
|
-
readonly max_num_results?: number | undefined;
|
|
6513
|
-
readonly ranking_options?: {
|
|
6514
|
-
readonly ranker?: "auto" | "default_2024_08_21" | undefined;
|
|
6515
|
-
readonly score_threshold: number;
|
|
6516
|
-
} | undefined;
|
|
6517
|
-
} | undefined;
|
|
6518
|
-
} | {
|
|
6519
|
-
readonly function: {
|
|
6520
|
-
readonly description?: string | undefined;
|
|
6521
|
-
readonly name: string;
|
|
6522
|
-
readonly parameters?: {
|
|
6523
|
-
readonly [x: string]: unknown;
|
|
6524
|
-
} | undefined;
|
|
6525
|
-
readonly strict: boolean;
|
|
6526
|
-
};
|
|
6527
|
-
readonly type: "function";
|
|
6528
|
-
})[], readonly ({
|
|
6529
|
-
readonly type: "code_interpreter";
|
|
6530
|
-
} | {
|
|
6531
|
-
readonly type: "file_search";
|
|
6532
|
-
readonly file_search?: {
|
|
6533
|
-
readonly max_num_results?: number | null | undefined;
|
|
6534
|
-
readonly ranking_options?: {
|
|
6535
|
-
readonly score_threshold: number;
|
|
6536
|
-
readonly ranker?: "auto" | "default_2024_08_21" | null | undefined;
|
|
6537
|
-
} | null | undefined;
|
|
6538
|
-
} | null | undefined;
|
|
6539
|
-
} | {
|
|
6540
|
-
readonly function: {
|
|
6541
|
-
readonly name: string;
|
|
6542
|
-
readonly description?: string | null | undefined;
|
|
6543
|
-
readonly parameters?: {
|
|
6544
|
-
readonly [x: string]: unknown;
|
|
6545
|
-
} | null | undefined;
|
|
6546
|
-
readonly strict?: boolean | null | undefined;
|
|
6547
|
-
};
|
|
6548
|
-
readonly type: "function";
|
|
6549
|
-
})[], never>>, {
|
|
6275
|
+
tools: S.optionalWith<S.filter<S.Array$<S.Union<[typeof AssistantToolsCode, typeof AssistantToolsFileSearch, typeof AssistantToolsFunction]>>>, {
|
|
6550
6276
|
nullable: true;
|
|
6551
6277
|
}>;
|
|
6552
6278
|
tool_resources: S.optionalWith<S.Struct<{
|
|
6553
6279
|
code_interpreter: S.optionalWith<S.Struct<{
|
|
6554
|
-
file_ids: S.optionalWith<S.filter<S.
|
|
6280
|
+
file_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
6555
6281
|
nullable: true;
|
|
6556
6282
|
default: () => readonly [];
|
|
6557
6283
|
}>;
|
|
@@ -6559,7 +6285,7 @@ declare const CreateThreadAndRunRequest_base: S.Class<CreateThreadAndRunRequest,
|
|
|
6559
6285
|
nullable: true;
|
|
6560
6286
|
}>;
|
|
6561
6287
|
file_search: S.optionalWith<S.Struct<{
|
|
6562
|
-
vector_store_ids: S.optionalWith<S.filter<S.
|
|
6288
|
+
vector_store_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
6563
6289
|
nullable: true;
|
|
6564
6290
|
}>;
|
|
6565
6291
|
}>, {
|
|
@@ -6571,21 +6297,21 @@ declare const CreateThreadAndRunRequest_base: S.Class<CreateThreadAndRunRequest,
|
|
|
6571
6297
|
metadata: S.optionalWith<typeof Metadata, {
|
|
6572
6298
|
nullable: true;
|
|
6573
6299
|
}>;
|
|
6574
|
-
temperature: S.optionalWith<S.filter<S.
|
|
6300
|
+
temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
6575
6301
|
nullable: true;
|
|
6576
6302
|
default: () => 1;
|
|
6577
6303
|
}>;
|
|
6578
|
-
top_p: S.optionalWith<S.filter<S.
|
|
6304
|
+
top_p: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
6579
6305
|
nullable: true;
|
|
6580
6306
|
default: () => 1;
|
|
6581
6307
|
}>;
|
|
6582
6308
|
stream: S.optionalWith<typeof S.Boolean, {
|
|
6583
6309
|
nullable: true;
|
|
6584
6310
|
}>;
|
|
6585
|
-
max_prompt_tokens: S.optionalWith<S.filter<S.
|
|
6311
|
+
max_prompt_tokens: S.optionalWith<S.filter<typeof S.Int>, {
|
|
6586
6312
|
nullable: true;
|
|
6587
6313
|
}>;
|
|
6588
|
-
max_completion_tokens: S.optionalWith<S.filter<S.
|
|
6314
|
+
max_completion_tokens: S.optionalWith<S.filter<typeof S.Int>, {
|
|
6589
6315
|
nullable: true;
|
|
6590
6316
|
}>;
|
|
6591
6317
|
truncation_strategy: S.optionalWith<typeof TruncationObject, {
|
|
@@ -6612,54 +6338,12 @@ declare const CreateThreadAndRunRequest_base: S.Class<CreateThreadAndRunRequest,
|
|
|
6612
6338
|
instructions: S.optionalWith<typeof S.String, {
|
|
6613
6339
|
nullable: true;
|
|
6614
6340
|
}>;
|
|
6615
|
-
tools: S.optionalWith<S.filter<S.
|
|
6616
|
-
readonly type: "code_interpreter";
|
|
6617
|
-
} | {
|
|
6618
|
-
readonly type: "file_search";
|
|
6619
|
-
readonly file_search?: {
|
|
6620
|
-
readonly max_num_results?: number | undefined;
|
|
6621
|
-
readonly ranking_options?: {
|
|
6622
|
-
readonly ranker?: "auto" | "default_2024_08_21" | undefined;
|
|
6623
|
-
readonly score_threshold: number;
|
|
6624
|
-
} | undefined;
|
|
6625
|
-
} | undefined;
|
|
6626
|
-
} | {
|
|
6627
|
-
readonly function: {
|
|
6628
|
-
readonly description?: string | undefined;
|
|
6629
|
-
readonly name: string;
|
|
6630
|
-
readonly parameters?: {
|
|
6631
|
-
readonly [x: string]: unknown;
|
|
6632
|
-
} | undefined;
|
|
6633
|
-
readonly strict: boolean;
|
|
6634
|
-
};
|
|
6635
|
-
readonly type: "function";
|
|
6636
|
-
})[], readonly ({
|
|
6637
|
-
readonly type: "code_interpreter";
|
|
6638
|
-
} | {
|
|
6639
|
-
readonly type: "file_search";
|
|
6640
|
-
readonly file_search?: {
|
|
6641
|
-
readonly max_num_results?: number | null | undefined;
|
|
6642
|
-
readonly ranking_options?: {
|
|
6643
|
-
readonly score_threshold: number;
|
|
6644
|
-
readonly ranker?: "auto" | "default_2024_08_21" | null | undefined;
|
|
6645
|
-
} | null | undefined;
|
|
6646
|
-
} | null | undefined;
|
|
6647
|
-
} | {
|
|
6648
|
-
readonly function: {
|
|
6649
|
-
readonly name: string;
|
|
6650
|
-
readonly description?: string | null | undefined;
|
|
6651
|
-
readonly parameters?: {
|
|
6652
|
-
readonly [x: string]: unknown;
|
|
6653
|
-
} | null | undefined;
|
|
6654
|
-
readonly strict?: boolean | null | undefined;
|
|
6655
|
-
};
|
|
6656
|
-
readonly type: "function";
|
|
6657
|
-
})[], never>>, {
|
|
6341
|
+
tools: S.optionalWith<S.filter<S.Array$<S.Union<[typeof AssistantToolsCode, typeof AssistantToolsFileSearch, typeof AssistantToolsFunction]>>>, {
|
|
6658
6342
|
nullable: true;
|
|
6659
6343
|
}>;
|
|
6660
6344
|
tool_resources: S.optionalWith<S.Struct<{
|
|
6661
6345
|
code_interpreter: S.optionalWith<S.Struct<{
|
|
6662
|
-
file_ids: S.optionalWith<S.filter<S.
|
|
6346
|
+
file_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
6663
6347
|
nullable: true;
|
|
6664
6348
|
default: () => readonly [];
|
|
6665
6349
|
}>;
|
|
@@ -6667,7 +6351,7 @@ declare const CreateThreadAndRunRequest_base: S.Class<CreateThreadAndRunRequest,
|
|
|
6667
6351
|
nullable: true;
|
|
6668
6352
|
}>;
|
|
6669
6353
|
file_search: S.optionalWith<S.Struct<{
|
|
6670
|
-
vector_store_ids: S.optionalWith<S.filter<S.
|
|
6354
|
+
vector_store_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
6671
6355
|
nullable: true;
|
|
6672
6356
|
}>;
|
|
6673
6357
|
}>, {
|
|
@@ -6679,21 +6363,21 @@ declare const CreateThreadAndRunRequest_base: S.Class<CreateThreadAndRunRequest,
|
|
|
6679
6363
|
metadata: S.optionalWith<typeof Metadata, {
|
|
6680
6364
|
nullable: true;
|
|
6681
6365
|
}>;
|
|
6682
|
-
temperature: S.optionalWith<S.filter<S.
|
|
6366
|
+
temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
6683
6367
|
nullable: true;
|
|
6684
6368
|
default: () => 1;
|
|
6685
6369
|
}>;
|
|
6686
|
-
top_p: S.optionalWith<S.filter<S.
|
|
6370
|
+
top_p: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
6687
6371
|
nullable: true;
|
|
6688
6372
|
default: () => 1;
|
|
6689
6373
|
}>;
|
|
6690
6374
|
stream: S.optionalWith<typeof S.Boolean, {
|
|
6691
6375
|
nullable: true;
|
|
6692
6376
|
}>;
|
|
6693
|
-
max_prompt_tokens: S.optionalWith<S.filter<S.
|
|
6377
|
+
max_prompt_tokens: S.optionalWith<S.filter<typeof S.Int>, {
|
|
6694
6378
|
nullable: true;
|
|
6695
6379
|
}>;
|
|
6696
|
-
max_completion_tokens: S.optionalWith<S.filter<S.
|
|
6380
|
+
max_completion_tokens: S.optionalWith<S.filter<typeof S.Int>, {
|
|
6697
6381
|
nullable: true;
|
|
6698
6382
|
}>;
|
|
6699
6383
|
truncation_strategy: S.optionalWith<typeof TruncationObject, {
|
|
@@ -6911,8 +6595,8 @@ declare const RunObject_base: S.Class<RunObject, {
|
|
|
6911
6595
|
top_p: S.optionalWith<typeof S.Number, {
|
|
6912
6596
|
nullable: true;
|
|
6913
6597
|
}>;
|
|
6914
|
-
max_prompt_tokens: S.NullOr<S.filter<S.
|
|
6915
|
-
max_completion_tokens: S.NullOr<S.filter<S.
|
|
6598
|
+
max_prompt_tokens: S.NullOr<S.filter<typeof S.Int>>;
|
|
6599
|
+
max_completion_tokens: S.NullOr<S.filter<typeof S.Int>>;
|
|
6916
6600
|
truncation_strategy: typeof TruncationObject;
|
|
6917
6601
|
tool_choice: typeof AssistantsApiToolChoiceOption;
|
|
6918
6602
|
parallel_tool_calls: S.PropertySignature<":", boolean, never, ":", boolean, true, never>;
|
|
@@ -6997,8 +6681,8 @@ declare const RunObject_base: S.Class<RunObject, {
|
|
|
6997
6681
|
top_p: S.optionalWith<typeof S.Number, {
|
|
6998
6682
|
nullable: true;
|
|
6999
6683
|
}>;
|
|
7000
|
-
max_prompt_tokens: S.NullOr<S.filter<S.
|
|
7001
|
-
max_completion_tokens: S.NullOr<S.filter<S.
|
|
6684
|
+
max_prompt_tokens: S.NullOr<S.filter<typeof S.Int>>;
|
|
6685
|
+
max_completion_tokens: S.NullOr<S.filter<typeof S.Int>>;
|
|
7002
6686
|
truncation_strategy: typeof TruncationObject;
|
|
7003
6687
|
tool_choice: typeof AssistantsApiToolChoiceOption;
|
|
7004
6688
|
parallel_tool_calls: S.PropertySignature<":", boolean, never, ":", boolean, true, never>;
|
|
@@ -7129,7 +6813,7 @@ export declare class RunObject extends RunObject_base {
|
|
|
7129
6813
|
declare const ModifyThreadRequest_base: S.Class<ModifyThreadRequest, {
|
|
7130
6814
|
tool_resources: S.optionalWith<S.Struct<{
|
|
7131
6815
|
code_interpreter: S.optionalWith<S.Struct<{
|
|
7132
|
-
file_ids: S.optionalWith<S.filter<S.
|
|
6816
|
+
file_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
7133
6817
|
nullable: true;
|
|
7134
6818
|
default: () => readonly [];
|
|
7135
6819
|
}>;
|
|
@@ -7137,7 +6821,7 @@ declare const ModifyThreadRequest_base: S.Class<ModifyThreadRequest, {
|
|
|
7137
6821
|
nullable: true;
|
|
7138
6822
|
}>;
|
|
7139
6823
|
file_search: S.optionalWith<S.Struct<{
|
|
7140
|
-
vector_store_ids: S.optionalWith<S.filter<S.
|
|
6824
|
+
vector_store_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
7141
6825
|
nullable: true;
|
|
7142
6826
|
}>;
|
|
7143
6827
|
}>, {
|
|
@@ -7152,7 +6836,7 @@ declare const ModifyThreadRequest_base: S.Class<ModifyThreadRequest, {
|
|
|
7152
6836
|
}, S.Struct.Encoded<{
|
|
7153
6837
|
tool_resources: S.optionalWith<S.Struct<{
|
|
7154
6838
|
code_interpreter: S.optionalWith<S.Struct<{
|
|
7155
|
-
file_ids: S.optionalWith<S.filter<S.
|
|
6839
|
+
file_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
7156
6840
|
nullable: true;
|
|
7157
6841
|
default: () => readonly [];
|
|
7158
6842
|
}>;
|
|
@@ -7160,7 +6844,7 @@ declare const ModifyThreadRequest_base: S.Class<ModifyThreadRequest, {
|
|
|
7160
6844
|
nullable: true;
|
|
7161
6845
|
}>;
|
|
7162
6846
|
file_search: S.optionalWith<S.Struct<{
|
|
7163
|
-
vector_store_ids: S.optionalWith<S.filter<S.
|
|
6847
|
+
vector_store_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
7164
6848
|
nullable: true;
|
|
7165
6849
|
}>;
|
|
7166
6850
|
}>, {
|
|
@@ -7256,8 +6940,8 @@ declare const MessageContentTextAnnotationsFileCitationObject_base: S.Struct<{
|
|
|
7256
6940
|
file_citation: S.Struct<{
|
|
7257
6941
|
file_id: typeof S.String;
|
|
7258
6942
|
}>;
|
|
7259
|
-
start_index: S.filter<S.
|
|
7260
|
-
end_index: S.filter<S.
|
|
6943
|
+
start_index: S.filter<typeof S.Int>;
|
|
6944
|
+
end_index: S.filter<typeof S.Int>;
|
|
7261
6945
|
}>;
|
|
7262
6946
|
export declare class MessageContentTextAnnotationsFileCitationObject extends MessageContentTextAnnotationsFileCitationObject_base {
|
|
7263
6947
|
}
|
|
@@ -7270,8 +6954,8 @@ declare const MessageContentTextAnnotationsFilePathObject_base: S.Struct<{
|
|
|
7270
6954
|
file_path: S.Struct<{
|
|
7271
6955
|
file_id: typeof S.String;
|
|
7272
6956
|
}>;
|
|
7273
|
-
start_index: S.filter<S.
|
|
7274
|
-
end_index: S.filter<S.
|
|
6957
|
+
start_index: S.filter<typeof S.Int>;
|
|
6958
|
+
end_index: S.filter<typeof S.Int>;
|
|
7275
6959
|
}>;
|
|
7276
6960
|
export declare class MessageContentTextAnnotationsFilePathObject extends MessageContentTextAnnotationsFilePathObject_base {
|
|
7277
6961
|
}
|
|
@@ -7514,69 +7198,27 @@ declare const CreateRunRequest_base: S.Class<CreateRunRequest, {
|
|
|
7514
7198
|
additional_messages: S.optionalWith<S.Array$<typeof CreateMessageRequest>, {
|
|
7515
7199
|
nullable: true;
|
|
7516
7200
|
}>;
|
|
7517
|
-
tools: S.optionalWith<S.filter<S.
|
|
7518
|
-
readonly type: "code_interpreter";
|
|
7519
|
-
} | {
|
|
7520
|
-
readonly type: "file_search";
|
|
7521
|
-
readonly file_search?: {
|
|
7522
|
-
readonly max_num_results?: number | undefined;
|
|
7523
|
-
readonly ranking_options?: {
|
|
7524
|
-
readonly ranker?: "auto" | "default_2024_08_21" | undefined;
|
|
7525
|
-
readonly score_threshold: number;
|
|
7526
|
-
} | undefined;
|
|
7527
|
-
} | undefined;
|
|
7528
|
-
} | {
|
|
7529
|
-
readonly function: {
|
|
7530
|
-
readonly description?: string | undefined;
|
|
7531
|
-
readonly name: string;
|
|
7532
|
-
readonly parameters?: {
|
|
7533
|
-
readonly [x: string]: unknown;
|
|
7534
|
-
} | undefined;
|
|
7535
|
-
readonly strict: boolean;
|
|
7536
|
-
};
|
|
7537
|
-
readonly type: "function";
|
|
7538
|
-
})[], readonly ({
|
|
7539
|
-
readonly type: "code_interpreter";
|
|
7540
|
-
} | {
|
|
7541
|
-
readonly type: "file_search";
|
|
7542
|
-
readonly file_search?: {
|
|
7543
|
-
readonly max_num_results?: number | null | undefined;
|
|
7544
|
-
readonly ranking_options?: {
|
|
7545
|
-
readonly score_threshold: number;
|
|
7546
|
-
readonly ranker?: "auto" | "default_2024_08_21" | null | undefined;
|
|
7547
|
-
} | null | undefined;
|
|
7548
|
-
} | null | undefined;
|
|
7549
|
-
} | {
|
|
7550
|
-
readonly function: {
|
|
7551
|
-
readonly name: string;
|
|
7552
|
-
readonly description?: string | null | undefined;
|
|
7553
|
-
readonly parameters?: {
|
|
7554
|
-
readonly [x: string]: unknown;
|
|
7555
|
-
} | null | undefined;
|
|
7556
|
-
readonly strict?: boolean | null | undefined;
|
|
7557
|
-
};
|
|
7558
|
-
readonly type: "function";
|
|
7559
|
-
})[], never>>, {
|
|
7201
|
+
tools: S.optionalWith<S.filter<S.Array$<S.Union<[typeof AssistantToolsCode, typeof AssistantToolsFileSearch, typeof AssistantToolsFunction]>>>, {
|
|
7560
7202
|
nullable: true;
|
|
7561
7203
|
}>;
|
|
7562
7204
|
metadata: S.optionalWith<typeof Metadata, {
|
|
7563
7205
|
nullable: true;
|
|
7564
7206
|
}>;
|
|
7565
|
-
temperature: S.optionalWith<S.filter<S.
|
|
7207
|
+
temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
7566
7208
|
nullable: true;
|
|
7567
7209
|
default: () => 1;
|
|
7568
7210
|
}>;
|
|
7569
|
-
top_p: S.optionalWith<S.filter<S.
|
|
7211
|
+
top_p: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
7570
7212
|
nullable: true;
|
|
7571
7213
|
default: () => 1;
|
|
7572
7214
|
}>;
|
|
7573
7215
|
stream: S.optionalWith<typeof S.Boolean, {
|
|
7574
7216
|
nullable: true;
|
|
7575
7217
|
}>;
|
|
7576
|
-
max_prompt_tokens: S.optionalWith<S.filter<S.
|
|
7218
|
+
max_prompt_tokens: S.optionalWith<S.filter<typeof S.Int>, {
|
|
7577
7219
|
nullable: true;
|
|
7578
7220
|
}>;
|
|
7579
|
-
max_completion_tokens: S.optionalWith<S.filter<S.
|
|
7221
|
+
max_completion_tokens: S.optionalWith<S.filter<typeof S.Int>, {
|
|
7580
7222
|
nullable: true;
|
|
7581
7223
|
}>;
|
|
7582
7224
|
truncation_strategy: S.optionalWith<typeof TruncationObject, {
|
|
@@ -7610,69 +7252,27 @@ declare const CreateRunRequest_base: S.Class<CreateRunRequest, {
|
|
|
7610
7252
|
additional_messages: S.optionalWith<S.Array$<typeof CreateMessageRequest>, {
|
|
7611
7253
|
nullable: true;
|
|
7612
7254
|
}>;
|
|
7613
|
-
tools: S.optionalWith<S.filter<S.
|
|
7614
|
-
readonly type: "code_interpreter";
|
|
7615
|
-
} | {
|
|
7616
|
-
readonly type: "file_search";
|
|
7617
|
-
readonly file_search?: {
|
|
7618
|
-
readonly max_num_results?: number | undefined;
|
|
7619
|
-
readonly ranking_options?: {
|
|
7620
|
-
readonly ranker?: "auto" | "default_2024_08_21" | undefined;
|
|
7621
|
-
readonly score_threshold: number;
|
|
7622
|
-
} | undefined;
|
|
7623
|
-
} | undefined;
|
|
7624
|
-
} | {
|
|
7625
|
-
readonly function: {
|
|
7626
|
-
readonly description?: string | undefined;
|
|
7627
|
-
readonly name: string;
|
|
7628
|
-
readonly parameters?: {
|
|
7629
|
-
readonly [x: string]: unknown;
|
|
7630
|
-
} | undefined;
|
|
7631
|
-
readonly strict: boolean;
|
|
7632
|
-
};
|
|
7633
|
-
readonly type: "function";
|
|
7634
|
-
})[], readonly ({
|
|
7635
|
-
readonly type: "code_interpreter";
|
|
7636
|
-
} | {
|
|
7637
|
-
readonly type: "file_search";
|
|
7638
|
-
readonly file_search?: {
|
|
7639
|
-
readonly max_num_results?: number | null | undefined;
|
|
7640
|
-
readonly ranking_options?: {
|
|
7641
|
-
readonly score_threshold: number;
|
|
7642
|
-
readonly ranker?: "auto" | "default_2024_08_21" | null | undefined;
|
|
7643
|
-
} | null | undefined;
|
|
7644
|
-
} | null | undefined;
|
|
7645
|
-
} | {
|
|
7646
|
-
readonly function: {
|
|
7647
|
-
readonly name: string;
|
|
7648
|
-
readonly description?: string | null | undefined;
|
|
7649
|
-
readonly parameters?: {
|
|
7650
|
-
readonly [x: string]: unknown;
|
|
7651
|
-
} | null | undefined;
|
|
7652
|
-
readonly strict?: boolean | null | undefined;
|
|
7653
|
-
};
|
|
7654
|
-
readonly type: "function";
|
|
7655
|
-
})[], never>>, {
|
|
7255
|
+
tools: S.optionalWith<S.filter<S.Array$<S.Union<[typeof AssistantToolsCode, typeof AssistantToolsFileSearch, typeof AssistantToolsFunction]>>>, {
|
|
7656
7256
|
nullable: true;
|
|
7657
7257
|
}>;
|
|
7658
7258
|
metadata: S.optionalWith<typeof Metadata, {
|
|
7659
7259
|
nullable: true;
|
|
7660
7260
|
}>;
|
|
7661
|
-
temperature: S.optionalWith<S.filter<S.
|
|
7261
|
+
temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
7662
7262
|
nullable: true;
|
|
7663
7263
|
default: () => 1;
|
|
7664
7264
|
}>;
|
|
7665
|
-
top_p: S.optionalWith<S.filter<S.
|
|
7265
|
+
top_p: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
|
|
7666
7266
|
nullable: true;
|
|
7667
7267
|
default: () => 1;
|
|
7668
7268
|
}>;
|
|
7669
7269
|
stream: S.optionalWith<typeof S.Boolean, {
|
|
7670
7270
|
nullable: true;
|
|
7671
7271
|
}>;
|
|
7672
|
-
max_prompt_tokens: S.optionalWith<S.filter<S.
|
|
7272
|
+
max_prompt_tokens: S.optionalWith<S.filter<typeof S.Int>, {
|
|
7673
7273
|
nullable: true;
|
|
7674
7274
|
}>;
|
|
7675
|
-
max_completion_tokens: S.optionalWith<S.filter<S.
|
|
7275
|
+
max_completion_tokens: S.optionalWith<S.filter<typeof S.Int>, {
|
|
7676
7276
|
nullable: true;
|
|
7677
7277
|
}>;
|
|
7678
7278
|
truncation_strategy: S.optionalWith<typeof TruncationObject, {
|
|
@@ -7917,14 +7517,14 @@ export declare class RunStepDetailsToolCallsFileSearchRankingOptionsObjectRanker
|
|
|
7917
7517
|
}
|
|
7918
7518
|
declare const RunStepDetailsToolCallsFileSearchRankingOptionsObject_base: S.Struct<{
|
|
7919
7519
|
ranker: typeof RunStepDetailsToolCallsFileSearchRankingOptionsObjectRanker;
|
|
7920
|
-
score_threshold: S.filter<S.
|
|
7520
|
+
score_threshold: S.filter<S.filter<typeof S.Number>>;
|
|
7921
7521
|
}>;
|
|
7922
7522
|
export declare class RunStepDetailsToolCallsFileSearchRankingOptionsObject extends RunStepDetailsToolCallsFileSearchRankingOptionsObject_base {
|
|
7923
7523
|
}
|
|
7924
7524
|
declare const RunStepDetailsToolCallsFileSearchResultObject_base: S.Struct<{
|
|
7925
7525
|
file_id: typeof S.String;
|
|
7926
7526
|
file_name: typeof S.String;
|
|
7927
|
-
score: S.filter<S.
|
|
7527
|
+
score: S.filter<S.filter<typeof S.Number>>;
|
|
7928
7528
|
content: S.optionalWith<S.Array$<S.Struct<{
|
|
7929
7529
|
type: S.optionalWith<S.Literal<["text"]>, {
|
|
7930
7530
|
nullable: true;
|
|
@@ -8260,7 +7860,7 @@ export declare class VectorStoreExpirationAfterAnchor extends VectorStoreExpirat
|
|
|
8260
7860
|
}
|
|
8261
7861
|
declare const VectorStoreExpirationAfter_base: S.Struct<{
|
|
8262
7862
|
anchor: typeof VectorStoreExpirationAfterAnchor;
|
|
8263
|
-
days: S.filter<S.
|
|
7863
|
+
days: S.filter<S.filter<typeof S.Int>>;
|
|
8264
7864
|
}>;
|
|
8265
7865
|
export declare class VectorStoreExpirationAfter extends VectorStoreExpirationAfter_base {
|
|
8266
7866
|
}
|
|
@@ -8349,7 +7949,7 @@ declare const StaticChunkingStrategyRequestParamType_base: S.Literal<["static"]>
|
|
|
8349
7949
|
export declare class StaticChunkingStrategyRequestParamType extends StaticChunkingStrategyRequestParamType_base {
|
|
8350
7950
|
}
|
|
8351
7951
|
declare const StaticChunkingStrategy_base: S.Struct<{
|
|
8352
|
-
max_chunk_size_tokens: S.filter<S.
|
|
7952
|
+
max_chunk_size_tokens: S.filter<S.filter<typeof S.Int>>;
|
|
8353
7953
|
chunk_overlap_tokens: typeof S.Int;
|
|
8354
7954
|
}>;
|
|
8355
7955
|
export declare class StaticChunkingStrategy extends StaticChunkingStrategy_base {
|
|
@@ -8361,7 +7961,7 @@ declare const StaticChunkingStrategyRequestParam_base: S.Struct<{
|
|
|
8361
7961
|
export declare class StaticChunkingStrategyRequestParam extends StaticChunkingStrategyRequestParam_base {
|
|
8362
7962
|
}
|
|
8363
7963
|
declare const CreateVectorStoreRequest_base: S.Class<CreateVectorStoreRequest, {
|
|
8364
|
-
file_ids: S.optionalWith<S.filter<S.
|
|
7964
|
+
file_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
8365
7965
|
nullable: true;
|
|
8366
7966
|
}>;
|
|
8367
7967
|
name: S.optionalWith<typeof S.String, {
|
|
@@ -8377,7 +7977,7 @@ declare const CreateVectorStoreRequest_base: S.Class<CreateVectorStoreRequest, {
|
|
|
8377
7977
|
nullable: true;
|
|
8378
7978
|
}>;
|
|
8379
7979
|
}, S.Struct.Encoded<{
|
|
8380
|
-
file_ids: S.optionalWith<S.filter<S.
|
|
7980
|
+
file_ids: S.optionalWith<S.filter<S.Array$<typeof S.String>>, {
|
|
8381
7981
|
nullable: true;
|
|
8382
7982
|
}>;
|
|
8383
7983
|
name: S.optionalWith<typeof S.String, {
|
|
@@ -8470,12 +8070,12 @@ declare const ChunkingStrategyRequestParam_base: S.Record$<typeof S.String, type
|
|
|
8470
8070
|
export declare class ChunkingStrategyRequestParam extends ChunkingStrategyRequestParam_base {
|
|
8471
8071
|
}
|
|
8472
8072
|
declare const CreateVectorStoreFileBatchRequest_base: S.Class<CreateVectorStoreFileBatchRequest, {
|
|
8473
|
-
file_ids: S.filter<S.
|
|
8073
|
+
file_ids: S.filter<S.filter<S.Array$<typeof S.String>>>;
|
|
8474
8074
|
chunking_strategy: S.optionalWith<typeof ChunkingStrategyRequestParam, {
|
|
8475
8075
|
nullable: true;
|
|
8476
8076
|
}>;
|
|
8477
8077
|
}, S.Struct.Encoded<{
|
|
8478
|
-
file_ids: S.filter<S.
|
|
8078
|
+
file_ids: S.filter<S.filter<S.Array$<typeof S.String>>>;
|
|
8479
8079
|
chunking_strategy: S.optionalWith<typeof ChunkingStrategyRequestParam, {
|
|
8480
8080
|
nullable: true;
|
|
8481
8081
|
}>;
|