Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.48.3"
".": "4.49.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 64
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-0577fd0d08da6b867b002a5accd45f7116ef91c4940b41cf45dc479938c77163.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-ff436357b12348b7c1c930469332a79cd23ac6ec537e645c411893c42de42e57.yml
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 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)

### Features

* **api:** updates ([#887](https://github.com/openai/openai-node/issues/887)) ([359eeb3](https://github.com/openai/openai-node/commit/359eeb33b08b371451f216d1e21dd3334ec15f36))

## 4.48.3 (2024-06-06)

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

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

<!-- x-release-please-end -->
Expand Down
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.48.3",
"version": "4.49.0",
"description": "The official TypeScript library for the OpenAI API",
"author": "OpenAI <support@openai.com>",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-deno
Original file line number Diff line number Diff line change
Expand Up @@ -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.48.3/mod.ts";
import OpenAI from "https://deno.land/x/openai@v4.49.0/mod.ts";

const client = new OpenAI();
\`\`\`
Expand Down
14 changes: 14 additions & 0 deletions src/resources/beta/threads/runs/runs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,13 @@ export interface Run {
*/
object: 'thread.run';

/**
* Whether to enable
* [parallel function calling](https://platform.openai.com/docs/guides/function-calling)
* during tool use.
*/
parallel_tool_calls: boolean;

/**
* Details on the action required to continue the run. Will be `null` if no action
* is required.
Expand Down Expand Up @@ -685,6 +692,13 @@ export interface RunCreateParamsBase {
| 'gpt-3.5-turbo-16k-0613'
| null;

/**
* Whether to enable
* [parallel function calling](https://platform.openai.com/docs/guides/function-calling)
* during tool use.
*/
parallel_tool_calls?: boolean;

/**
* Specifies the format that the model must output. Compatible with
* [GPT-4o](https://platform.openai.com/docs/models/gpt-4o),
Expand Down
7 changes: 7 additions & 0 deletions src/resources/beta/threads/threads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,13 @@ export interface ThreadCreateAndRunParamsBase {
| 'gpt-3.5-turbo-16k-0613'
| null;

/**
* Whether to enable
* [parallel function calling](https://platform.openai.com/docs/guides/function-calling)
* during tool use.
*/
parallel_tool_calls?: boolean;

/**
* Specifies the format that the model must output. Compatible with
* [GPT-4o](https://platform.openai.com/docs/models/gpt-4o),
Expand Down
7 changes: 7 additions & 0 deletions src/resources/chat/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,13 @@ export interface ChatCompletionCreateParamsBase {
*/
n?: number | null;

/**
* Whether to enable
* [parallel function calling](https://platform.openai.com/docs/guides/function-calling)
* during tool use.
*/
parallel_tool_calls?: boolean;

/**
* Number between -2.0 and 2.0. Positive values penalize new tokens based on
* whether they appear in the text so far, increasing the model's likelihood to
Expand Down
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.48.3'; // x-release-please-version
export const VERSION = '4.49.0'; // x-release-please-version
1 change: 1 addition & 0 deletions tests/api-resources/beta/threads/runs/runs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ describe('resource runs', () => {
max_prompt_tokens: 256,
metadata: {},
model: 'gpt-4-turbo',
parallel_tool_calls: true,
response_format: 'none',
stream: false,
temperature: 1,
Expand Down
1 change: 1 addition & 0 deletions tests/api-resources/beta/threads/threads.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ describe('resource threads', () => {
max_prompt_tokens: 256,
metadata: {},
model: 'gpt-4-turbo',
parallel_tool_calls: true,
response_format: 'none',
stream: false,
temperature: 1,
Expand Down
1 change: 1 addition & 0 deletions tests/api-resources/chat/completions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ describe('resource completions', () => {
logprobs: true,
max_tokens: 0,
n: 1,
parallel_tool_calls: true,
presence_penalty: -2,
response_format: { type: 'json_object' },
seed: -9223372036854776000,
Expand Down