Skip to content

Commit b7d5408

Browse files
Merge pull request #1527 from openai/release-please--branches--master--changes--next--components--openai
release: 5.1.0
2 parents aaa859e + b6ee9f3 commit b7d5408

13 files changed

+183
-11
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "5.0.2"
2+
".": "5.1.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 111
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-2bcc845d8635bf93ddcf9ee723af4d7928248412a417bee5fc10d863a1e13867.yml
3-
openapi_spec_hash: 865230cb3abeb01bd85de05891af23c4
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-0205acb1015d29b2312a48526734c0399f93026d4fe2dff5c7768f566e333fd2.yml
3+
openapi_spec_hash: 1772cc9056c2f6dfb2a4e9cb77ee6343
44
config_hash: ed1e6b3c5f93d12b80d31167f55c557c

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## 5.1.0 (2025-06-03)
4+
5+
Full Changelog: [v5.0.2...v5.1.0](https://github.com/openai/openai-node/compare/v5.0.2...v5.1.0)
6+
7+
### Features
8+
9+
* **api:** add new realtime and audio models, realtime session options ([1219f09](https://github.com/openai/openai-node/commit/1219f090b02b8d53f29abf5a0e7564af0f9f68fc))
10+
11+
12+
### Chores
13+
14+
* adjust eslint.config.mjs ignore pattern ([9b5c898](https://github.com/openai/openai-node/commit/9b5c898fe5099859252d3c3fd62010d6aa552fef))
15+
* **api:** update type names ([7c296d6](https://github.com/openai/openai-node/commit/7c296d62bbde52ec84e3af78ed12f1cd196f9d52))
16+
317
## 5.0.2 (2025-06-02)
418

519
Full Changelog: [v5.0.1...v5.0.2](https://github.com/openai/openai-node/compare/v5.0.1...v5.0.2)

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default tseslint.config(
1010
parserOptions: { sourceType: 'module' },
1111
},
1212
files: ['**/*.ts', '**/*.mts', '**/*.cts', '**/*.js', '**/*.mjs', '**/*.cjs'],
13-
ignores: ['dist/**', 'ecosystem-tests/**'],
13+
ignores: ['dist/', 'ecosystem-tests/'],
1414
plugins: {
1515
'@typescript-eslint': tseslint.plugin,
1616
'unused-imports': unusedImports,

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openai/openai",
3-
"version": "5.0.2",
3+
"version": "5.1.0",
44
"exports": {
55
".": "./index.ts",
66
"./helpers/zod": "./helpers/zod.ts",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openai",
3-
"version": "5.0.2",
3+
"version": "5.1.0",
44
"description": "The official TypeScript library for the OpenAI API",
55
"author": "OpenAI <[email protected]>",
66
"types": "dist/index.d.ts",

src/lib/AssistantStream.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import {
1818
RunSubmitToolOutputsParamsBase,
1919
RunSubmitToolOutputsParamsStreaming,
2020
} from '../resources/beta/threads/runs/runs';
21-
import { type ReadableStream } from '../internal/shim-types';
2221
import { Stream } from '../streaming';
2322
import { APIUserAbortError, OpenAIError } from '../error';
2423
import {

src/lib/ChatCompletionStream.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import {
1717
AbstractChatCompletionRunner,
1818
type AbstractChatCompletionRunnerEvents,
1919
} from './AbstractChatCompletionRunner';
20-
import { type ReadableStream } from '../internal/shim-types';
2120
import { Stream } from '../streaming';
2221
import OpenAI from '../index';
2322
import { ParsedChatCompletion } from '../resources/chat/completions';

src/lib/ChatCompletionStreamingRunner.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
type ChatCompletionCreateParamsStreaming,
44
} from '../resources/chat/completions';
55
import { RunnerOptions, type AbstractChatCompletionRunnerEvents } from './AbstractChatCompletionRunner';
6-
import { type ReadableStream } from '../internal/shim-types';
76
import { RunnableTools, type BaseFunctionsArgs } from './RunnableFunction';
87
import { ChatCompletionSnapshot, ChatCompletionStream } from './ChatCompletionStream';
98
import OpenAI from '../index';

src/resources/beta/realtime/realtime.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2162,6 +2162,7 @@ export namespace SessionUpdateEvent {
21622162
| 'gpt-4o-realtime-preview'
21632163
| 'gpt-4o-realtime-preview-2024-10-01'
21642164
| 'gpt-4o-realtime-preview-2024-12-17'
2165+
| 'gpt-4o-realtime-preview-2025-06-03'
21652166
| 'gpt-4o-mini-realtime-preview'
21662167
| 'gpt-4o-mini-realtime-preview-2024-12-17';
21672168

@@ -2171,6 +2172,13 @@ export namespace SessionUpdateEvent {
21712172
*/
21722173
output_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw';
21732174

2175+
/**
2176+
* The speed of the model's spoken response. 1.0 is the default speed. 0.25 is the
2177+
* minimum speed. 1.5 is the maximum speed. This value can only be changed in
2178+
* between model turns, not while a response is in progress.
2179+
*/
2180+
speed?: number;
2181+
21742182
/**
21752183
* Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a
21762184
* temperature of 0.8 is highly recommended for best performance.
@@ -2188,6 +2196,15 @@ export namespace SessionUpdateEvent {
21882196
*/
21892197
tools?: Array<Session.Tool>;
21902198

2199+
/**
2200+
* Configuration options for tracing. Set to null to disable tracing. Once tracing
2201+
* is enabled for a session, the configuration cannot be modified.
2202+
*
2203+
* `auto` will create a trace for the session with default values for the workflow
2204+
* name, group id, and metadata.
2205+
*/
2206+
tracing?: 'auto' | Session.TracingConfiguration;
2207+
21912208
/**
21922209
* Configuration for turn detection, ether Server VAD or Semantic VAD. This can be
21932210
* set to `null` to turn off, in which case the client must manually trigger model
@@ -2326,6 +2343,29 @@ export namespace SessionUpdateEvent {
23262343
type?: 'function';
23272344
}
23282345

2346+
/**
2347+
* Granular configuration for tracing.
2348+
*/
2349+
export interface TracingConfiguration {
2350+
/**
2351+
* The group id to attach to this trace to enable filtering and grouping in the
2352+
* traces dashboard.
2353+
*/
2354+
group_id?: string;
2355+
2356+
/**
2357+
* The arbitrary metadata to attach to this trace to enable filtering in the traces
2358+
* dashboard.
2359+
*/
2360+
metadata?: unknown;
2361+
2362+
/**
2363+
* The name of the workflow to attach to this trace. This is used to name the trace
2364+
* in the traces dashboard.
2365+
*/
2366+
workflow_name?: string;
2367+
}
2368+
23292369
/**
23302370
* Configuration for turn detection, ether Server VAD or Semantic VAD. This can be
23312371
* set to `null` to turn off, in which case the client must manually trigger model

0 commit comments

Comments
 (0)