File tree Expand file tree Collapse file tree 5 files changed +55
-10
lines changed Expand file tree Collapse file tree 5 files changed +55
-10
lines changed Original file line number Diff line number Diff line change 11configured_endpoints : 64
2- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-ff436357b12348b7c1c930469332a79cd23ac6ec537e645c411893c42de42e57 .yml
2+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-c085faf70d6ff059fbe11b7b6b98123a612524cb9b8a6f649c99526e5b0b1bdb .yml
Original file line number Diff line number Diff line change @@ -459,7 +459,16 @@ export namespace Message {
459459 /**
460460 * The tools to add this file to.
461461 */
462- tools ?: Array < AssistantsAPI . CodeInterpreterTool | AssistantsAPI . FileSearchTool > ;
462+ tools ?: Array < AssistantsAPI . CodeInterpreterTool | Attachment . AssistantToolsFileSearchTypeOnly > ;
463+ }
464+
465+ export namespace Attachment {
466+ export interface AssistantToolsFileSearchTypeOnly {
467+ /**
468+ * The type of tool being defined: `file_search`
469+ */
470+ type : 'file_search' ;
471+ }
463472 }
464473
465474 /**
@@ -637,7 +646,16 @@ export namespace MessageCreateParams {
637646 /**
638647 * The tools to add this file to.
639648 */
640- tools ?: Array < AssistantsAPI . CodeInterpreterTool | AssistantsAPI . FileSearchTool > ;
649+ tools ?: Array < AssistantsAPI . CodeInterpreterTool | Attachment . FileSearch > ;
650+ }
651+
652+ export namespace Attachment {
653+ export interface FileSearch {
654+ /**
655+ * The type of tool being defined: `file_search`
656+ */
657+ type : 'file_search' ;
658+ }
641659 }
642660}
643661
Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ export interface Run {
278278
279279 /**
280280 * Whether to enable
281- * [parallel function calling](https://platform.openai.com/docs/guides/function-calling)
281+ * [parallel function calling](https://platform.openai.com/docs/guides/function-calling/parallel-function-calling )
282282 * during tool use.
283283 */
284284 parallel_tool_calls : boolean ;
@@ -568,7 +568,7 @@ export interface RunCreateParamsBase {
568568
569569 /**
570570 * Whether to enable
571- * [parallel function calling](https://platform.openai.com/docs/guides/function-calling)
571+ * [parallel function calling](https://platform.openai.com/docs/guides/function-calling/parallel-function-calling )
572572 * during tool use.
573573 */
574574 parallel_tool_calls ?: boolean ;
@@ -680,7 +680,16 @@ export namespace RunCreateParams {
680680 /**
681681 * The tools to add this file to.
682682 */
683- tools ?: Array < AssistantsAPI . CodeInterpreterTool | AssistantsAPI . FileSearchTool > ;
683+ tools ?: Array < AssistantsAPI . CodeInterpreterTool | Attachment . FileSearch > ;
684+ }
685+
686+ export namespace Attachment {
687+ export interface FileSearch {
688+ /**
689+ * The type of tool being defined: `file_search`
690+ */
691+ type : 'file_search' ;
692+ }
684693 }
685694 }
686695
Original file line number Diff line number Diff line change @@ -299,7 +299,16 @@ export namespace ThreadCreateParams {
299299 /**
300300 * The tools to add this file to.
301301 */
302- tools ?: Array < AssistantsAPI . CodeInterpreterTool | AssistantsAPI . FileSearchTool > ;
302+ tools ?: Array < AssistantsAPI . CodeInterpreterTool | Attachment . FileSearch > ;
303+ }
304+
305+ export namespace Attachment {
306+ export interface FileSearch {
307+ /**
308+ * The type of tool being defined: `file_search`
309+ */
310+ type : 'file_search' ;
311+ }
303312 }
304313 }
305314
@@ -538,7 +547,7 @@ export interface ThreadCreateAndRunParamsBase {
538547
539548 /**
540549 * Whether to enable
541- * [parallel function calling](https://platform.openai.com/docs/guides/function-calling)
550+ * [parallel function calling](https://platform.openai.com/docs/guides/function-calling/parallel-function-calling )
542551 * during tool use.
543552 */
544553 parallel_tool_calls ?: boolean ;
@@ -693,7 +702,16 @@ export namespace ThreadCreateAndRunParams {
693702 /**
694703 * The tools to add this file to.
695704 */
696- tools ?: Array < AssistantsAPI . CodeInterpreterTool | AssistantsAPI . FileSearchTool > ;
705+ tools ?: Array < AssistantsAPI . CodeInterpreterTool | Attachment . FileSearch > ;
706+ }
707+
708+ export namespace Attachment {
709+ export interface FileSearch {
710+ /**
711+ * The type of tool being defined: `file_search`
712+ */
713+ type : 'file_search' ;
714+ }
697715 }
698716 }
699717
Original file line number Diff line number Diff line change @@ -759,7 +759,7 @@ export interface ChatCompletionCreateParamsBase {
759759
760760 /**
761761 * Whether to enable
762- * [parallel function calling](https://platform.openai.com/docs/guides/function-calling)
762+ * [parallel function calling](https://platform.openai.com/docs/guides/function-calling/parallel-function-calling )
763763 * during tool use.
764764 */
765765 parallel_tool_calls ?: boolean ;
You can’t perform that action at this time.
0 commit comments