问HN:你是如何从大型语言模型中获得良好的前端界面效果的?

2 分•作者: VladVladikoff•3 个月前•原帖
我发现,在我的工作流程中,大型语言模型(LLMs)在生成后端代码方面表现得相当出色,但每当我让它们在现有网站上构建新的界面时,它们就会做出各种奇怪的事情。它们忽视现有的样式,自己编写样式;在我们已经有有效解决方案的地方构建自定义的JavaScript;未能正确对齐元素,选择随机颜色、随机字体大小等等。你们有没有什么妙招来避免这种混乱?
查看原文
I find in my workflow LLMs do a pretty excellent job of generating backend code, but whenever I get them to build a new bit of an interface on an existing website they do all sorts of wonky stuff. They ignore existing styles and write their own, they build custom javascript in places that we already have working solutions, they fail to properly align elements, pick random colours, random font sizes, etc, etc. Do you guys have some magic to avoid this madness?