Skip to content

Fix displaying images in chat when the model returns them #42

@Odrec

Description

@Odrec

When using images to chat with the model, sometimes the model returns an image link in the answer. Right now that link appears broken in the chat. It would be better to detect the link during streaming and wrap it around st.image or some other way to display these images in the answer.

Example:

Screenshot from 2024-06-12 14-13-28

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions