pub fn codex_command(
program: &str,
args: &[String],
gateway: &GatewayLaunch,
) -> Result<Command, String>Expand description
Codex through the gateway: a model provider defined for this run with
-c, its key in the environment. Codex names the session itself
(thread-id), which the gateway takes as the session. The key is fixed
for the life of the process.
Err when the caller’s own options choose or redefine the model provider:
they come after these and would win.