fix CUA pending checks schema (#2189)

This commit is contained in:
Shuchang Zheng
2025-04-19 11:21:38 +08:00
committed by GitHub
parent 378d20ad03
commit 2e5e11a239

View File

@@ -1334,7 +1334,8 @@ class ForgeAgent:
},
}
if last_computer_call.pending_safety_checks:
computer_call_input["acknowledge_safety_checks"] = last_computer_call.pending_safety_checks
pending_checks = [check.model_dump() for check in last_computer_call.pending_safety_checks]
computer_call_input["acknowledge_safety_checks"] = pending_checks
current_response = await app.OPENAI_CLIENT.responses.create(
model="computer-use-preview",