mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
[imagegen] preserve image generation start events
This commit is contained in:
@@ -812,6 +812,17 @@ pub fn ev_image_generation_call(
|
||||
})
|
||||
}
|
||||
|
||||
pub fn ev_image_generation_call_added(id: &str, status: &str) -> Value {
|
||||
serde_json::json!({
|
||||
"type": "response.output_item.added",
|
||||
"item": {
|
||||
"type": "image_generation_call",
|
||||
"id": id,
|
||||
"status": status,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
pub fn ev_function_call(call_id: &str, name: &str, arguments: &str) -> Value {
|
||||
serde_json::json!({
|
||||
"type": "response.output_item.done",
|
||||
|
||||
Reference in New Issue
Block a user