Skip to content

Keep a text part when the message has no image - #657

Open
SashaMIT wants to merge 1 commit into
01-ai:mainfrom
SashaMIT:codered-text-part
Open

SashaMIT wants to merge 1 commit into
01-ai:mainfrom
SashaMIT:codered-text-part

Conversation

@SashaMIT

Copy link
Copy Markdown

Summary

A user message whose content is a list of text parts was added only when an image URL was also present. where is the cat never reached the prompt, and the completion still ran. The text is now kept. hello and world around one image are both kept. A plain string still stays hi there.

Test plan

  • python -m unittest VL/llava/test_user_content.py failed on tip (where is the cat was absent) and passes with this change.

A content list with only text was left out of the prompt, and the completion still ran.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant