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.
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: