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.0"
".": "5.9.1"
}
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-2d116cda53321baa3479e628512def723207a81eb1cdaebb542bd0555e563bda.yml
openapi_spec_hash: 809d958fec261a32004a4b026b718793
config_hash: e74d6791681e3af1b548748ff47a22c2
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-82fd6fcb3eea81cbbe09a6f831c82219f1251e1b76474b4c41f424bf277e6a71.yml
openapi_spec_hash: c8d54bd1ae3d704f6b6f72ffd2f876d8
config_hash: 3315d58b60faf63b1bee251b81837cda
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

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

### Chores

* **api:** update realtime specs, build config ([bb4649f](https://github.com/openai/openai-node/commit/bb4649feb69a6d91e4eea857fd6f5e8c00f2a35d))

## 5.9.0 (2025-07-10)

Full Changelog: [v5.8.4...v5.9.0](https://github.com/openai/openai-node/compare/v5.8.4...v5.9.0)
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.0",
"version": "5.9.1",
"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.0",
"version": "5.9.1",
"description": "The official TypeScript library for the OpenAI API",
"author": "OpenAI <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
36 changes: 19 additions & 17 deletions src/resources/beta/realtime/realtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ export interface ConversationItem {
role?: 'user' | 'assistant' | 'system';

/**
* The status of the item (`completed`, `incomplete`). These have no effect on the
* conversation, but are accepted for consistency with the
* The status of the item (`completed`, `incomplete`, `in_progress`). These have no
* effect on the conversation, but are accepted for consistency with the
* `conversation.item.created` event.
*/
status?: 'completed' | 'incomplete';
status?: 'completed' | 'incomplete' | 'in_progress';

/**
* The type of the item (`message`, `function_call`, `function_call_output`).
Expand Down Expand Up @@ -215,15 +215,16 @@ export interface ConversationItemCreatedEvent {
item: ConversationItem;

/**
* The ID of the preceding item in the Conversation context, allows the client to
* understand the order of the conversation.
* The event type, must be `conversation.item.created`.
*/
previous_item_id: string;
type: 'conversation.item.created';

/**
* The event type, must be `conversation.item.created`.
* The ID of the preceding item in the Conversation context, allows the client to
* understand the order of the conversation. Can be `null` if the item has no
* predecessor.
*/
type: 'conversation.item.created';
previous_item_id?: string | null;
}

/**
Expand Down Expand Up @@ -682,11 +683,11 @@ export interface ConversationItemWithReference {
role?: 'user' | 'assistant' | 'system';

/**
* The status of the item (`completed`, `incomplete`). These have no effect on the
* conversation, but are accepted for consistency with the
* The status of the item (`completed`, `incomplete`, `in_progress`). These have no
* effect on the conversation, but are accepted for consistency with the
* `conversation.item.created` event.
*/
status?: 'completed' | 'incomplete';
status?: 'completed' | 'incomplete' | 'in_progress';

/**
* The type of the item (`message`, `function_call`, `function_call_output`,
Expand Down Expand Up @@ -851,14 +852,15 @@ export interface InputAudioBufferCommittedEvent {
item_id: string;

/**
* The ID of the preceding item after which the new item will be inserted.
* The event type, must be `input_audio_buffer.committed`.
*/
previous_item_id: string;
type: 'input_audio_buffer.committed';

/**
* The event type, must be `input_audio_buffer.committed`.
* The ID of the preceding item after which the new item will be inserted. Can be
* `null` if the item has no predecessor.
*/
type: 'input_audio_buffer.committed';
previous_item_id?: string | null;
}

/**
Expand Down Expand Up @@ -1072,9 +1074,9 @@ export interface RealtimeResponse {

/**
* The final status of the response (`completed`, `cancelled`, `failed`, or
* `incomplete`).
* `incomplete`, `in_progress`).
*/
status?: 'completed' | 'cancelled' | 'failed' | 'incomplete';
status?: 'completed' | 'cancelled' | 'failed' | 'incomplete' | 'in_progress';

/**
* Additional details about the status.
Expand Down
30 changes: 28 additions & 2 deletions src/resources/evals/evals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -769,9 +769,14 @@ export namespace EvalCreateParams {
*/
export interface EvalItem {
/**
* Text inputs to the model - can contain template strings.
* Inputs to the model - can contain template strings.
*/
content: string | ResponsesAPI.ResponseInputText | EvalItem.OutputText;
content:
| string
| ResponsesAPI.ResponseInputText
| EvalItem.OutputText
| EvalItem.InputImage
| Array<unknown>;

/**
* The role of the message input. One of `user`, `assistant`, `system`, or
Expand Down Expand Up @@ -800,6 +805,27 @@ export namespace EvalCreateParams {
*/
type: 'output_text';
}

/**
* An image input to the model.
*/
export interface InputImage {
/**
* The URL of the image input.
*/
image_url: string;

/**
* The type of the image input. Always `input_image`.
*/
type: 'input_image';

/**
* The detail level of the image to be sent to the model. One of `high`, `low`, or
* `auto`. Defaults to `auto`.
*/
detail?: string;
}
}
}

Expand Down
Loading