[Frontend] Support image object in llm.chat (#19635)
Signed-off-by: sfeng33 <4florafeng@gmail.com> Signed-off-by: Flora Feng <4florafeng@gmail.com>
This commit is contained in:
@@ -264,10 +264,8 @@ def test_parse_chat_messages_multiple_images(
|
||||
"url": image_url
|
||||
}
|
||||
}, {
|
||||
"type": "image_url",
|
||||
"image_url": {
|
||||
"url": image_url
|
||||
}
|
||||
"type": "image_pil",
|
||||
"image_pil": ImageAsset('cherry_blossom').pil_image
|
||||
}, {
|
||||
"type": "text",
|
||||
"text": "What's in these images?"
|
||||
@@ -303,10 +301,8 @@ async def test_parse_chat_messages_multiple_images_async(
|
||||
"url": image_url
|
||||
}
|
||||
}, {
|
||||
"type": "image_url",
|
||||
"image_url": {
|
||||
"url": image_url
|
||||
}
|
||||
"type": "image_pil",
|
||||
"image_pil": ImageAsset('cherry_blossom').pil_image
|
||||
}, {
|
||||
"type": "text",
|
||||
"text": "What's in these images?"
|
||||
|
||||
Reference in New Issue
Block a user