Skip to content

Commit 9f72f29

Browse files
xanecdotexDongheJin
authored andcommitted
feat: 1.move sample_frames from image_processor. 2.support diffenrent types in chat_template content.
1 parent 5dfbcaf commit 9f72f29

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

xllm/core/framework/chat_template/jinja_chat_template.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ nlohmann::ordered_json JinjaChatTemplate::get_mm_content(
147147
item_json["text"] = item.text;
148148
} else if (item.type == "video_url") {
149149
item_json["video"] = "mm place holder";
150+
item_json["video_url"] = "mm place holder";
151+
} else if (item.type == "image_url") {
152+
item_json["image"] = "mm place holder";
153+
item_json["image_url"] = "mm place holder";
154+
} else if (item.type == "audio_url") {
155+
item_json["audio"] = "mm place holder";
156+
item_json["audio_url"] = "mm place holder";
150157
} else {
151158
item_json[item.type] = "mm place holder";
152159
}

0 commit comments

Comments
 (0)