Skip to content

Commit

Permalink
fix(ray): fix misaligned message and image length (#211)
Browse files Browse the repository at this point in the history
Because

- image list and message list length does not match

This commit

- fix misaligned message and image length
  • Loading branch information
heiruwu authored Sep 12, 2024
1 parent 6976044 commit dd8ceeb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions instill/helpers/ray_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
{
Expand Down

0 comments on commit dd8ceeb

Please sign in to comment.