Skip to content

Commit 38075d8

Browse files
fix(api): preserve Responses WebSocket connection behavior (#4221)
Use the SDK-owned connection helpers for stable and beta Responses WebSockets. This keeps header overrides, connection defaults, cleanup and recovery behavior in place when the clients are regenerated. It removes duplicate connection policy code from both generated resources. Validation: 617 targeted tests and 10 retained exit tests pass against a fresh, noneditable wheel installation. Two normal generation runs produce identical code. The three SDK-owned test updates are included in this PR. --------- Co-authored-by: markstuart-oai <323302876+markstuart-oai@users.noreply.github.com>
1 parent 3622a97 commit 38075d8

7 files changed

Lines changed: 170 additions & 463 deletions

File tree

‎.castiron.stats.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
schema_version: 1
2-
generation_id: 92191688-2814-4240-a392-408609958bf7
2+
generation_id: 518e3d93-186c-4c88-86e8-55cf698e7f68
33
openapi_spec_hash: c3c2cc244c107fdd6e624a7b961015a9
44
openapi_transformed_spec_hash: 5b121d4b6cca6573c41db323a7399527
55
config_hash: b707b209c892562880c415693d111ad6
6-
codegen_sha: 877cf0eac8dabd1578d463ff47f140c493bd4d1a
7-
codegen_hash: 78d280346819510f8ed577aad3d2df4df8dab155df63a48d6ae06e50a98111aa
6+
codegen_sha: fa973427eb9189f3d853d3facf90d0e9378564d1
7+
codegen_hash: 808925bbb2d1383e24adc2561d78688239e15f45bc83c0f1994fe04f05611980

‎scripts/castiron/generated-files.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@
379379
},
380380
"src/openai/resources/beta/responses/responses.py": {
381381
"mode": "100644",
382-
"sha256": "c5a3b0cb69c3f990dc2ae76db0d2c5fb2df54b8fc312d330cb33d223d1389d26"
382+
"sha256": "29ff4679a33f28cde16c0237daba278183374263a482a251f77eeabe5b010f94"
383383
},
384384
"src/openai/resources/beta/threads/__init__.py": {
385385
"mode": "100644",
@@ -631,7 +631,7 @@
631631
},
632632
"src/openai/resources/responses/responses.py": {
633633
"mode": "100644",
634-
"sha256": "86130a834c60c1b7df85118cbc918e84d0a23c122099f1f4e931c1a39b35abfa"
634+
"sha256": "ce72d2035cffd146d598fb548ed36ff17e47cf758ea1faa784bc245095b8a2d8"
635635
},
636636
"src/openai/resources/safety/__init__.py": {
637637
"mode": "100644",

0 commit comments

Comments
 (0)