Skip to content

release: 1.96.1 #2468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 15, 2025
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 @@
{
".": "1.96.0"
".": "1.96.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-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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.96.1 (2025-07-15)

Full Changelog: [v1.96.0...v1.96.1](https://github.com/openai/openai-python/compare/v1.96.0...v1.96.1)

### Chores

* **api:** update realtime specs ([b68b71b](https://github.com/openai/openai-python/commit/b68b71b178719e0b49ecfe34486b9d9ac0627924))

## 1.96.0 (2025-07-15)

Full Changelog: [v1.95.1...v1.96.0](https://github.com/openai/openai-python/compare/v1.95.1...v1.96.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "openai"
version = "1.96.0"
version = "1.96.1"
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 number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "openai"
__version__ = "1.96.0" # x-release-please-version
__version__ = "1.96.1" # x-release-please-version
9 changes: 6 additions & 3 deletions src/openai/types/beta/realtime/conversation_item_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ class ConversationItemContent(BaseModel):
"""The text content, used for `input_text` and `text` content types."""

transcript: Optional[str] = None
"""The transcript of the audio, used for `input_audio` content type."""
"""The transcript of the audio, used for `input_audio` and `audio` content types."""

type: Optional[Literal["input_text", "input_audio", "item_reference", "text"]] = None
"""The content type (`input_text`, `input_audio`, `item_reference`, `text`)."""
type: Optional[Literal["input_text", "input_audio", "item_reference", "text", "audio"]] = None
"""
The content type (`input_text`, `input_audio`, `item_reference`, `text`,
`audio`).
"""
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ class ConversationItemContentParam(TypedDict, total=False):
"""The text content, used for `input_text` and `text` content types."""

transcript: str
"""The transcript of the audio, used for `input_audio` content type."""
"""The transcript of the audio, used for `input_audio` and `audio` content types."""

type: Literal["input_text", "input_audio", "item_reference", "text"]
"""The content type (`input_text`, `input_audio`, `item_reference`, `text`)."""
type: Literal["input_text", "input_audio", "item_reference", "text", "audio"]
"""
The content type (`input_text`, `input_audio`, `item_reference`, `text`,
`audio`).
"""
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,29 @@
from typing_extensions import Literal

from ...._models import BaseModel
from .conversation_item_content import ConversationItemContent

__all__ = ["ConversationItemWithReference"]
__all__ = ["ConversationItemWithReference", "Content"]


class Content(BaseModel):
id: Optional[str] = None
"""
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.
"""

audio: Optional[str] = None
"""Base64-encoded audio bytes, used for `input_audio` content type."""

text: Optional[str] = None
"""The text content, used for `input_text` and `text` content types."""

transcript: Optional[str] = None
"""The transcript of the audio, used for `input_audio` content type."""

type: Optional[Literal["input_text", "input_audio", "item_reference", "text"]] = None
"""The content type (`input_text`, `input_audio`, `item_reference`, `text`)."""


class ConversationItemWithReference(BaseModel):
Expand All @@ -30,7 +50,7 @@ class ConversationItemWithReference(BaseModel):
`function_call` item with the same ID exists in the conversation history.
"""

content: Optional[List[ConversationItemContent]] = None
content: Optional[List[Content]] = None
"""The content of the message, applicable for `message` items.

- Message items of role `system` support only `input_text` content
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,28 @@
from typing import Iterable
from typing_extensions import Literal, TypedDict

from .conversation_item_content_param import ConversationItemContentParam
__all__ = ["ConversationItemWithReferenceParam", "Content"]

__all__ = ["ConversationItemWithReferenceParam"]

class Content(TypedDict, total=False):
id: str
"""
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.
"""

audio: str
"""Base64-encoded audio bytes, used for `input_audio` content type."""

text: str
"""The text content, used for `input_text` and `text` content types."""

transcript: str
"""The transcript of the audio, used for `input_audio` content type."""

type: Literal["input_text", "input_audio", "item_reference", "text"]
"""The content type (`input_text`, `input_audio`, `item_reference`, `text`)."""


class ConversationItemWithReferenceParam(TypedDict, total=False):
Expand All @@ -31,7 +50,7 @@ class ConversationItemWithReferenceParam(TypedDict, total=False):
`function_call` item with the same ID exists in the conversation history.
"""

content: Iterable[ConversationItemContentParam]
content: Iterable[Content]
"""The content of the message, applicable for `message` items.

- Message items of role `system` support only `input_text` content
Expand Down