使用大型语言模型(LLMs)生成SVG图形的最佳方法是什么?

2作者: huly1120 天前原帖
我正在进行一个项目,需要动态生成简单的图标和图表。我尝试过GPT-4和Claude,它们可以输出SVG代码,但结果有时好有时坏,尤其是对于基本形状以外的内容。 有没有人找到可靠的工作流程?我在想是否有专门的模型、更好的提示技巧,或者我是否应该直接使用传统的图形库,完全跳过大型语言模型的路径。你们在实际生产中使用的是什么有效的方法?
查看原文
I&#x27;m working on a project that needs to dynamically generate simple icons and diagrams. I&#x27;ve tried GPT-4 and Claude - they can output SVG code but the results are hit or miss, especially for anything beyond basic shapes.<p>Has anyone found a reliable workflow for this? I&#x27;m wondering if there are specialized models, better prompting techniques, or if I should just use a traditional graphics library and skip the LLM route entirely. What&#x27;s actually working in production for you?