mirror of
https://github.com/openai/codex.git
synced 2026-05-20 11:12:43 +00:00
Add Python SDK Ruff formatting
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -22,7 +22,9 @@ async def main() -> None:
|
||||
async with AsyncCodex(config=runtime_config()) as codex:
|
||||
print("Server:", server_label(codex.metadata))
|
||||
|
||||
thread = await codex.thread_start(model="gpt-5.4", config={"model_reasoning_effort": "high"})
|
||||
thread = await codex.thread_start(
|
||||
model="gpt-5.4", config={"model_reasoning_effort": "high"}
|
||||
)
|
||||
result = await thread.run("Say hello in one sentence.")
|
||||
print("Items:", len(result.items))
|
||||
print("Text:", result.final_response)
|
||||
|
||||
Reference in New Issue
Block a user