model: support Step3V (#8583)

Signed-off-by: Xinyuan Tong <justinning0323@outlook.com>
Co-authored-by: nnnobody-code <nnnobody@foxmail.com>
Co-authored-by: ispobock <ispobaoke@gmail.com>
Co-authored-by: Qiaolin-Yu <qy254@cornell.edu>
Co-authored-by: Qiaolin-Yu <liin1211@outlook.com>
Co-authored-by: Xinyuan Tong <justinning0323@outlook.com>
Co-authored-by: Xinyuan Tong <115166877+JustinTong0323@users.noreply.github.com>
This commit is contained in:
Chang Su
2025-07-31 02:41:00 -07:00
committed by GitHub
co-authored by nnnobody-code ispobock Qiaolin-Yu Qiaolin-Yu Xinyuan Tong Xinyuan Tong
parent 09f1a247ce
commit 51c38163c1
16 changed files with 2340 additions and 23 deletions
+4 -1
View File
@@ -165,7 +165,7 @@ def process_content_for_template_format(
new_msg["content"] = processed_content_parts
return new_msg
else: # content_format == "string"
elif content_format == "string":
# String format: flatten to text only (for templates like DeepSeek)
text_parts = []
for chunk in msg_dict["content"]:
@@ -179,3 +179,6 @@ def process_content_for_template_format(
new_msg["content"] = " ".join(text_parts) if text_parts else ""
new_msg = {k: v for k, v in new_msg.items() if v is not None}
return new_msg
else:
raise ValueError(f"Invalid content format: {content_format}")