Skip to content
Open
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 numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
{
".": "2.11.0"
".": "2.12.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
configured_endpoints: 137
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
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
# Changelog

## 2.12.0 (2025-12-14)

Full Changelog: [v2.11.0...v2.12.0](https://github.com/openai/openai-python/compare/v2.11.0...v2.12.0)

### Features

* **api:** api update ([a95c4d0](https://github.com/openai/openai-python/commit/a95c4d0952ff5eb767206574e687cb029a49a4ab))
* **api:** fix grader input list, add dated slugs for sora-2 ([b2c389b](https://github.com/openai/openai-python/commit/b2c389bf5c3bde50bac2d9f60cce58f4aef44a41))

## 2.11.0 (2025-12-11)

Full Changelog: [v2.10.0...v2.11.0](https://github.com/openai/openai-python/compare/v2.10.0...v2.11.0)
Expand Down
1 change: 1 addition & 0 deletions api.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -342,6 +342,7 @@ Types:

```python
from openai.types.graders import (
GraderInputs,
LabelModelGrader,
MultiGrader,
PythonGrader,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
[project]
name = "openai"
version = "2.11.0"
version = "2.12.0"
description = "The official Python library for the openai API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/openai/_version.py
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "openai"
__version__ = "2.11.0" # x-release-please-version
__version__ = "2.12.0" # x-release-please-version
11 changes: 8 additions & 3 deletions src/openai/types/eval_create_params.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,6 +7,7 @@

from .._types import SequenceNotStr
from .shared_params.metadata import Metadata
from .graders.grader_inputs_param import GraderInputsParam
from .graders.python_grader_param import PythonGraderParam
from .graders.score_model_grader_param import ScoreModelGraderParam
from .graders.string_check_grader_param import StringCheckGraderParam
Expand DownExpand Up@@ -129,7 +130,7 @@ class TestingCriterionLabelModelInputEvalItemContentOutputText(TypedDict, total=


class TestingCriterionLabelModelInputEvalItemContentInputImage(TypedDict, total=False):
"""An image input to the model."""
"""An image input block used within EvalItem content arrays."""

image_url: Required[str]
"""The URL of the image input."""
Expand All@@ -150,7 +151,7 @@ class TestingCriterionLabelModelInputEvalItemContentInputImage(TypedDict, total=
TestingCriterionLabelModelInputEvalItemContentOutputText,
TestingCriterionLabelModelInputEvalItemContentInputImage,
ResponseInputAudioParam,
Iterable[object],
GraderInputsParam,
]


Expand All@@ -164,7 +165,11 @@ class TestingCriterionLabelModelInputEvalItem(TypedDict, total=False):
"""

content: Required[TestingCriterionLabelModelInputEvalItemContent]
"""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.
"""

role: Required[Literal["user", "assistant", "system", "developer"]]
"""The role of the message input.
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,6 +6,7 @@
from ..._utils import PropertyInfo
from ..._models import BaseModel
from ..shared.metadata import Metadata
from ..graders.grader_inputs import GraderInputs
from ..shared.reasoning_effort import ReasoningEffort
from ..shared.response_format_text import ResponseFormatText
from ..responses.easy_input_message import EasyInputMessage
Expand DownExpand Up@@ -102,7 +103,7 @@ class InputMessagesTemplateTemplateEvalItemContentOutputText(BaseModel):


class InputMessagesTemplateTemplateEvalItemContentInputImage(BaseModel):
"""An image input to the model."""
"""An image input block used within EvalItem content arrays."""

image_url: str
"""The URL of the image input."""
Expand All@@ -123,7 +124,7 @@ class InputMessagesTemplateTemplateEvalItemContentInputImage(BaseModel):
InputMessagesTemplateTemplateEvalItemContentOutputText,
InputMessagesTemplateTemplateEvalItemContentInputImage,
ResponseInputAudio,
List[object],
GraderInputs,
]


Expand All@@ -137,7 +138,11 @@ class InputMessagesTemplateTemplateEvalItem(BaseModel):
"""

content: InputMessagesTemplateTemplateEvalItemContent
"""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.
"""

role: Literal["user", "assistant", "system", "developer"]
"""The role of the message input.
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,6 +7,7 @@

from ..shared_params.metadata import Metadata
from ..shared.reasoning_effort import ReasoningEffort
from ..graders.grader_inputs_param import GraderInputsParam
from ..responses.easy_input_message_param import EasyInputMessageParam
from ..shared_params.response_format_text import ResponseFormatText
from ..responses.response_input_text_param import ResponseInputTextParam
Expand DownExpand Up@@ -100,7 +101,7 @@ class InputMessagesTemplateTemplateEvalItemContentOutputText(TypedDict, total=Fa


class InputMessagesTemplateTemplateEvalItemContentInputImage(TypedDict, total=False):
"""An image input to the model."""
"""An image input block used within EvalItem content arrays."""

image_url: Required[str]
"""The URL of the image input."""
Expand All@@ -121,7 +122,7 @@ class InputMessagesTemplateTemplateEvalItemContentInputImage(TypedDict, total=Fa
InputMessagesTemplateTemplateEvalItemContentOutputText,
InputMessagesTemplateTemplateEvalItemContentInputImage,
ResponseInputAudioParam,
Iterable[object],
GraderInputsParam,
]


Expand All@@ -135,7 +136,11 @@ class InputMessagesTemplateTemplateEvalItem(TypedDict, total=False):
"""

content: Required[InputMessagesTemplateTemplateEvalItemContent]
"""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.
"""

role: Required[Literal["user", "assistant", "system", "developer"]]
"""The role of the message input.
Expand Down
11 changes: 8 additions & 3 deletions src/openai/types/evals/run_cancel_response.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,6 +10,7 @@
from .eval_api_error import EvalAPIError
from ..responses.tool import Tool
from ..shared.metadata import Metadata
from ..graders.grader_inputs import GraderInputs
from ..shared.reasoning_effort import ReasoningEffort
from ..responses.response_input_text import ResponseInputText
from ..responses.response_input_audio import ResponseInputAudio
Expand DownExpand Up@@ -156,7 +157,7 @@ class DataSourceResponsesInputMessagesTemplateTemplateEvalItemContentOutputText(


class DataSourceResponsesInputMessagesTemplateTemplateEvalItemContentInputImage(BaseModel):
"""An image input to the model."""
"""An image input block used within EvalItem content arrays."""

image_url: str
"""The URL of the image input."""
Expand All@@ -177,7 +178,7 @@ class DataSourceResponsesInputMessagesTemplateTemplateEvalItemContentInputImage(
DataSourceResponsesInputMessagesTemplateTemplateEvalItemContentOutputText,
DataSourceResponsesInputMessagesTemplateTemplateEvalItemContentInputImage,
ResponseInputAudio,
List[object],
GraderInputs,
]


Expand All@@ -191,7 +192,11 @@ class DataSourceResponsesInputMessagesTemplateTemplateEvalItem(BaseModel):
"""

content: DataSourceResponsesInputMessagesTemplateTemplateEvalItemContent
"""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.
"""

role: Literal["user", "assistant", "system", "developer"]
"""The role of the message input.
Expand Down
11 changes: 8 additions & 3 deletions src/openai/types/evals/run_create_params.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,6 +9,7 @@
from ..responses.tool_param import ToolParam
from ..shared_params.metadata import Metadata
from ..shared.reasoning_effort import ReasoningEffort
from ..graders.grader_inputs_param import GraderInputsParam
from ..responses.response_input_text_param import ResponseInputTextParam
from ..responses.response_input_audio_param import ResponseInputAudioParam
from .create_eval_jsonl_run_data_source_param import CreateEvalJSONLRunDataSourceParam
Expand DownExpand Up@@ -174,7 +175,7 @@ class DataSourceCreateEvalResponsesRunDataSourceInputMessagesTemplateTemplateEva
class DataSourceCreateEvalResponsesRunDataSourceInputMessagesTemplateTemplateEvalItemContentInputImage(
TypedDict, total=False
):
"""An image input to the model."""
"""An image input block used within EvalItem content arrays."""

image_url: Required[str]
"""The URL of the image input."""
Expand All@@ -195,7 +196,7 @@ class DataSourceCreateEvalResponsesRunDataSourceInputMessagesTemplateTemplateEva
DataSourceCreateEvalResponsesRunDataSourceInputMessagesTemplateTemplateEvalItemContentOutputText,
DataSourceCreateEvalResponsesRunDataSourceInputMessagesTemplateTemplateEvalItemContentInputImage,
ResponseInputAudioParam,
Iterable[object],
GraderInputsParam,
]


Expand All@@ -209,7 +210,11 @@ class DataSourceCreateEvalResponsesRunDataSourceInputMessagesTemplateTemplateEva
"""

content: Required[DataSourceCreateEvalResponsesRunDataSourceInputMessagesTemplateTemplateEvalItemContent]
"""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.
"""

role: Required[Literal["user", "assistant", "system", "developer"]]
"""The role of the message input.
Expand Down
11 changes: 8 additions & 3 deletions src/openai/types/evals/run_create_response.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,6 +10,7 @@
from .eval_api_error import EvalAPIError
from ..responses.tool import Tool
from ..shared.metadata import Metadata
from ..graders.grader_inputs import GraderInputs
from ..shared.reasoning_effort import ReasoningEffort
from ..responses.response_input_text import ResponseInputText
from ..responses.response_input_audio import ResponseInputAudio
Expand DownExpand Up@@ -156,7 +157,7 @@ class DataSourceResponsesInputMessagesTemplateTemplateEvalItemContentOutputText(


class DataSourceResponsesInputMessagesTemplateTemplateEvalItemContentInputImage(BaseModel):
"""An image input to the model."""
"""An image input block used within EvalItem content arrays."""

image_url: str
"""The URL of the image input."""
Expand All@@ -177,7 +178,7 @@ class DataSourceResponsesInputMessagesTemplateTemplateEvalItemContentInputImage(
DataSourceResponsesInputMessagesTemplateTemplateEvalItemContentOutputText,
DataSourceResponsesInputMessagesTemplateTemplateEvalItemContentInputImage,
ResponseInputAudio,
List[object],
GraderInputs,
]


Expand All@@ -191,7 +192,11 @@ class DataSourceResponsesInputMessagesTemplateTemplateEvalItem(BaseModel):
"""

content: DataSourceResponsesInputMessagesTemplateTemplateEvalItemContent
"""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.
"""

role: Literal["user", "assistant", "system", "developer"]
"""The role of the message input.
Expand Down
11 changes: 8 additions & 3 deletions src/openai/types/evals/run_list_response.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,6 +10,7 @@
from .eval_api_error import EvalAPIError
from ..responses.tool import Tool
from ..shared.metadata import Metadata
from ..graders.grader_inputs import GraderInputs
from ..shared.reasoning_effort import ReasoningEffort
from ..responses.response_input_text import ResponseInputText
from ..responses.response_input_audio import ResponseInputAudio
Expand DownExpand Up@@ -156,7 +157,7 @@ class DataSourceResponsesInputMessagesTemplateTemplateEvalItemContentOutputText(


class DataSourceResponsesInputMessagesTemplateTemplateEvalItemContentInputImage(BaseModel):
"""An image input to the model."""
"""An image input block used within EvalItem content arrays."""

image_url: str
"""The URL of the image input."""
Expand All@@ -177,7 +178,7 @@ class DataSourceResponsesInputMessagesTemplateTemplateEvalItemContentInputImage(
DataSourceResponsesInputMessagesTemplateTemplateEvalItemContentOutputText,
DataSourceResponsesInputMessagesTemplateTemplateEvalItemContentInputImage,
ResponseInputAudio,
List[object],
GraderInputs,
]


Expand All@@ -191,7 +192,11 @@ class DataSourceResponsesInputMessagesTemplateTemplateEvalItem(BaseModel):
"""

content: DataSourceResponsesInputMessagesTemplateTemplateEvalItemContent
"""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.
"""

role: Literal["user", "assistant", "system", "developer"]
"""The role of the message input.
Expand Down
11 changes: 8 additions & 3 deletions src/openai/types/evals/run_retrieve_response.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,6 +10,7 @@
from .eval_api_error import EvalAPIError
from ..responses.tool import Tool
from ..shared.metadata import Metadata
from ..graders.grader_inputs import GraderInputs
from ..shared.reasoning_effort import ReasoningEffort
from ..responses.response_input_text import ResponseInputText
from ..responses.response_input_audio import ResponseInputAudio
Expand DownExpand Up@@ -156,7 +157,7 @@ class DataSourceResponsesInputMessagesTemplateTemplateEvalItemContentOutputText(


class DataSourceResponsesInputMessagesTemplateTemplateEvalItemContentInputImage(BaseModel):
"""An image input to the model."""
"""An image input block used within EvalItem content arrays."""

image_url: str
"""The URL of the image input."""
Expand All@@ -177,7 +178,7 @@ class DataSourceResponsesInputMessagesTemplateTemplateEvalItemContentInputImage(
DataSourceResponsesInputMessagesTemplateTemplateEvalItemContentOutputText,
DataSourceResponsesInputMessagesTemplateTemplateEvalItemContentInputImage,
ResponseInputAudio,
List[object],
GraderInputs,
]


Expand All@@ -191,7 +192,11 @@ class DataSourceResponsesInputMessagesTemplateTemplateEvalItem(BaseModel):
"""

content: DataSourceResponsesInputMessagesTemplateTemplateEvalItemContent
"""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.
"""

role: Literal["user", "assistant", "system", "developer"]
"""The role of the message input.
Expand Down
2 changes: 2 additions & 0 deletions src/openai/types/graders/__init__.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,10 +3,12 @@
from __future__ import annotations

from .multi_grader import MultiGrader as MultiGrader
from .grader_inputs import GraderInputs as GraderInputs
from .python_grader import PythonGrader as PythonGrader
from .label_model_grader import LabelModelGrader as LabelModelGrader
from .multi_grader_param import MultiGraderParam as MultiGraderParam
from .score_model_grader import ScoreModelGrader as ScoreModelGrader
from .grader_inputs_param import GraderInputsParam as GraderInputsParam
from .python_grader_param import PythonGraderParam as PythonGraderParam
from .string_check_grader import StringCheckGrader as StringCheckGrader
from .text_similarity_grader import TextSimilarityGrader as TextSimilarityGrader
Expand Down
Loading