@@ -441,8 +441,8 @@ export namespace AssistantStreamEvent {
441
441
442
442
/**
443
443
* Occurs when a
444
- * [run step](https://platform.openai.com/docs/api-reference/runs /step-object) is
445
- * created.
444
+ * [run step](https://platform.openai.com/docs/api-reference/run-steps /step-object)
445
+ * is created.
446
446
*/
447
447
export interface ThreadRunStepCreated {
448
448
/**
@@ -455,7 +455,7 @@ export namespace AssistantStreamEvent {
455
455
456
456
/**
457
457
* Occurs when a
458
- * [run step](https://platform.openai.com/docs/api-reference/runs /step-object)
458
+ * [run step](https://platform.openai.com/docs/api-reference/run-steps /step-object)
459
459
* moves to an `in_progress` state.
460
460
*/
461
461
export interface ThreadRunStepInProgress {
@@ -469,8 +469,8 @@ export namespace AssistantStreamEvent {
469
469
470
470
/**
471
471
* Occurs when parts of a
472
- * [run step](https://platform.openai.com/docs/api-reference/runs /step-object) are
473
- * being streamed.
472
+ * [run step](https://platform.openai.com/docs/api-reference/run-steps /step-object)
473
+ * are being streamed.
474
474
*/
475
475
export interface ThreadRunStepDelta {
476
476
/**
@@ -484,8 +484,8 @@ export namespace AssistantStreamEvent {
484
484
485
485
/**
486
486
* Occurs when a
487
- * [run step](https://platform.openai.com/docs/api-reference/runs /step-object) is
488
- * completed.
487
+ * [run step](https://platform.openai.com/docs/api-reference/run-steps /step-object)
488
+ * is completed.
489
489
*/
490
490
export interface ThreadRunStepCompleted {
491
491
/**
@@ -498,7 +498,7 @@ export namespace AssistantStreamEvent {
498
498
499
499
/**
500
500
* Occurs when a
501
- * [run step](https://platform.openai.com/docs/api-reference/runs /step-object)
501
+ * [run step](https://platform.openai.com/docs/api-reference/run-steps /step-object)
502
502
* fails.
503
503
*/
504
504
export interface ThreadRunStepFailed {
@@ -512,8 +512,8 @@ export namespace AssistantStreamEvent {
512
512
513
513
/**
514
514
* Occurs when a
515
- * [run step](https://platform.openai.com/docs/api-reference/runs /step-object) is
516
- * cancelled.
515
+ * [run step](https://platform.openai.com/docs/api-reference/run-steps /step-object)
516
+ * is cancelled.
517
517
*/
518
518
export interface ThreadRunStepCancelled {
519
519
/**
@@ -526,7 +526,7 @@ export namespace AssistantStreamEvent {
526
526
527
527
/**
528
528
* Occurs when a
529
- * [run step](https://platform.openai.com/docs/api-reference/runs /step-object)
529
+ * [run step](https://platform.openai.com/docs/api-reference/run-steps /step-object)
530
530
* expires.
531
531
*/
532
532
export interface ThreadRunStepExpired {
@@ -658,10 +658,42 @@ export namespace FileSearchTool {
658
658
*
659
659
* Note that the file search tool may output fewer than `max_num_results` results.
660
660
* See the
661
- * [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search/number-of-chunks-returned )
661
+ * [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search/customizing-file-search-settings )
662
662
* for more information.
663
663
*/
664
664
max_num_results ?: number ;
665
+
666
+ /**
667
+ * The ranking options for the file search.
668
+ *
669
+ * See the
670
+ * [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search/customizing-file-search-settings)
671
+ * for more information.
672
+ */
673
+ ranking_options ?: FileSearch . RankingOptions ;
674
+ }
675
+
676
+ export namespace FileSearch {
677
+ /**
678
+ * The ranking options for the file search.
679
+ *
680
+ * See the
681
+ * [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search/customizing-file-search-settings)
682
+ * for more information.
683
+ */
684
+ export interface RankingOptions {
685
+ /**
686
+ * The ranker to use for the file search. If not specified will use the `auto`
687
+ * ranker.
688
+ */
689
+ ranker ?: 'auto' | 'default_2024_08_21' ;
690
+
691
+ /**
692
+ * The score threshold for the file search. All values must be a floating point
693
+ * number between 0 and 1.
694
+ */
695
+ score_threshold ?: number ;
696
+ }
665
697
}
666
698
}
667
699
@@ -765,8 +797,8 @@ export namespace MessageStreamEvent {
765
797
766
798
/**
767
799
* Occurs when a
768
- * [run step](https://platform.openai.com/docs/api-reference/runs /step-object) is
769
- * created.
800
+ * [run step](https://platform.openai.com/docs/api-reference/run-steps /step-object)
801
+ * is created.
770
802
*/
771
803
export type RunStepStreamEvent =
772
804
| RunStepStreamEvent . ThreadRunStepCreated
@@ -780,8 +812,8 @@ export type RunStepStreamEvent =
780
812
export namespace RunStepStreamEvent {
781
813
/**
782
814
* Occurs when a
783
- * [run step](https://platform.openai.com/docs/api-reference/runs /step-object) is
784
- * created.
815
+ * [run step](https://platform.openai.com/docs/api-reference/run-steps /step-object)
816
+ * is created.
785
817
*/
786
818
export interface ThreadRunStepCreated {
787
819
/**
@@ -794,7 +826,7 @@ export namespace RunStepStreamEvent {
794
826
795
827
/**
796
828
* Occurs when a
797
- * [run step](https://platform.openai.com/docs/api-reference/runs /step-object)
829
+ * [run step](https://platform.openai.com/docs/api-reference/run-steps /step-object)
798
830
* moves to an `in_progress` state.
799
831
*/
800
832
export interface ThreadRunStepInProgress {
@@ -808,8 +840,8 @@ export namespace RunStepStreamEvent {
808
840
809
841
/**
810
842
* Occurs when parts of a
811
- * [run step](https://platform.openai.com/docs/api-reference/runs /step-object) are
812
- * being streamed.
843
+ * [run step](https://platform.openai.com/docs/api-reference/run-steps /step-object)
844
+ * are being streamed.
813
845
*/
814
846
export interface ThreadRunStepDelta {
815
847
/**
@@ -823,8 +855,8 @@ export namespace RunStepStreamEvent {
823
855
824
856
/**
825
857
* Occurs when a
826
- * [run step](https://platform.openai.com/docs/api-reference/runs /step-object) is
827
- * completed.
858
+ * [run step](https://platform.openai.com/docs/api-reference/run-steps /step-object)
859
+ * is completed.
828
860
*/
829
861
export interface ThreadRunStepCompleted {
830
862
/**
@@ -837,7 +869,7 @@ export namespace RunStepStreamEvent {
837
869
838
870
/**
839
871
* Occurs when a
840
- * [run step](https://platform.openai.com/docs/api-reference/runs /step-object)
872
+ * [run step](https://platform.openai.com/docs/api-reference/run-steps /step-object)
841
873
* fails.
842
874
*/
843
875
export interface ThreadRunStepFailed {
@@ -851,8 +883,8 @@ export namespace RunStepStreamEvent {
851
883
852
884
/**
853
885
* Occurs when a
854
- * [run step](https://platform.openai.com/docs/api-reference/runs /step-object) is
855
- * cancelled.
886
+ * [run step](https://platform.openai.com/docs/api-reference/run-steps /step-object)
887
+ * is cancelled.
856
888
*/
857
889
export interface ThreadRunStepCancelled {
858
890
/**
@@ -865,7 +897,7 @@ export namespace RunStepStreamEvent {
865
897
866
898
/**
867
899
* Occurs when a
868
- * [run step](https://platform.openai.com/docs/api-reference/runs /step-object)
900
+ * [run step](https://platform.openai.com/docs/api-reference/run-steps /step-object)
869
901
* expires.
870
902
*/
871
903
export interface ThreadRunStepExpired {
0 commit comments