jakethekoenig / llm-chat

A library of components for making llm chats
2 stars 0 forks source link

Artifact renderer #72

Open jakethekoenig opened 2 months ago

jakethekoenig commented 2 months ago

@mentatbot could you attempt this? What i want is sort of complicated:

i want a new renderer that renders messages that have content in an xml tag, What that tag is should be configurable by contructor. e.g. the content in that tag if it exists should cause the conversation the message to open a sidepanel where that content is displayed. the artifact renderer can accept a subrenderer that determines howbthat content is itself displayed. e.g. the artifact may contain an html.canvas and js you want to execute. the sidepanel should be dismissible. where the artifavt was made in the message therr should be a button to reopen it. lmk if you have any questions

mentatbot[bot] commented 2 months ago

I will start working on this issue