Repository navigation
Commit 38075d8
authored
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
- scripts/castiron
- src/openai/resources
- beta/responses
- responses
- tests
- lib
- responses
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
| 382 | + | |
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
| |||
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
634 | | - | |
| 634 | + | |
635 | 635 | | |
636 | 636 | | |
637 | 637 | | |
| |||
0 commit comments