mirror of
https://github.com/openai/codex.git
synced 2026-05-23 12:34:25 +00:00
Default Python SDK approval policy to never
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -46,7 +46,7 @@ PROMPT = (
|
||||
"Analyze a safe rollout plan for enabling a feature flag in production. "
|
||||
"Return JSON matching the requested schema."
|
||||
)
|
||||
APPROVAL_POLICY = AskForApproval.model_validate("never")
|
||||
APPROVAL_POLICY = AskForApproval.never
|
||||
|
||||
|
||||
async def main() -> None:
|
||||
|
||||
@@ -44,7 +44,7 @@ PROMPT = (
|
||||
"Analyze a safe rollout plan for enabling a feature flag in production. "
|
||||
"Return JSON matching the requested schema."
|
||||
)
|
||||
APPROVAL_POLICY = AskForApproval.model_validate("never")
|
||||
APPROVAL_POLICY = AskForApproval.never
|
||||
|
||||
with Codex(config=runtime_config()) as codex:
|
||||
thread = codex.thread_start(model="gpt-5.4", config={"model_reasoning_effort": "high"})
|
||||
|
||||
@@ -75,7 +75,7 @@ SANDBOX_POLICY = SandboxPolicy.model_validate(
|
||||
"access": {"type": "fullAccess"},
|
||||
}
|
||||
)
|
||||
APPROVAL_POLICY = AskForApproval.model_validate("never")
|
||||
APPROVAL_POLICY = AskForApproval.never
|
||||
|
||||
|
||||
async def main() -> None:
|
||||
|
||||
@@ -73,7 +73,7 @@ SANDBOX_POLICY = SandboxPolicy.model_validate(
|
||||
"access": {"type": "fullAccess"},
|
||||
}
|
||||
)
|
||||
APPROVAL_POLICY = AskForApproval.model_validate("never")
|
||||
APPROVAL_POLICY = AskForApproval.never
|
||||
|
||||
|
||||
with Codex(config=runtime_config()) as codex:
|
||||
|
||||
Reference in New Issue
Block a user