mirror of
https://github.com/openai/codex.git
synced 2026-04-26 07:35:29 +00:00
Adds WebRTC startup to the experimental app-server `thread/realtime/start` method with an optional transport enum. The websocket path remains the default; WebRTC offers create the realtime session through the shared start flow and emit the answer SDP via `thread/realtime/sdp`. --------- Co-authored-by: Codex <noreply@openai.com>
codex-client
Generic transport layer that wraps HTTP requests, retries, and streaming primitives without any Codex/OpenAI awareness.
- Defines
HttpTransportand a defaultReqwestTransportplus thinRequest/Responsetypes. - Provides retry utilities (
RetryPolicy,RetryOn,run_with_retry,backoff) that callers plug into for unary and streaming calls. - Supplies the
sse_streamhelper to turn byte streams into raw SSEdata:frames with idle timeouts and surfaced stream errors. - Consumed by higher-level crates like
codex-api; it stays neutral on endpoints, headers, or API-specific error shapes.