Documentation
¶
Overview ¶
Package liveopenai provides a shared OpenAI OAuth-backed runner for feature-example tests. Every non-skipped example test exercises real OpenAI via OAuth. Tests skip when credentials are missing unless GRATEFUL_LIVE_TESTS=required is set. Determinism is provided by loose, semantic assertions rather than deterministic mocks.
Configuration:
OPENAI_OAUTH_AUTH_JSON_PATH path to Codex auth.json (defaults to
$HOME/.codex/auth.json when present)
OPENAI_OAUTH_ACCOUNT_ID optional account ID to bind
OPENAI_OAUTH_ACCOUNT_ID_PATH optional path containing the account ID
OPENAI_BASE_URL override Codex backend base URL
OPENAI_LIVE_MODEL model name (defaults to gpt-5.5)
GRATEFUL_LIVE_TESTS=skip skip live tests without touching provider
credentials or network
GRATEFUL_LIVE_TESTS=required fail when required credentials are missing
Index ¶
Constants ¶
View Source
const DefaultModel = "gpt-5.5"
DefaultModel is the model name used when OPENAI_LIVE_MODEL is unset.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.