From 68357888bec5d9bfb9adfda858e2513222cc27ba Mon Sep 17 00:00:00 2001 From: Heiru Wu Date: Thu, 12 Sep 2024 12:30:08 +0800 Subject: [PATCH] fix(ray): fix misaligned message and image length --- instill/helpers/ray_io.py | 1 + 1 file changed, 1 insertion(+) diff --git a/instill/helpers/ray_io.py b/instill/helpers/ray_io.py index 24c175a..268550e 100644 --- a/instill/helpers/ray_io.py +++ b/instill/helpers/ray_io.py @@ -805,6 +805,7 @@ async def parse_task_chat_to_multimodal_chat_input( images.append(imgs) if messages[0]["role"] != PROMPT_ROLES[-1]: + images.insert(0, []) messages.insert( 0, {