wandb / openui

OpenUI let's you describe UI using your imagination, then see it rendered live.

Home Page:https://openui.fly.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

frappierer opened this issue · comments

Currently it looks like:
image

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

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

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.