Skip to main content

Module codex

Module codex 

Source
Expand description

Codex executor: OpenAI Responses on the ChatGPT Codex backend, with an OAuth token (bearer + Chatgpt-Account-Id) or a configured API key (codex-api-key).

HTTP paths port codex_executor_execute.go and codex_executor_stream.go. The WebSocket upstream lives in codex_ws.

Structs§

CodexExecutor
SteeringInput
A downstream connection’s later client frames (Go WebsocketInput) and the live account check for its bound credential (Go WebsocketAuthCheck).

Enums§

InterruptError
Why [CodexExecutor::interrupt] did not deliver a response.interrupt.

Constants§

DEFAULT_BASE_URL
NO_ACTIVE_UPSTREAM
Go ErrNoActiveUpstreamWebsocket.

Functions§

sanitize_alpha_search
sanitizeCodexAlphaSearchBody: drop prompt-cache fields, re-marshalling only when one was present (Go’s map round trip sorts keys and compacts).

Type Aliases§

ClientFrames
The queue of a downstream connection’s client frames, in arrival order. A bounded channel backpressures the client; the connection’s own loop reads it between turns.