Skip to content

Commit 1df2236

Browse files
committed
Fix multimodal_input.h
1 parent d64d28b commit 1df2236

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

extension/llm/runner/multimodal_input.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,19 +164,19 @@ class ET_EXPERIMENTAL MultimodalInput {
164164

165165
// Convenience factory functions
166166
inline MultimodalInput make_text_input(const std::string& text) noexcept {
167-
return {text};
167+
return MultimodalInput(text);
168168
}
169169

170170
inline MultimodalInput make_text_input(std::string&& text) noexcept {
171-
return {std::move(text)};
171+
return MultimodalInput(std::move(text));
172172
}
173173

174174
inline MultimodalInput make_image_input(const Image& image) noexcept {
175-
return {image};
175+
return MultimodalInput(image);
176176
}
177177

178178
inline MultimodalInput make_image_input(Image&& image) noexcept {
179-
return {std::move(image)};
179+
return MultimodalInput(std::move(image));
180180
}
181181

182182
} // namespace executorch::extension::llm

0 commit comments

Comments
 (0)