Skip to content

Commit de2fd2c

Browse files
authored
Merge branch 'main' into ignore-azure-async-filter-events
2 parents 03cb1fb + 692fd08 commit de2fd2c

File tree

10 files changed

+29
-17
lines changed

10 files changed

+29
-17
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
examples:
5555
name: examples
5656
runs-on: ubuntu-latest
57+
if: github.repository == 'openai/openai-python'
5758

5859
steps:
5960
- uses: actions/checkout@v4

.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.70.0"
2+
".": "1.71.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 82
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-6663c59193eb95b201e492de17dcbd5e126ba03d18ce66287a3e2c632ca56fe7.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-4bce8217a697c729ac98046d4caf2c9e826b54c427fb0ab4f98e549a2e0ce31c.yml
33
openapi_spec_hash: 7996d2c34cc44fe2ce9ffe93c0ab774e
4-
config_hash: e25e31d8446b6bc0e3ef7103b6993cce
4+
config_hash: bcd2cacdcb9fae9938f273cd167f613c

CHANGELOG.md

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

3+
## 1.71.0 (2025-04-07)
4+
5+
Full Changelog: [v1.70.0...v1.71.0](https://github.com/openai/openai-python/compare/v1.70.0...v1.71.0)
6+
7+
### Features
8+
9+
* **api:** manual updates ([bf8b4b6](https://github.com/openai/openai-python/commit/bf8b4b69906bfaea622c9c644270e985d92e2df2))
10+
* **api:** manual updates ([3e37aa3](https://github.com/openai/openai-python/commit/3e37aa3e151d9738625a1daf75d6243d6fdbe8f2))
11+
* **api:** manual updates ([dba9b65](https://github.com/openai/openai-python/commit/dba9b656fa5955b6eba8f6910da836a34de8d59d))
12+
* **api:** manual updates ([f0c463b](https://github.com/openai/openai-python/commit/f0c463b47836666d091b5f616871f1b94646d346))
13+
14+
15+
### Chores
16+
17+
* **deps:** allow websockets v15 ([#2281](https://github.com/openai/openai-python/issues/2281)) ([19c619e](https://github.com/openai/openai-python/commit/19c619ea95839129a86c19d5b60133e1ed9f2746))
18+
* **internal:** only run examples workflow in main repo ([#2282](https://github.com/openai/openai-python/issues/2282)) ([c3e0927](https://github.com/openai/openai-python/commit/c3e0927d3fbbb9f753ba12adfa682a4235ba530a))
19+
* **internal:** remove trailing character ([#2277](https://github.com/openai/openai-python/issues/2277)) ([5a21a2d](https://github.com/openai/openai-python/commit/5a21a2d7994e39bb0c86271eeb807983a9ae874a))
20+
* Remove deprecated/unused remote spec feature ([23f76eb](https://github.com/openai/openai-python/commit/23f76eb0b9ddf12bcb04a6ad3f3ec5e956d2863f))
21+
322
## 1.70.0 (2025-03-31)
423

524
Full Changelog: [v1.69.0...v1.70.0](https://github.com/openai/openai-python/compare/v1.69.0...v1.70.0)

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "openai"
3-
version = "1.70.0"
3+
version = "1.71.0"
44
description = "The official Python library for the openai API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"
@@ -43,7 +43,7 @@ Repository = "https://github.com/openai/openai-python"
4343
openai = "openai.cli:main"
4444

4545
[project.optional-dependencies]
46-
realtime = ["websockets >= 13, < 15"]
46+
realtime = ["websockets >= 13, < 16"]
4747
datalib = ["numpy >= 1", "pandas >= 1.2.3", "pandas-stubs >= 1.1.0.11"]
4848
voice_helpers = ["sounddevice>=0.5.1", "numpy>=2.0.2"]
4949

requirements-dev.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ urllib3==2.2.1
188188
# via requests
189189
virtualenv==20.24.5
190190
# via nox
191-
websockets==14.2
191+
websockets==15.0.1
192192
# via openai
193193
zipp==3.17.0
194194
# via importlib-metadata

requirements.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ typing-extensions==4.12.2
7070
# via pydantic-core
7171
tzdata==2024.1
7272
# via pandas
73-
websockets==14.2
73+
websockets==15.0.1
7474
# via openai

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.70.0" # x-release-please-version
4+
__version__ = "1.71.0" # x-release-please-version

src/openai/resources/beta/realtime/realtime.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,6 @@ async def recv_bytes(self) -> bytes:
277277
"""
278278
message = await self._connection.recv(decode=False)
279279
log.debug(f"Received websocket message: %s", message)
280-
if not isinstance(message, bytes):
281-
# passing `decode=False` should always result in us getting `bytes` back
282-
raise TypeError(f"Expected `.recv(decode=False)` to return `bytes` but got {type(message)}")
283-
284280
return message
285281

286282
async def send(self, event: RealtimeClientEvent | RealtimeClientEventParam) -> None:
@@ -461,10 +457,6 @@ def recv_bytes(self) -> bytes:
461457
"""
462458
message = self._connection.recv(decode=False)
463459
log.debug(f"Received websocket message: %s", message)
464-
if not isinstance(message, bytes):
465-
# passing `decode=False` should always result in us getting `bytes` back
466-
raise TypeError(f"Expected `.recv(decode=False)` to return `bytes` but got {type(message)}")
467-
468460
return message
469461

470462
def send(self, event: RealtimeClientEvent | RealtimeClientEventParam) -> None:

tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1797,7 +1797,7 @@ def test_get_platform(self) -> None:
17971797
import threading
17981798
17991799
from openai._utils import asyncify
1800-
from openai._base_client import get_platform
1800+
from openai._base_client import get_platform
18011801
18021802
async def test_main() -> None:
18031803
result = await asyncify(get_platform)()

0 commit comments

Comments
 (0)