mirror of
https://github.com/openai/codex.git
synced 2026-11-17 22:10:37 +00:00
Set explicit image detail in the restored-history prewarm test (#61969)
Construct the injected image as a `ResponseInputItem::Message` with `ImageDetail::High` in the restored-history prewarm scenario. GitOrigin-RevId: 6a414d2c52cb4d2195e6721365c97677c49c956e
This commit is contained in:
committed by
copyberry
parent
c8d1ba814e
commit
39b5903898
@@ -137,9 +137,19 @@ async fn warmup_includes_interrupted_image_and_generation_adds_injected_image()
|
||||
let _ = release.send(());
|
||||
reopen(&mut test, /*base_url*/ None).await?;
|
||||
test.codex
|
||||
.inject_response_items(vec![ResponseItem::from(ResponseInputItem::from(vec![
|
||||
image_input("file_injected"),
|
||||
]))])
|
||||
.inject_response_items(vec![
|
||||
ResponseInputItem::Message {
|
||||
role: "user".into(),
|
||||
content: vec![ContentItem::InputImage {
|
||||
image: ImageReference::File {
|
||||
file_id: "file_injected".into(),
|
||||
},
|
||||
detail: Some(ImageDetail::High),
|
||||
}],
|
||||
phase: None,
|
||||
}
|
||||
.into(),
|
||||
])
|
||||
.await?;
|
||||
test.submit_text_turn("continue").await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user