[Minor] Always append newline after image token when parsing chat message (#6797)
This commit is contained in:
@@ -562,9 +562,6 @@ def generate_chat_conv(
|
|||||||
if content.type == "image_url":
|
if content.type == "image_url":
|
||||||
num_image_url += 1
|
num_image_url += 1
|
||||||
conv.modalities.append(content.modalities)
|
conv.modalities.append(content.modalities)
|
||||||
if num_image_url > 1:
|
|
||||||
image_token = conv.image_token
|
|
||||||
else:
|
|
||||||
image_token = (
|
image_token = (
|
||||||
conv.image_token + "\n"
|
conv.image_token + "\n"
|
||||||
if conv.name != "qwen2-vl"
|
if conv.name != "qwen2-vl"
|
||||||
|
|||||||
Reference in New Issue
Block a user