File tree Expand file tree Collapse file tree 10 files changed +29
-17
lines changed Expand file tree Collapse file tree 10 files changed +29
-17
lines changed Original file line number Diff line number Diff line change 54
54
examples :
55
55
name : examples
56
56
runs-on : ubuntu-latest
57
+ if : github.repository == 'openai/openai-python'
57
58
58
59
steps :
59
60
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change 1
1
{
2
- "." : " 1.70 .0"
2
+ "." : " 1.71 .0"
3
3
}
Original file line number Diff line number Diff line change 1
1
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
3
3
openapi_spec_hash : 7996d2c34cc44fe2ce9ffe93c0ab774e
4
- config_hash : e25e31d8446b6bc0e3ef7103b6993cce
4
+ config_hash : bcd2cacdcb9fae9938f273cd167f613c
Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
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
+
3
22
## 1.70.0 (2025-03-31)
4
23
5
24
Full Changelog: [ v1.69.0...v1.70.0] ( https://github.com/openai/openai-python/compare/v1.69.0...v1.70.0 )
Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " openai"
3
- version = " 1.70 .0"
3
+ version = " 1.71 .0"
4
4
description = " The official Python library for the openai API"
5
5
dynamic = [" readme" ]
6
6
license = " Apache-2.0"
@@ -43,7 +43,7 @@ Repository = "https://github.com/openai/openai-python"
43
43
openai = " openai.cli:main"
44
44
45
45
[project .optional-dependencies ]
46
- realtime = [" websockets >= 13, < 15 " ]
46
+ realtime = [" websockets >= 13, < 16 " ]
47
47
datalib = [" numpy >= 1" , " pandas >= 1.2.3" , " pandas-stubs >= 1.1.0.11" ]
48
48
voice_helpers = [" sounddevice>=0.5.1" , " numpy>=2.0.2" ]
49
49
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ urllib3==2.2.1
188
188
# via requests
189
189
virtualenv==20.24.5
190
190
# via nox
191
- websockets==14.2
191
+ websockets==15.0.1
192
192
# via openai
193
193
zipp==3.17.0
194
194
# via importlib-metadata
Original file line number Diff line number Diff line change @@ -70,5 +70,5 @@ typing-extensions==4.12.2
70
70
# via pydantic-core
71
71
tzdata==2024.1
72
72
# via pandas
73
- websockets==14.2
73
+ websockets==15.0.1
74
74
# via openai
Original file line number Diff line number Diff line change 1
1
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
3
3
__title__ = "openai"
4
- __version__ = "1.70 .0" # x-release-please-version
4
+ __version__ = "1.71 .0" # x-release-please-version
Original file line number Diff line number Diff line change @@ -277,10 +277,6 @@ async def recv_bytes(self) -> bytes:
277
277
"""
278
278
message = await self ._connection .recv (decode = False )
279
279
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
-
284
280
return message
285
281
286
282
async def send (self , event : RealtimeClientEvent | RealtimeClientEventParam ) -> None :
@@ -461,10 +457,6 @@ def recv_bytes(self) -> bytes:
461
457
"""
462
458
message = self ._connection .recv (decode = False )
463
459
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
-
468
460
return message
469
461
470
462
def send (self , event : RealtimeClientEvent | RealtimeClientEventParam ) -> None :
Original file line number Diff line number Diff line change @@ -1797,7 +1797,7 @@ def test_get_platform(self) -> None:
1797
1797
import threading
1798
1798
1799
1799
from openai._utils import asyncify
1800
- from openai._base_client import get_platform
1800
+ from openai._base_client import get_platform
1801
1801
1802
1802
async def test_main() -> None:
1803
1803
result = await asyncify(get_platform)()
You can’t perform that action at this time.
0 commit comments