google / mesop

Rapidly build AI apps in Python
https://google.github.io/mesop/
Apache License 2.0
5.1k stars 245 forks source link

Have the ability to render different data types in mel.chat #602

Open richard-to opened 1 month ago

richard-to commented 1 month ago

This is a suggestion I've heard a few times. Currently we suggest that people copy chat.py and add that functionality to support their data type and format.

Mostly just logging in case, this is something people really want in mel.chat.

The main request has been to be able to render image data from an LLM response.

wwwillchen commented 1 month ago

IMO, this may be better as an example in our demo gallery rather than fitting into mel.chat, otherwise mel.chat will get quite complicated.

richard-to commented 1 month ago

Yeah, I agree with you that this would be better as an example. I had been thinking a chat demo with all the bells and whistles. Probably a Gemini-ish inspired one. And then with the copy feature, I think it could work well.


But decided to post the issue just in case there is a strong sentiment for certain features in chat. I think previously we also had a request for clearing/reseting the chat history.