diff --git a/.stats.yml b/.stats.yml index eb81a249f..a6c08f499 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 64 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-ff436357b12348b7c1c930469332a79cd23ac6ec537e645c411893c42de42e57.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-c085faf70d6ff059fbe11b7b6b98123a612524cb9b8a6f649c99526e5b0b1bdb.yml diff --git a/src/resources/beta/threads/messages.ts b/src/resources/beta/threads/messages.ts index a5307edbe..4bbdc7426 100644 --- a/src/resources/beta/threads/messages.ts +++ b/src/resources/beta/threads/messages.ts @@ -459,7 +459,16 @@ export namespace Message { /** * The tools to add this file to. */ - tools?: Array; + tools?: Array; + } + + export namespace Attachment { + export interface AssistantToolsFileSearchTypeOnly { + /** + * The type of tool being defined: `file_search` + */ + type: 'file_search'; + } } /** @@ -637,7 +646,16 @@ export namespace MessageCreateParams { /** * The tools to add this file to. */ - tools?: Array; + tools?: Array; + } + + export namespace Attachment { + export interface FileSearch { + /** + * The type of tool being defined: `file_search` + */ + type: 'file_search'; + } } } diff --git a/src/resources/beta/threads/runs/runs.ts b/src/resources/beta/threads/runs/runs.ts index ed5a5ff68..0cc7e35d1 100644 --- a/src/resources/beta/threads/runs/runs.ts +++ b/src/resources/beta/threads/runs/runs.ts @@ -404,7 +404,7 @@ export interface Run { /** * Whether to enable - * [parallel function calling](https://platform.openai.com/docs/guides/function-calling) + * [parallel function calling](https://platform.openai.com/docs/guides/function-calling/parallel-function-calling) * during tool use. */ parallel_tool_calls: boolean; @@ -694,7 +694,7 @@ export interface RunCreateParamsBase { /** * Whether to enable - * [parallel function calling](https://platform.openai.com/docs/guides/function-calling) + * [parallel function calling](https://platform.openai.com/docs/guides/function-calling/parallel-function-calling) * during tool use. */ parallel_tool_calls?: boolean; @@ -806,7 +806,16 @@ export namespace RunCreateParams { /** * The tools to add this file to. */ - tools?: Array; + tools?: Array; + } + + export namespace Attachment { + export interface FileSearch { + /** + * The type of tool being defined: `file_search` + */ + type: 'file_search'; + } } } diff --git a/src/resources/beta/threads/threads.ts b/src/resources/beta/threads/threads.ts index 6978e6eb5..441bbe41c 100644 --- a/src/resources/beta/threads/threads.ts +++ b/src/resources/beta/threads/threads.ts @@ -323,7 +323,16 @@ export namespace ThreadCreateParams { /** * The tools to add this file to. */ - tools?: Array; + tools?: Array; + } + + export namespace Attachment { + export interface FileSearch { + /** + * The type of tool being defined: `file_search` + */ + type: 'file_search'; + } } } @@ -562,7 +571,7 @@ export interface ThreadCreateAndRunParamsBase { /** * Whether to enable - * [parallel function calling](https://platform.openai.com/docs/guides/function-calling) + * [parallel function calling](https://platform.openai.com/docs/guides/function-calling/parallel-function-calling) * during tool use. */ parallel_tool_calls?: boolean; @@ -717,7 +726,16 @@ export namespace ThreadCreateAndRunParams { /** * The tools to add this file to. */ - tools?: Array; + tools?: Array; + } + + export namespace Attachment { + export interface FileSearch { + /** + * The type of tool being defined: `file_search` + */ + type: 'file_search'; + } } } diff --git a/src/resources/chat/completions.ts b/src/resources/chat/completions.ts index eeaab3d70..b7c301f4e 100644 --- a/src/resources/chat/completions.ts +++ b/src/resources/chat/completions.ts @@ -759,7 +759,7 @@ export interface ChatCompletionCreateParamsBase { /** * Whether to enable - * [parallel function calling](https://platform.openai.com/docs/guides/function-calling) + * [parallel function calling](https://platform.openai.com/docs/guides/function-calling/parallel-function-calling) * during tool use. */ parallel_tool_calls?: boolean;