fix CUA pending checks schema (#2189)
This commit is contained in:
@@ -1334,7 +1334,8 @@ class ForgeAgent:
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
if last_computer_call.pending_safety_checks:
|
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(
|
current_response = await app.OPENAI_CLIENT.responses.create(
|
||||||
model="computer-use-preview",
|
model="computer-use-preview",
|
||||||
|
|||||||
Reference in New Issue
Block a user