Skip to content

How can I use images directly in the handlebar template? #6455

Closed Answered by dmytrostruk
takeo-iw asked this question in Q&A
Discussion options

You must be logged in to vote

@takeo-iw If you want to use text and image contents in chat prompts (i.e. <message> tags) you need to explicitly specify the type of content using dedicated tags:

<message role='user'>
   <text>Text content</text>
   <image>https://image-url</image>
</message>

Let me know if that helps. Thank you!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@takeo-iw
Comment options

@dmytrostruk
Comment options

Answer selected by dmytrostruk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants