Hacker News new | ask | show | jobs
by _pdp_ 210 days ago
This is so redundant it is beyond reason.

Given LLMs can generate code complex frontend code, why is so difficult for Antropic / OpenAI to prompt their chat applications to create UI on the fly that matches 100% their Chat applications?

I know this is possible because this is how we do it.

The LLM generates some text that we know how to interpret and we render it on the screen.

Besides, this is exactly how their canvas thing works (both chtgpt and claude) when rendering documents on the side.

1 comments

Also, this is how GitHub Copilot works when rendering UI to preview draft tickets. It is simply a markdown fenced codeblock with some special properties in the language definition.

Not only this approach is more specific to the application where the UI is supposed to render but it also opens the door for the user to customise how the UI should work by adding their own prompts.

The approach that OpenAI has taken is not better - it is simply a mechanism to create some sort of app store - something they have attempted to do many times in the past as well.