@@ -441,8 +441,8 @@ export namespace AssistantStreamEvent {
441441
442442 /**
443443 * 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.
446446 */
447447 export interface ThreadRunStepCreated {
448448 /**
@@ -455,7 +455,7 @@ export namespace AssistantStreamEvent {
455455
456456 /**
457457 * 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)
459459 * moves to an `in_progress` state.
460460 */
461461 export interface ThreadRunStepInProgress {
@@ -469,8 +469,8 @@ export namespace AssistantStreamEvent {
469469
470470 /**
471471 * 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.
474474 */
475475 export interface ThreadRunStepDelta {
476476 /**
@@ -484,8 +484,8 @@ export namespace AssistantStreamEvent {
484484
485485 /**
486486 * 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.
489489 */
490490 export interface ThreadRunStepCompleted {
491491 /**
@@ -498,7 +498,7 @@ export namespace AssistantStreamEvent {
498498
499499 /**
500500 * 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)
502502 * fails.
503503 */
504504 export interface ThreadRunStepFailed {
@@ -512,8 +512,8 @@ export namespace AssistantStreamEvent {
512512
513513 /**
514514 * 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.
517517 */
518518 export interface ThreadRunStepCancelled {
519519 /**
@@ -526,7 +526,7 @@ export namespace AssistantStreamEvent {
526526
527527 /**
528528 * 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)
530530 * expires.
531531 */
532532 export interface ThreadRunStepExpired {
@@ -658,10 +658,42 @@ export namespace FileSearchTool {
658658 *
659659 * Note that the file search tool may output fewer than `max_num_results` results.
660660 * 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 )
662662 * for more information.
663663 */
664664 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+ }
665697 }
666698}
667699
@@ -765,8 +797,8 @@ export namespace MessageStreamEvent {
765797
766798/**
767799 * 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.
770802 */
771803export type RunStepStreamEvent =
772804 | RunStepStreamEvent . ThreadRunStepCreated
@@ -780,8 +812,8 @@ export type RunStepStreamEvent =
780812export namespace RunStepStreamEvent {
781813 /**
782814 * 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.
785817 */
786818 export interface ThreadRunStepCreated {
787819 /**
@@ -794,7 +826,7 @@ export namespace RunStepStreamEvent {
794826
795827 /**
796828 * 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)
798830 * moves to an `in_progress` state.
799831 */
800832 export interface ThreadRunStepInProgress {
@@ -808,8 +840,8 @@ export namespace RunStepStreamEvent {
808840
809841 /**
810842 * 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.
813845 */
814846 export interface ThreadRunStepDelta {
815847 /**
@@ -823,8 +855,8 @@ export namespace RunStepStreamEvent {
823855
824856 /**
825857 * 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.
828860 */
829861 export interface ThreadRunStepCompleted {
830862 /**
@@ -837,7 +869,7 @@ export namespace RunStepStreamEvent {
837869
838870 /**
839871 * 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)
841873 * fails.
842874 */
843875 export interface ThreadRunStepFailed {
@@ -851,8 +883,8 @@ export namespace RunStepStreamEvent {
851883
852884 /**
853885 * 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.
856888 */
857889 export interface ThreadRunStepCancelled {
858890 /**
@@ -865,7 +897,7 @@ export namespace RunStepStreamEvent {
865897
866898 /**
867899 * 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)
869901 * expires.
870902 */
871903 export interface ThreadRunStepExpired {
0 commit comments