Skip to content

feat: expose Responses WebSocket keepalive options#3080

Merged
seratch merged 1 commit intomainfrom
feat/responses-ws-keepalive-options
May 2, 2026
Merged

feat: expose Responses WebSocket keepalive options#3080
seratch merged 1 commit intomainfrom
feat/responses-ws-keepalive-options

Conversation

@seratch
Copy link
Copy Markdown
Member

@seratch seratch commented May 2, 2026

This pull request adds configurable keepalive options for the OpenAI Responses WebSocket transport.

It introduces OpenAIResponsesWebSocketOptions with ping_interval and ping_timeout, threads those settings through OpenAIResponsesWSModel, OpenAIProvider, MultiProvider, and responses_websocket_session(), and passes them to the underlying websockets.connect() call. This lets users increase or disable heartbeat timeouts for long reasoning turns or networks with latency spikes without private monkeypatching.

@seratch seratch added this to the 0.15.x milestone May 2, 2026
@github-actions github-actions Bot added enhancement New feature or request feature:core labels May 2, 2026
@seratch seratch mentioned this pull request May 2, 2026
@seratch seratch merged commit 4b2881c into main May 2, 2026
10 checks passed
@seratch seratch deleted the feat/responses-ws-keepalive-options branch May 2, 2026 00:18
seratch added a commit that referenced this pull request May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request feature:core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant