Skip to content

Commit 4a81b4e

Browse files
release: 1.80.0 (openai#2367)
* codegen metadata * chore(docs): grammar improvements * feat(api): new API tools * release: 1.80.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 5bc7307 commit 4a81b4e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1681
-81
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.79.0"
2+
".": "1.80.0"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 101
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-262e171d0a8150ea1192474d16ba3afdf9a054b399f1a49a9c9b697a3073c136.yml
3-
openapi_spec_hash: 33e00a48df8f94c94f46290c489f132b
4-
config_hash: d8d5fda350f6db77c784f35429741a2e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-a5651cb97f86d1e2531af6aef8c5230f1ea350560fbae790ca2e481b30a6c217.yml
3+
openapi_spec_hash: 66a5104fd3bb43383cf919225df7a6fd
4+
config_hash: bb657c3fed232a56930035de3aaed936

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## 1.80.0 (2025-05-21)
4+
5+
Full Changelog: [v1.79.0...v1.80.0](https://github.com/openai/openai-python/compare/v1.79.0...v1.80.0)
6+
7+
### Features
8+
9+
* **api:** new API tools ([d36ae52](https://github.com/openai/openai-python/commit/d36ae528d55fe87067c4b8c6b2c947cbad5e5002))
10+
11+
12+
### Chores
13+
14+
* **docs:** grammar improvements ([e746145](https://github.com/openai/openai-python/commit/e746145a12b5335d8841aff95c91bbbde8bae8e3))
15+
316
## 1.79.0 (2025-05-16)
417

518
Full Changelog: [v1.78.1...v1.79.0](https://github.com/openai/openai-python/compare/v1.78.1...v1.79.0)

SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ before making any information public.
1616
## Reporting Non-SDK Related Security Issues
1717

1818
If you encounter security issues that are not directly related to SDKs but pertain to the services
19-
or products provided by OpenAI please follow the respective company's security reporting guidelines.
19+
or products provided by OpenAI, please follow the respective company's security reporting guidelines.
2020

2121
### OpenAI Terms and Policies
2222

2323
Our Security Policy can be found at [Security Policy URL](https://openai.com/policies/coordinated-vulnerability-disclosure-policy).
2424

25-
Please contact [email protected] for any questions or concerns regarding security of our services.
25+
Please contact [email protected] for any questions or concerns regarding the security of our services.
2626

2727
---
2828

api.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,10 @@ from openai.types.responses import (
717717
ResponseFunctionToolCallItem,
718718
ResponseFunctionToolCallOutputItem,
719719
ResponseFunctionWebSearch,
720+
ResponseImageGenCallCompletedEvent,
721+
ResponseImageGenCallGeneratingEvent,
722+
ResponseImageGenCallInProgressEvent,
723+
ResponseImageGenCallPartialImageEvent,
720724
ResponseInProgressEvent,
721725
ResponseIncludable,
722726
ResponseIncompleteEvent,
@@ -730,14 +734,28 @@ from openai.types.responses import (
730734
ResponseInputMessageItem,
731735
ResponseInputText,
732736
ResponseItem,
737+
ResponseMcpCallArgumentsDeltaEvent,
738+
ResponseMcpCallArgumentsDoneEvent,
739+
ResponseMcpCallCompletedEvent,
740+
ResponseMcpCallFailedEvent,
741+
ResponseMcpCallInProgressEvent,
742+
ResponseMcpListToolsCompletedEvent,
743+
ResponseMcpListToolsFailedEvent,
744+
ResponseMcpListToolsInProgressEvent,
733745
ResponseOutputAudio,
734746
ResponseOutputItem,
735747
ResponseOutputItemAddedEvent,
736748
ResponseOutputItemDoneEvent,
737749
ResponseOutputMessage,
738750
ResponseOutputRefusal,
739751
ResponseOutputText,
752+
ResponseOutputTextAnnotationAddedEvent,
753+
ResponseQueuedEvent,
754+
ResponseReasoningDeltaEvent,
755+
ResponseReasoningDoneEvent,
740756
ResponseReasoningItem,
757+
ResponseReasoningSummaryDeltaEvent,
758+
ResponseReasoningSummaryDoneEvent,
741759
ResponseReasoningSummaryPartAddedEvent,
742760
ResponseReasoningSummaryPartDoneEvent,
743761
ResponseReasoningSummaryTextDeltaEvent,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "openai"
3-
version = "1.79.0"
3+
version = "1.80.0"
44
description = "The official Python library for the openai API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/openai/_streaming.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __stream__(self) -> Iterator[_T]:
5959
if sse.data.startswith("[DONE]"):
6060
break
6161

62-
if sse.event is None or sse.event.startswith("response.") or sse.event.startswith('transcript.'):
62+
if sse.event is None or sse.event.startswith("response.") or sse.event.startswith("transcript."):
6363
data = sse.json()
6464
if is_mapping(data) and data.get("error"):
6565
message = None
@@ -161,7 +161,7 @@ async def __stream__(self) -> AsyncIterator[_T]:
161161
if sse.data.startswith("[DONE]"):
162162
break
163163

164-
if sse.event is None or sse.event.startswith("response.") or sse.event.startswith('transcript.'):
164+
if sse.event is None or sse.event.startswith("response.") or sse.event.startswith("transcript."):
165165
data = sse.json()
166166
if is_mapping(data) and data.get("error"):
167167
message = None

src/openai/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "openai"
4-
__version__ = "1.79.0" # x-release-please-version
4+
__version__ = "1.80.0" # x-release-please-version

src/openai/helpers/local_audio_player.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async def play(
6565
if input.dtype == np.int16 and self.dtype == np.float32:
6666
audio_content = (input.astype(np.float32) / 32767.0).reshape(-1, self.channels)
6767
elif input.dtype == np.float32:
68-
audio_content = cast('npt.NDArray[np.float32]', input)
68+
audio_content = cast("npt.NDArray[np.float32]", input)
6969
else:
7070
raise ValueError(f"Unsupported dtype: {input.dtype}")
7171
else:

src/openai/lib/_parsing/_responses.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ def parse_response(
103103
or output.type == "file_search_call"
104104
or output.type == "web_search_call"
105105
or output.type == "reasoning"
106+
or output.type == "mcp_call"
107+
or output.type == "mcp_approval_request"
108+
or output.type == "image_generation_call"
109+
or output.type == "code_interpreter_call"
110+
or output.type == "local_shell_call"
111+
or output.type == "mcp_list_tools"
112+
or output.type == 'exec'
106113
):
107114
output_list.append(output)
108115
elif TYPE_CHECKING: # type: ignore

0 commit comments

Comments
 (0)