Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: openai/openai-node
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.24.3
Choose a base ref
...
head repository: openai/openai-node
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.24.4
Choose a head ref
  • 2 commits
  • 7 files changed
  • 1 contributor

Commits on Jan 12, 2024

  1. Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    b78b430 View commit details
  2. release: 4.24.4

    stainless-bot committed Jan 12, 2024

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    2a1731a View commit details
Showing with 15 additions and 7 deletions.
  1. +1 −1 .release-please-manifest.json
  2. +8 −0 CHANGELOG.md
  3. +1 −1 README.md
  4. +1 −1 build-deno
  5. +1 −1 package.json
  6. +2 −2 src/core.ts
  7. +1 −1 src/version.ts
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "4.24.3"
".": "4.24.4"
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 4.24.4 (2024-01-11)

Full Changelog: [v4.24.3...v4.24.4](https://github.com/openai/openai-node/compare/v4.24.3...v4.24.4)

### Chores

* **internal:** narrow type into stringifyQuery ([#619](https://github.com/openai/openai-node/issues/619)) ([88fb9cd](https://github.com/openai/openai-node/commit/88fb9cd1bb415850b0b4868944617282d0b92e2a))

## 4.24.3 (2024-01-10)

Full Changelog: [v4.24.2...v4.24.3](https://github.com/openai/openai-node/compare/v4.24.2...v4.24.3)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ You can import in Deno via:
<!-- x-release-please-start-version -->

```ts
import OpenAI from 'https://deno.land/x/openai@v4.24.3/mod.ts';
import OpenAI from 'https://deno.land/x/openai@v4.24.4/mod.ts';
```

<!-- x-release-please-end -->
2 changes: 1 addition & 1 deletion build-deno
Original file line number Diff line number Diff line change
@@ -14,7 +14,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.24.3/mod.ts";
import OpenAI from "https://deno.land/x/openai@v4.24.4/mod.ts";

const client = new OpenAI();
\`\`\`
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openai",
"version": "4.24.3",
"version": "4.24.4",
"description": "The official TypeScript library for the OpenAI API",
"author": "OpenAI <support@openai.com>",
"types": "dist/index.d.ts",
4 changes: 2 additions & 2 deletions src/core.ts
Original file line number Diff line number Diff line change
@@ -452,8 +452,8 @@ export abstract class APIClient {
query = { ...defaultQuery, ...query } as Req;
}

if (query) {
url.search = this.stringifyQuery(query);
if (typeof query === 'object' && query && !Array.isArray(query)) {
url.search = this.stringifyQuery(query as Record<string, unknown>);
}

return url.toString();
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '4.24.3'; // x-release-please-version
export const VERSION = '4.24.4'; // x-release-please-version