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 @@
{
".": "5.9.1"
".": "5.9.2"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 111
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-82fd6fcb3eea81cbbe09a6f831c82219f1251e1b76474b4c41f424bf277e6a71.yml
openapi_spec_hash: c8d54bd1ae3d704f6b6f72ffd2f876d8
config_hash: 3315d58b60faf63b1bee251b81837cda
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-c7dacca97e28bceff218684bb429481a70aa47aadad983ed9178bfda75ff4cd2.yml
openapi_spec_hash: 28eb1bb901ca10d2e37db4606d2bcfa7
config_hash: 167ad0ca036d0f023c78e6496b4311e8
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 5.9.2 (2025-07-15)

Full Changelog: [v5.9.1...v5.9.2](https://github.com/openai/openai-node/compare/v5.9.1...v5.9.2)

### Chores

* **api:** update realtime specs ([4a20a3d](https://github.com/openai/openai-node/commit/4a20a3da8319667540a7b120f0f94e253420058e))
* **internal:** version bump ([103e8de](https://github.com/openai/openai-node/commit/103e8def71408724fb37104cfcb9419e01022f24))

## 5.9.1 (2025-07-15)

Full Changelog: [v5.9.0...v5.9.1](https://github.com/openai/openai-node/compare/v5.9.0...v5.9.1)
Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openai/openai",
"version": "5.9.1",
"version": "5.9.2",
"exports": {
".": "./index.ts",
"./helpers/zod": "./helpers/zod.ts",
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": "5.9.1",
"version": "5.9.2",
"description": "The official TypeScript library for the OpenAI API",
"author": "OpenAI <support@openai.com>",
"types": "dist/index.d.ts",
Expand Down
40 changes: 36 additions & 4 deletions src/resources/beta/realtime/realtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,15 @@ export interface ConversationItemContent {
text?: string;

/**
* The transcript of the audio, used for `input_audio` content type.
* The transcript of the audio, used for `input_audio` and `audio` content types.
*/
transcript?: string;

/**
* The content type (`input_text`, `input_audio`, `item_reference`, `text`).
* The content type (`input_text`, `input_audio`, `item_reference`, `text`,
* `audio`).
*/
type?: 'input_text' | 'input_audio' | 'item_reference' | 'text';
type?: 'input_text' | 'input_audio' | 'item_reference' | 'text' | 'audio';
}

/**
Expand Down Expand Up @@ -659,7 +660,7 @@ export interface ConversationItemWithReference {
* - Message items of role `user` support `input_text` and `input_audio` content
* - Message items of role `assistant` support `text` content.
*/
content?: Array<ConversationItemContent>;
content?: Array<ConversationItemWithReference.Content>;

/**
* The name of the function being called (for `function_call` items).
Expand Down Expand Up @@ -696,6 +697,37 @@ export interface ConversationItemWithReference {
type?: 'message' | 'function_call' | 'function_call_output' | 'item_reference';
}

export namespace ConversationItemWithReference {
export interface Content {
/**
* ID of a previous conversation item to reference (for `item_reference` content
* types in `response.create` events). These can reference both client and server
* created items.
*/
id?: string;

/**
* Base64-encoded audio bytes, used for `input_audio` content type.
*/
audio?: string;

/**
* The text content, used for `input_text` and `text` content types.
*/
text?: string;

/**
* The transcript of the audio, used for `input_audio` content type.
*/
transcript?: string;

/**
* The content type (`input_text`, `input_audio`, `item_reference`, `text`).
*/
type?: 'input_text' | 'input_audio' | 'item_reference' | 'text';
}
}

/**
* Returned when an error occurs, which could be a client problem or a server
* problem. Most errors are recoverable and the session will stay open, we
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 = '5.9.1'; // x-release-please-version
export const VERSION = '5.9.2'; // x-release-please-version