From 399f9710f9a1406fe2dd048a1d26418c0de7ff0c Mon Sep 17 00:00:00 2001 From: Matt Granmoe Date: Mon, 16 Sep 2024 03:21:14 -0500 Subject: [PATCH 1/3] fix(runTools): correct request options type (#1073) --- src/resources/beta/chat/completions.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/resources/beta/chat/completions.ts b/src/resources/beta/chat/completions.ts index 113de4026..03ea0aab5 100644 --- a/src/resources/beta/chat/completions.ts +++ b/src/resources/beta/chat/completions.ts @@ -21,6 +21,7 @@ export { ParsingFunction, ParsingToolFunction, } from '../../../lib/RunnableFunction'; +import { RunnerOptions } from '../../../lib/AbstractChatCompletionRunner'; import { ChatCompletionToolRunnerParams } from '../../../lib/ChatCompletionRunner'; export { ChatCompletionToolRunnerParams } from '../../../lib/ChatCompletionRunner'; import { ChatCompletionStreamingToolRunnerParams } from '../../../lib/ChatCompletionStreamingRunner'; @@ -119,19 +120,19 @@ export class Completions extends APIResource { runTools< Params extends ChatCompletionToolRunnerParams, ParsedT = ExtractParsedContentFromParams, - >(body: Params, options?: Core.RequestOptions): ChatCompletionRunner; + >(body: Params, options?: RunnerOptions): ChatCompletionRunner; runTools< Params extends ChatCompletionStreamingToolRunnerParams, ParsedT = ExtractParsedContentFromParams, - >(body: Params, options?: Core.RequestOptions): ChatCompletionStreamingRunner; + >(body: Params, options?: RunnerOptions): ChatCompletionStreamingRunner; runTools< Params extends ChatCompletionToolRunnerParams | ChatCompletionStreamingToolRunnerParams, ParsedT = ExtractParsedContentFromParams, >( body: Params, - options?: Core.RequestOptions, + options?: RunnerOptions, ): ChatCompletionRunner | ChatCompletionStreamingRunner { if (body.stream) { return ChatCompletionStreamingRunner.runTools( From 20f1bcce2b5d03c5185989212a5c5271a8d4209c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Sep 2024 12:23:48 +0000 Subject: [PATCH 2/3] chore(internal): update spec link (#1076) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index de3167f3a..2fc39385e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 68 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-501122aa32adaa2abb3d4487880ab9cdf2141addce2e6c3d1bd9bb6b44c318a8.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-ff407aa10917e62f2b0c12d1ad2c4f1258ed083bd45753c70eaaf5b1cf8356ae.yml From f4a901a663bcd4cb5e2733816c50bc6eba495db3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Sep 2024 12:24:36 +0000 Subject: [PATCH 3/3] release: 4.61.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ README.md | 2 +- package.json | 2 +- scripts/build-deno | 2 +- src/version.ts | 2 +- 6 files changed, 18 insertions(+), 5 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e284d59ae..8f32b4daf 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.61.0" + ".": "4.61.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 0829a7151..1fc81d615 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 4.61.1 (2024-09-16) + +Full Changelog: [v4.61.0...v4.61.1](https://github.com/openai/openai-node/compare/v4.61.0...v4.61.1) + +### Bug Fixes + +* **runTools:** correct request options type ([#1073](https://github.com/openai/openai-node/issues/1073)) ([399f971](https://github.com/openai/openai-node/commit/399f9710f9a1406fe2dd048a1d26418c0de7ff0c)) + + +### Chores + +* **internal:** update spec link ([#1076](https://github.com/openai/openai-node/issues/1076)) ([20f1bcc](https://github.com/openai/openai-node/commit/20f1bcce2b5d03c5185989212a5c5271a8d4209c)) + ## 4.61.0 (2024-09-13) Full Changelog: [v4.60.1...v4.61.0](https://github.com/openai/openai-node/compare/v4.60.1...v4.61.0) diff --git a/README.md b/README.md index 8811d8ab4..03ee259ee 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.61.0/mod.ts'; +import OpenAI from 'https://deno.land/x/openai@v4.61.1/mod.ts'; ``` diff --git a/package.json b/package.json index 42b1d795a..86e594c2c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openai", - "version": "4.61.0", + "version": "4.61.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 a64186518..641b61c02 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.61.0/mod.ts"; +import OpenAI from "https://deno.land/x/openai@v4.61.1/mod.ts"; const client = new OpenAI(); \`\`\` diff --git a/src/version.ts b/src/version.ts index 150565572..6c1e0cb8e 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.61.0'; // x-release-please-version +export const VERSION = '4.61.1'; // x-release-please-version