Expand description
Transport-level helpers for the OpenAI Responses WebSocket surface.
The WebSocket request frame is a response.create object. Internally GPROXY
runs the existing HTTP Responses pipeline, so the frame is converted into a
normal /v1/responses JSON body. The response path strips SSE framing back
to plain JSON text messages, matching the Responses WebSocket wire shape.
Structs§
- Response
WebSocket SseDecoder - Incrementally converts Responses SSE bytes into WebSocket text messages.
Functions§
- http_
request_ to_ ws_ request - Convert a normal HTTP Responses request body into a WebSocket
response.createtext frame. - identity
- response_
create_ frame_ to_ response_ body - Convert a downstream
response.createWebSocket text frame into the JSON body for an internalPOST /v1/responsesrequest. - validate_
response_ create_ frame - Validate a downstream Responses WebSocket frame without normalizing it.
- ws_
request_ to_ http_ request - Convert a WebSocket
response.createframe back into a normal HTTP Responses request body.