@@ -151,11 +151,11 @@ export interface Assistant {
151
151
* and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
152
152
*
153
153
* 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
156
156
* [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
157
157
*
158
- * Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
158
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the
159
159
* message the model generates is valid JSON.
160
160
*
161
161
* **Important:** when using JSON mode, you **must** also instruct the model to
@@ -665,7 +665,8 @@ export namespace FileSearchTool {
665
665
max_num_results ?: number ;
666
666
667
667
/**
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.
669
670
*
670
671
* See the
671
672
* [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search/customizing-file-search-settings)
@@ -676,24 +677,25 @@ export namespace FileSearchTool {
676
677
677
678
export namespace FileSearch {
678
679
/**
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.
680
682
*
681
683
* See the
682
684
* [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search/customizing-file-search-settings)
683
685
* for more information.
684
686
*/
685
687
export interface RankingOptions {
686
688
/**
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 .
689
691
*/
690
- ranker ?: 'auto' | 'default_2024_08_21' ;
692
+ score_threshold : number ;
691
693
692
694
/**
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 .
695
697
*/
696
- score_threshold ?: number ;
698
+ ranker ?: 'auto' | 'default_2024_08_21' ;
697
699
}
698
700
}
699
701
}
@@ -1125,11 +1127,11 @@ export interface AssistantCreateParams {
1125
1127
* and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
1126
1128
*
1127
1129
* 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
1130
1132
* [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
1131
1133
*
1132
- * Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
1134
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the
1133
1135
* message the model generates is valid JSON.
1134
1136
*
1135
1137
* **Important:** when using JSON mode, you **must** also instruct the model to
@@ -1283,11 +1285,11 @@ export interface AssistantUpdateParams {
1283
1285
* and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
1284
1286
*
1285
1287
* 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
1288
1290
* [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
1289
1291
*
1290
- * Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
1292
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the
1291
1293
* message the model generates is valid JSON.
1292
1294
*
1293
1295
* **Important:** when using JSON mode, you **must** also instruct the model to
0 commit comments