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 @@
{
".": "2.42.0"
".": "2.43.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 264
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai/openai-4db8edc05bd5503d4aaad74e8b9c783aa1f4d40382a8075c53355bd18dfaf68c.yml
openapi_spec_hash: 2466f6ad496b27334217999202e185c0
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai/openai-b5b621065906a2579dc180db1236ee3b08a4fca9539accc2fbbf88da0ca3923f.yml
openapi_spec_hash: 45b1b4692b26e714008d8120ccfc7433
config_hash: ef3ce17315a31703e7af0567b3e9738c
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 2.43.0 (2026-06-17)

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

### Features

* **api:** update OpenAPI spec or Stainless config ([2254235](https://github.com/openai/openai-python/commit/22542358490ef8f31f0d373e17f7b791b3d983ca))

## 2.42.0 (2026-06-16)

Full Changelog: [v2.41.1...v2.42.0](https://github.com/openai/openai-python/compare/v2.41.1...v2.42.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 = "2.42.0"
version = "2.43.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 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__ = "2.42.0" # x-release-please-version
__version__ = "2.43.0" # x-release-please-version
12 changes: 9 additions & 3 deletions src/openai/types/realtime/realtime_response_create_mcp_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ class RealtimeResponseCreateMcpTool(BaseModel):
] = None
"""Identifier for service connectors, like those available in ChatGPT.

One of `server_url` or `connector_id` must be provided. Learn more about service
connectors
One of `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
about service connectors
[here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).

Currently supported `connector_id` values are:
Expand Down Expand Up @@ -152,5 +152,11 @@ class RealtimeResponseCreateMcpTool(BaseModel):
server_url: Optional[str] = None
"""The URL for the MCP server.

One of `server_url` or `connector_id` must be provided.
One of `server_url`, `connector_id`, or `tunnel_id` must be provided.
"""

tunnel_id: Optional[str] = None
"""The Secure MCP Tunnel ID to use instead of a direct server URL.

One of `server_url`, `connector_id`, or `tunnel_id` must be provided.
"""
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ class RealtimeResponseCreateMcpToolParam(TypedDict, total=False):
]
"""Identifier for service connectors, like those available in ChatGPT.

One of `server_url` or `connector_id` must be provided. Learn more about service
connectors
One of `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
about service connectors
[here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).

Currently supported `connector_id` values are:
Expand Down Expand Up @@ -152,5 +152,11 @@ class RealtimeResponseCreateMcpToolParam(TypedDict, total=False):
server_url: str
"""The URL for the MCP server.

One of `server_url` or `connector_id` must be provided.
One of `server_url`, `connector_id`, or `tunnel_id` must be provided.
"""

tunnel_id: str
"""The Secure MCP Tunnel ID to use instead of a direct server URL.

One of `server_url`, `connector_id`, or `tunnel_id` must be provided.
"""
12 changes: 9 additions & 3 deletions src/openai/types/realtime/realtime_session_create_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ class ToolMcpTool(BaseModel):
] = None
"""Identifier for service connectors, like those available in ChatGPT.

One of `server_url` or `connector_id` must be provided. Learn more about service
connectors
One of `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
about service connectors
[here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).

Currently supported `connector_id` values are:
Expand Down Expand Up @@ -374,7 +374,13 @@ class ToolMcpTool(BaseModel):
server_url: Optional[str] = None
"""The URL for the MCP server.

One of `server_url` or `connector_id` must be provided.
One of `server_url`, `connector_id`, or `tunnel_id` must be provided.
"""

tunnel_id: Optional[str] = None
"""The Secure MCP Tunnel ID to use instead of a direct server URL.

One of `server_url`, `connector_id`, or `tunnel_id` must be provided.
"""


Expand Down
12 changes: 9 additions & 3 deletions src/openai/types/realtime/realtime_tools_config_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ class Mcp(TypedDict, total=False):
]
"""Identifier for service connectors, like those available in ChatGPT.

One of `server_url` or `connector_id` must be provided. Learn more about service
connectors
One of `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
about service connectors
[here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).

Currently supported `connector_id` values are:
Expand Down Expand Up @@ -155,7 +155,13 @@ class Mcp(TypedDict, total=False):
server_url: str
"""The URL for the MCP server.

One of `server_url` or `connector_id` must be provided.
One of `server_url`, `connector_id`, or `tunnel_id` must be provided.
"""

tunnel_id: str
"""The Secure MCP Tunnel ID to use instead of a direct server URL.

One of `server_url`, `connector_id`, or `tunnel_id` must be provided.
"""


Expand Down
12 changes: 9 additions & 3 deletions src/openai/types/realtime/realtime_tools_config_union.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ class Mcp(BaseModel):
] = None
"""Identifier for service connectors, like those available in ChatGPT.

One of `server_url` or `connector_id` must be provided. Learn more about service
connectors
One of `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
about service connectors
[here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).

Currently supported `connector_id` values are:
Expand Down Expand Up @@ -155,7 +155,13 @@ class Mcp(BaseModel):
server_url: Optional[str] = None
"""The URL for the MCP server.

One of `server_url` or `connector_id` must be provided.
One of `server_url`, `connector_id`, or `tunnel_id` must be provided.
"""

tunnel_id: Optional[str] = None
"""The Secure MCP Tunnel ID to use instead of a direct server URL.

One of `server_url`, `connector_id`, or `tunnel_id` must be provided.
"""


Expand Down
12 changes: 9 additions & 3 deletions src/openai/types/realtime/realtime_tools_config_union_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ class Mcp(TypedDict, total=False):
]
"""Identifier for service connectors, like those available in ChatGPT.

One of `server_url` or `connector_id` must be provided. Learn more about service
connectors
One of `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
about service connectors
[here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).

Currently supported `connector_id` values are:
Expand Down Expand Up @@ -154,7 +154,13 @@ class Mcp(TypedDict, total=False):
server_url: str
"""The URL for the MCP server.

One of `server_url` or `connector_id` must be provided.
One of `server_url`, `connector_id`, or `tunnel_id` must be provided.
"""

tunnel_id: str
"""The Secure MCP Tunnel ID to use instead of a direct server URL.

One of `server_url`, `connector_id`, or `tunnel_id` must be provided.
"""


Expand Down
12 changes: 9 additions & 3 deletions src/openai/types/responses/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ class Mcp(BaseModel):
] = None
"""Identifier for service connectors, like those available in ChatGPT.

One of `server_url` or `connector_id` must be provided. Learn more about service
connectors
One of `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
about service connectors
[here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).

Currently supported `connector_id` values are:
Expand Down Expand Up @@ -179,7 +179,13 @@ class Mcp(BaseModel):
server_url: Optional[str] = None
"""The URL for the MCP server.

One of `server_url` or `connector_id` must be provided.
One of `server_url`, `connector_id`, or `tunnel_id` must be provided.
"""

tunnel_id: Optional[str] = None
"""The Secure MCP Tunnel ID to use instead of a direct server URL.

One of `server_url`, `connector_id`, or `tunnel_id` must be provided.
"""


Expand Down
12 changes: 9 additions & 3 deletions src/openai/types/responses/tool_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ class Mcp(TypedDict, total=False):
]
"""Identifier for service connectors, like those available in ChatGPT.

One of `server_url` or `connector_id` must be provided. Learn more about service
connectors
One of `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
about service connectors
[here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).

Currently supported `connector_id` values are:
Expand Down Expand Up @@ -179,7 +179,13 @@ class Mcp(TypedDict, total=False):
server_url: str
"""The URL for the MCP server.

One of `server_url` or `connector_id` must be provided.
One of `server_url`, `connector_id`, or `tunnel_id` must be provided.
"""

tunnel_id: str
"""The Secure MCP Tunnel ID to use instead of a direct server URL.

One of `server_url`, `connector_id`, or `tunnel_id` must be provided.
"""


Expand Down
2 changes: 1 addition & 1 deletion src/openai/types/video_edit_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class VideoEditParams(TypedDict, total=False):


class VideoVideoReferenceInputParam(TypedDict, total=False):
"""Reference to the completed video."""
"""Reference to the completed video to edit."""

id: Required[str]
"""The identifier of the completed video."""
Expand Down
Loading