Skip to content

Commit cd5dc6b

Browse files
committed
fix prompt_modified
1 parent d3c3e20 commit cd5dc6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/llava/mtmd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ int32_t mtmd_tokenize(mtmd_context * ctx,
112112
string_replace_all(prompt_modified, ctx->image_marker, marker_modified);
113113
}
114114

115-
std::vector<std::string> parts = string_split_str(text.text, ctx->image_marker);
115+
std::vector<std::string> parts = string_split_str(prompt_modified, ctx->image_marker);
116116
output.clear();
117117
output.reserve(parts.size());
118118

0 commit comments

Comments
 (0)