@@ -151,11 +151,11 @@ export interface Assistant {
151151 * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
152152 *
153153 * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
154- * Outputs which guarantees the model will match your supplied JSON schema. Learn
155- * more in the
154+ * Outputs which ensures the model will match your supplied JSON schema. Learn more
155+ * in the
156156 * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
157157 *
158- * Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
158+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the
159159 * message the model generates is valid JSON.
160160 *
161161 * **Important:** when using JSON mode, you **must** also instruct the model to
@@ -665,7 +665,8 @@ export namespace FileSearchTool {
665665 max_num_results ?: number ;
666666
667667 /**
668- * The ranking options for the file search.
668+ * The ranking options for the file search. If not specified, the file search tool
669+ * will use the `auto` ranker and a score_threshold of 0.
669670 *
670671 * See the
671672 * [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search/customizing-file-search-settings)
@@ -676,24 +677,25 @@ export namespace FileSearchTool {
676677
677678 export namespace FileSearch {
678679 /**
679- * The ranking options for the file search.
680+ * The ranking options for the file search. If not specified, the file search tool
681+ * will use the `auto` ranker and a score_threshold of 0.
680682 *
681683 * See the
682684 * [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search/customizing-file-search-settings)
683685 * for more information.
684686 */
685687 export interface RankingOptions {
686688 /**
687- * The ranker to use for the file search. If not specified will use the `auto`
688- * ranker .
689+ * The score threshold for the file search. All values must be a floating point
690+ * number between 0 and 1 .
689691 */
690- ranker ?: 'auto' | 'default_2024_08_21' ;
692+ score_threshold : number ;
691693
692694 /**
693- * The score threshold for the file search. All values must be a floating point
694- * number between 0 and 1 .
695+ * The ranker to use for the file search. If not specified will use the `auto`
696+ * ranker .
695697 */
696- score_threshold ?: number ;
698+ ranker ?: 'auto' | 'default_2024_08_21' ;
697699 }
698700 }
699701}
@@ -1125,11 +1127,11 @@ export interface AssistantCreateParams {
11251127 * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
11261128 *
11271129 * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
1128- * Outputs which guarantees the model will match your supplied JSON schema. Learn
1129- * more in the
1130+ * Outputs which ensures the model will match your supplied JSON schema. Learn more
1131+ * in the
11301132 * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
11311133 *
1132- * Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
1134+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the
11331135 * message the model generates is valid JSON.
11341136 *
11351137 * **Important:** when using JSON mode, you **must** also instruct the model to
@@ -1283,11 +1285,11 @@ export interface AssistantUpdateParams {
12831285 * and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
12841286 *
12851287 * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
1286- * Outputs which guarantees the model will match your supplied JSON schema. Learn
1287- * more in the
1288+ * Outputs which ensures the model will match your supplied JSON schema. Learn more
1289+ * in the
12881290 * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
12891291 *
1290- * Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
1292+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the
12911293 * message the model generates is valid JSON.
12921294 *
12931295 * **Important:** when using JSON mode, you **must** also instruct the model to
0 commit comments