diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index cf3266d7c..b0c67aa02 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "6.12.0"
+ ".": "6.13.0"
}
diff --git a/.stats.yml b/.stats.yml
index da4ec1f6b..a68116134 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 136
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-41f98da99f44ebe6204fce5c1dc9940f85f3472779e797b674c4fdc20306c77d.yml
-openapi_spec_hash: c61259027f421f501bdc6b23cf9e430e
-config_hash: 141b101c9f13b90e21af74e1686f1f41
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-fe8e67bdc351a518b113ab48e775750190e207807903d6b03ab22c438c38a588.yml
+openapi_spec_hash: 8af972190647ffb9dcec516e19d8761a
+config_hash: 856bee50ee3617e85a9bc9274db01dbb
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 66ab8c1f6..43149c6aa 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,14 @@
# Changelog
+## 6.13.0 (2025-12-15)
+
+Full Changelog: [v6.12.0...v6.13.0](https://github.com/openai/openai-node/compare/v6.12.0...v6.13.0)
+
+### Features
+
+* **api:** api update ([bc759dc](https://github.com/openai/openai-node/commit/bc759dc39518412b58b2ebf7e57758776971ce15))
+* **api:** fix grader input list, add dated slugs for sora-2 ([6b2a38f](https://github.com/openai/openai-node/commit/6b2a38fb040eb45535818fb0157ae55949033dc1))
+
## 6.12.0 (2025-12-11)
Full Changelog: [v6.11.0...v6.12.0](https://github.com/openai/openai-node/compare/v6.11.0...v6.12.0)
diff --git a/api.md b/api.md
index bd33f08cd..ddf784da2 100644
--- a/api.md
+++ b/api.md
@@ -301,6 +301,7 @@ Methods:
Types:
+- GraderInputs
- LabelModelGrader
- MultiGrader
- PythonGrader
diff --git a/jsr.json b/jsr.json
index 2e117afd4..9561fa019 100644
--- a/jsr.json
+++ b/jsr.json
@@ -1,6 +1,6 @@
{
"name": "@openai/openai",
- "version": "6.12.0",
+ "version": "6.13.0",
"exports": {
".": "./index.ts",
"./helpers/zod": "./helpers/zod.ts",
diff --git a/package.json b/package.json
index bc79800d0..d516372ec 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "openai",
- "version": "6.12.0",
+ "version": "6.13.0",
"description": "The official TypeScript library for the OpenAI API",
"author": "OpenAI ",
"types": "dist/index.d.ts",
diff --git a/src/resources/evals/evals.ts b/src/resources/evals/evals.ts
index 9357f7b35..79d387d0f 100644
--- a/src/resources/evals/evals.ts
+++ b/src/resources/evals/evals.ts
@@ -769,7 +769,8 @@ export namespace EvalCreateParams {
*/
export interface EvalItem {
/**
- * Inputs to the model - can contain template strings.
+ * Inputs to the model - can contain template strings. Supports text, output text,
+ * input images, and input audio, either as a single item or an array of items.
*/
content:
| string
@@ -777,7 +778,7 @@ export namespace EvalCreateParams {
| EvalItem.OutputText
| EvalItem.InputImage
| ResponsesAPI.ResponseInputAudio
- | Array;
+ | GraderModelsAPI.GraderInputs;
/**
* The role of the message input. One of `user`, `assistant`, `system`, or
@@ -808,7 +809,7 @@ export namespace EvalCreateParams {
}
/**
- * An image input to the model.
+ * An image input block used within EvalItem content arrays.
*/
export interface InputImage {
/**
diff --git a/src/resources/evals/runs/runs.ts b/src/resources/evals/runs/runs.ts
index 9f6e4f52c..941b6b5df 100644
--- a/src/resources/evals/runs/runs.ts
+++ b/src/resources/evals/runs/runs.ts
@@ -2,6 +2,7 @@
import { APIResource } from '../../../core/resource';
import * as Shared from '../../shared';
+import * as GraderModelsAPI from '../../graders/grader-models';
import * as ResponsesAPI from '../../responses/responses';
import * as CompletionsAPI from '../../chat/completions/completions';
import * as OutputItemsAPI from './output-items';
@@ -206,7 +207,8 @@ export namespace CreateEvalCompletionsRunDataSource {
*/
export interface EvalItem {
/**
- * Inputs to the model - can contain template strings.
+ * Inputs to the model - can contain template strings. Supports text, output text,
+ * input images, and input audio, either as a single item or an array of items.
*/
content:
| string
@@ -214,7 +216,7 @@ export namespace CreateEvalCompletionsRunDataSource {
| EvalItem.OutputText
| EvalItem.InputImage
| ResponsesAPI.ResponseInputAudio
- | Array;
+ | GraderModelsAPI.GraderInputs;
/**
* The role of the message input. One of `user`, `assistant`, `system`, or
@@ -245,7 +247,7 @@ export namespace CreateEvalCompletionsRunDataSource {
}
/**
- * An image input to the model.
+ * An image input block used within EvalItem content arrays.
*/
export interface InputImage {
/**
@@ -667,7 +669,8 @@ export namespace RunCreateResponse {
*/
export interface EvalItem {
/**
- * Inputs to the model - can contain template strings.
+ * Inputs to the model - can contain template strings. Supports text, output text,
+ * input images, and input audio, either as a single item or an array of items.
*/
content:
| string
@@ -675,7 +678,7 @@ export namespace RunCreateResponse {
| EvalItem.OutputText
| EvalItem.InputImage
| ResponsesAPI.ResponseInputAudio
- | Array;
+ | GraderModelsAPI.GraderInputs;
/**
* The role of the message input. One of `user`, `assistant`, `system`, or
@@ -706,7 +709,7 @@ export namespace RunCreateResponse {
}
/**
- * An image input to the model.
+ * An image input block used within EvalItem content arrays.
*/
export interface InputImage {
/**
@@ -1169,7 +1172,8 @@ export namespace RunRetrieveResponse {
*/
export interface EvalItem {
/**
- * Inputs to the model - can contain template strings.
+ * Inputs to the model - can contain template strings. Supports text, output text,
+ * input images, and input audio, either as a single item or an array of items.
*/
content:
| string
@@ -1177,7 +1181,7 @@ export namespace RunRetrieveResponse {
| EvalItem.OutputText
| EvalItem.InputImage
| ResponsesAPI.ResponseInputAudio
- | Array;
+ | GraderModelsAPI.GraderInputs;
/**
* The role of the message input. One of `user`, `assistant`, `system`, or
@@ -1208,7 +1212,7 @@ export namespace RunRetrieveResponse {
}
/**
- * An image input to the model.
+ * An image input block used within EvalItem content arrays.
*/
export interface InputImage {
/**
@@ -1668,7 +1672,8 @@ export namespace RunListResponse {
*/
export interface EvalItem {
/**
- * Inputs to the model - can contain template strings.
+ * Inputs to the model - can contain template strings. Supports text, output text,
+ * input images, and input audio, either as a single item or an array of items.
*/
content:
| string
@@ -1676,7 +1681,7 @@ export namespace RunListResponse {
| EvalItem.OutputText
| EvalItem.InputImage
| ResponsesAPI.ResponseInputAudio
- | Array;
+ | GraderModelsAPI.GraderInputs;
/**
* The role of the message input. One of `user`, `assistant`, `system`, or
@@ -1707,7 +1712,7 @@ export namespace RunListResponse {
}
/**
- * An image input to the model.
+ * An image input block used within EvalItem content arrays.
*/
export interface InputImage {
/**
@@ -2178,7 +2183,8 @@ export namespace RunCancelResponse {
*/
export interface EvalItem {
/**
- * Inputs to the model - can contain template strings.
+ * Inputs to the model - can contain template strings. Supports text, output text,
+ * input images, and input audio, either as a single item or an array of items.
*/
content:
| string
@@ -2186,7 +2192,7 @@ export namespace RunCancelResponse {
| EvalItem.OutputText
| EvalItem.InputImage
| ResponsesAPI.ResponseInputAudio
- | Array;
+ | GraderModelsAPI.GraderInputs;
/**
* The role of the message input. One of `user`, `assistant`, `system`, or
@@ -2217,7 +2223,7 @@ export namespace RunCancelResponse {
}
/**
- * An image input to the model.
+ * An image input block used within EvalItem content arrays.
*/
export interface InputImage {
/**
@@ -2627,7 +2633,8 @@ export namespace RunCreateParams {
*/
export interface EvalItem {
/**
- * Inputs to the model - can contain template strings.
+ * Inputs to the model - can contain template strings. Supports text, output text,
+ * input images, and input audio, either as a single item or an array of items.
*/
content:
| string
@@ -2635,7 +2642,7 @@ export namespace RunCreateParams {
| EvalItem.OutputText
| EvalItem.InputImage
| ResponsesAPI.ResponseInputAudio
- | Array;
+ | GraderModelsAPI.GraderInputs;
/**
* The role of the message input. One of `user`, `assistant`, `system`, or
@@ -2666,7 +2673,7 @@ export namespace RunCreateParams {
}
/**
- * An image input to the model.
+ * An image input block used within EvalItem content arrays.
*/
export interface InputImage {
/**
diff --git a/src/resources/graders/grader-models.ts b/src/resources/graders/grader-models.ts
index 6ce4143b5..fc4166b98 100644
--- a/src/resources/graders/grader-models.ts
+++ b/src/resources/graders/grader-models.ts
@@ -1,11 +1,62 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../core/resource';
+import * as GraderModelsAPI from './grader-models';
import * as Shared from '../shared';
import * as ResponsesAPI from '../responses/responses';
export class GraderModels extends APIResource {}
+/**
+ * A list of inputs, each of which may be either an input text, output text, input
+ * image, or input audio object.
+ */
+export type GraderInputs = Array<
+ | string
+ | ResponsesAPI.ResponseInputText
+ | GraderInputs.OutputText
+ | GraderInputs.InputImage
+ | ResponsesAPI.ResponseInputAudio
+>;
+
+export namespace GraderInputs {
+ /**
+ * A text output from the model.
+ */
+ export interface OutputText {
+ /**
+ * The text output from the model.
+ */
+ text: string;
+
+ /**
+ * The type of the output text. Always `output_text`.
+ */
+ type: 'output_text';
+ }
+
+ /**
+ * An image input block used within EvalItem content arrays.
+ */
+ 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;
+ }
+}
+
/**
* A LabelModelGrader object which uses a model to assign labels to each item in
* the evaluation.
@@ -49,7 +100,8 @@ export namespace LabelModelGrader {
*/
export interface Input {
/**
- * Inputs to the model - can contain template strings.
+ * Inputs to the model - can contain template strings. Supports text, output text,
+ * input images, and input audio, either as a single item or an array of items.
*/
content:
| string
@@ -57,7 +109,7 @@ export namespace LabelModelGrader {
| Input.OutputText
| Input.InputImage
| ResponsesAPI.ResponseInputAudio
- | Array;
+ | GraderModelsAPI.GraderInputs;
/**
* The role of the message input. One of `user`, `assistant`, `system`, or
@@ -88,7 +140,7 @@ export namespace LabelModelGrader {
}
/**
- * An image input to the model.
+ * An image input block used within EvalItem content arrays.
*/
export interface InputImage {
/**
@@ -208,7 +260,8 @@ export namespace ScoreModelGrader {
*/
export interface Input {
/**
- * Inputs to the model - can contain template strings.
+ * Inputs to the model - can contain template strings. Supports text, output text,
+ * input images, and input audio, either as a single item or an array of items.
*/
content:
| string
@@ -216,7 +269,7 @@ export namespace ScoreModelGrader {
| Input.OutputText
| Input.InputImage
| ResponsesAPI.ResponseInputAudio
- | Array;
+ | GraderModelsAPI.GraderInputs;
/**
* The role of the message input. One of `user`, `assistant`, `system`, or
@@ -247,7 +300,7 @@ export namespace ScoreModelGrader {
}
/**
- * An image input to the model.
+ * An image input block used within EvalItem content arrays.
*/
export interface InputImage {
/**
@@ -386,6 +439,7 @@ export interface TextSimilarityGrader {
export declare namespace GraderModels {
export {
+ type GraderInputs as GraderInputs,
type LabelModelGrader as LabelModelGrader,
type MultiGrader as MultiGrader,
type PythonGrader as PythonGrader,
diff --git a/src/resources/graders/graders.ts b/src/resources/graders/graders.ts
index d337e02ae..8904f916e 100644
--- a/src/resources/graders/graders.ts
+++ b/src/resources/graders/graders.ts
@@ -3,6 +3,7 @@
import { APIResource } from '../../core/resource';
import * as GraderModelsAPI from './grader-models';
import {
+ GraderInputs,
GraderModels,
LabelModelGrader,
MultiGrader,
@@ -21,6 +22,7 @@ Graders.GraderModels = GraderModels;
export declare namespace Graders {
export {
GraderModels as GraderModels,
+ type GraderInputs as GraderInputs,
type LabelModelGrader as LabelModelGrader,
type MultiGrader as MultiGrader,
type PythonGrader as PythonGrader,
diff --git a/src/resources/graders/index.ts b/src/resources/graders/index.ts
index 82d557a6a..f9b00d151 100644
--- a/src/resources/graders/index.ts
+++ b/src/resources/graders/index.ts
@@ -2,6 +2,7 @@
export {
GraderModels,
+ type GraderInputs,
type LabelModelGrader,
type MultiGrader,
type PythonGrader,
diff --git a/src/resources/videos.ts b/src/resources/videos.ts
index 147c3851e..14fe8a30c 100644
--- a/src/resources/videos.ts
+++ b/src/resources/videos.ts
@@ -146,7 +146,12 @@ export interface VideoCreateError {
message: string;
}
-export type VideoModel = 'sora-2' | 'sora-2-pro';
+export type VideoModel =
+ | 'sora-2'
+ | 'sora-2-pro'
+ | 'sora-2-2025-10-06'
+ | 'sora-2-pro-2025-10-06'
+ | 'sora-2-2025-12-08';
export type VideoSeconds = '4' | '8' | '12';
diff --git a/src/version.ts b/src/version.ts
index d6d265e62..e182f4ca3 100644
--- a/src/version.ts
+++ b/src/version.ts
@@ -1 +1 @@
-export const VERSION = '6.12.0'; // x-release-please-version
+export const VERSION = '6.13.0'; // x-release-please-version