diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 999cfc01c..74af4d46e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.49.0" + ".": "4.49.1" } 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/CHANGELOG.md b/CHANGELOG.md index 8853010a9..d0f49f420 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 4.49.1 (2024-06-07) + +Full Changelog: [v4.49.0...v4.49.1](https://github.com/openai/openai-node/compare/v4.49.0...v4.49.1) + +### Bug Fixes + +* remove erroneous thread create argument ([#889](https://github.com/openai/openai-node/issues/889)) ([a9f898e](https://github.com/openai/openai-node/commit/a9f898ee109a0b35a672e41c6497f3a75eff7734)) + ## 4.49.0 (2024-06-06) Full Changelog: [v4.48.3...v4.49.0](https://github.com/openai/openai-node/compare/v4.48.3...v4.49.0) diff --git a/README.md b/README.md index acd36e4d1..61c0b2697 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ You can import in Deno via: ```ts -import OpenAI from 'https://deno.land/x/openai@v4.49.0/mod.ts'; +import OpenAI from 'https://deno.land/x/openai@v4.49.1/mod.ts'; ``` diff --git a/package.json b/package.json index 5a116918d..f75c903c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openai", - "version": "4.49.0", + "version": "4.49.1", "description": "The official TypeScript library for the OpenAI API", "author": "OpenAI ", "types": "dist/index.d.ts", diff --git a/scripts/build-deno b/scripts/build-deno index 460fead2b..73f54338d 100755 --- a/scripts/build-deno +++ b/scripts/build-deno @@ -16,7 +16,7 @@ This is a build produced from https://github.com/openai/openai-node – please g Usage: \`\`\`ts -import OpenAI from "https://deno.land/x/openai@v4.49.0/mod.ts"; +import OpenAI from "https://deno.land/x/openai@v4.49.1/mod.ts"; const client = new OpenAI(); \`\`\` 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; diff --git a/src/version.ts b/src/version.ts index bb12aad49..7df786cb2 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.49.0'; // x-release-please-version +export const VERSION = '4.49.1'; // x-release-please-version