Skip to main content

Module codex

Module codex 

Source
Expand description

ChatGPT Codex provider foundations.

This provider targets the ChatGPT-backed Codex Responses endpoint. The endpoint is not a stable OpenAI Platform API, so the public model ids keep a separate chatgpt-codex/ prefix and status copy labels it experimental.

Structs§

ChatGptCodexClient
Concrete ChatGPT Codex API client.

Enums§

ResponsesSseEvent
Parsed ChatGPT Codex Responses stream event.

Constants§

BASE_URL
ChatGPT Codex backend base URL.
DEFAULT_RECOMMENDED_MAX_TOKENS
Recommended request budget for known ChatGPT Codex models.
DISPLAY_MODEL_PREFIX
Display-only prefix for ChatGPT Codex models in the terminal UI.
MODEL_PREFIX
User/config-facing model id prefix.
RESPONSES_URL
ChatGPT Codex Responses endpoint.

Functions§

display_model_id
Render a concise display label without changing the configured model id.
error_message
Convert a ChatGPT Codex error into a human-readable failure string.
is_model_id
Whether model is a ChatGPT Codex model id.
is_retryable_error
known_models
Current ChatGPT Codex models from the provider expansion plan.
parse_responses_sse_chunk
Parse raw ChatGPT Codex Responses SSE data lines.
parse_responses_sse_event
Parse one ChatGPT Codex Responses SSE data: payload.
probe_env_or_dotenv_authentication
Verify the configured ChatGPT Codex credential using the model catalog.
raw_model_id
Strip chatgpt-codex/ from a model id.
reasoning_options
Return the currently verified ChatGPT Codex reasoning controls.
record_response_items
Extend an in-memory Responses history after one streamed response.
record_tool_output
Append a tool result to an in-memory Responses history.
supports_reasoning_effort
Whether this ChatGPT Codex model supports GPT-5.6 reasoning controls.