openui icon indicating copy to clipboard operation
openui copied to clipboard

How can i add an option to the "convert to"

Open frappierer opened this issue 9 months ago • 1 comments

Currently it looks like: image

Lets say i want to add Vanilla JS. How can i do that? Best

frappierer avatar May 13 '24 08:05 frappierer

Found it. Only thing i have to do is to edit the history.ts correct?

frappierer avatar May 13 '24 09:05 frappierer

Yep, that should do it. However I'm not sure vanilla JS would really make sense here. The model generates HTML and vanilla JS by default so there shouldn't need to be any conversion. The values in history.ts ultimately get sent to a an LLM with the prompt: Please turn this into a ${framework} component. and then it provides the existing HTML and javascript generated so I can't really imagine any conversion happening in the Vanilla JS case.

vanpelt avatar May 15 '24 14:05 vanpelt