This commit is contained in:
won
2026-05-27 20:48:34 -07:00
parent d121f9377a
commit 89b205c92b
2 changed files with 2 additions and 3 deletions

View File

@@ -88,7 +88,7 @@ async fn generated_output_returns_image_input_and_persists_artifact() {
"Generated images are saved to {} as {} by default.\n\
If you need to use a generated image at another path, copy it and leave the original in place unless the user explicitly asks you to delete it.",
tempdir.path().display(),
tempdir.path().join("_image_id_.png").display(),
tempdir.path().join("call-1.png").display(),
),
},
]

View File

@@ -42,7 +42,6 @@ const IMAGE_MODEL: &str = "gpt-image-2";
const MAX_EDIT_IMAGES: usize = 5;
const IMAGEGEN_DESCRIPTION: &str = include_str!("../imagegen_description.md");
const GENERATED_IMAGE_ARTIFACTS_DIR: &str = "generated_images";
const IMAGE_ID_PLACEHOLDER: &str = "<image_id>";
#[derive(Clone)]
pub(crate) struct ImageGenerationTool {
@@ -318,7 +317,7 @@ async fn persist_generated_image(
"Generated images are saved to {} as {} by default.\n\
If you need to use a generated image at another path, copy it and leave the original in place unless the user explicitly asks you to delete it.",
output_dir.display(),
generated_image_output_path(output_dir, IMAGE_ID_PLACEHOLDER).display(),
generated_image_output_path(output_dir, call_id).display(),
))
}