This commit is contained in:
Charles Cunningham
2026-01-09 13:07:03 -08:00
parent 5e4e63c6ab
commit 0d4873f671
2 changed files with 2 additions and 3 deletions

View File

@@ -146,7 +146,6 @@ mod tests {
use codex_protocol::models::ReasoningItemReasoningSummary;
use codex_protocol::models::ResponseItem;
use codex_protocol::models::WebSearchAction;
use codex_protocol::models::local_image_label_text;
use codex_protocol::user_input::UserInput;
use pretty_assertions::assert_eq;
@@ -191,7 +190,7 @@ mod tests {
#[test]
fn skips_local_image_label_text() {
let image_url = "data:image/png;base64,abc".to_string();
let label = local_image_label_text(1);
let label = codex_protocol::models::local_image_open_tag_text(1);
let user_text = "Please review this image.".to_string();
let item = ResponseItem::Message {

View File

@@ -190,7 +190,7 @@ pub fn local_image_label_text(label_number: usize) -> String {
format!("[Image #{label_number}]")
}
fn local_image_open_tag_text(label_number: usize) -> String {
pub fn local_image_open_tag_text(label_number: usize) -> String {
let label = local_image_label_text(label_number);
format!("{LOCAL_IMAGE_OPEN_TAG_PREFIX}{label}{LOCAL_IMAGE_OPEN_TAG_SUFFIX}")
}