r/LocalLLaMA · · 1 min read

Use HTML as the primary chat language of your LLM's so they can make interactive content

Mirrored from r/LocalLLaMA for archival readability. Support the source by reading on the original site.

Use HTML as the primary chat language of your LLM's so they can make interactive content

A day or two back I posted about how you can use HTML directly as the output for your agent's chat. Many people mentioned that there was no point as with mermaid or graphviz agents can already draw diagrams, or that markdown was technically a superset of HTML (not that I've ever actually seen this used anywhere AI agents are concerned).

So anyway, here's a follow up post where the LLM is building animated and interactive elements inline with the chat, which I don't think can be done in markdown!
Technically it's very very simple: each of the agent's chat outputs is piped into an iframe on the page, so the code it writes is reasonably sandboxed.

This experimentation definitely pushes me towards the philosophy of disposable software. In a few years with faster, more capable models there's no reason not to do this. And even today on my dual 3090 rig with Qwen3.6-27B clocking along at about 70t/s, it's not too bad.

submitted by /u/sdfgeoff
[link] [comments]

Discussion (0)

Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.

Sign in →

No comments yet. Sign in and be the first to say something.

More from r/LocalLLaMA