使用大型语言模型(LLMs)生成SVG图形的最佳方法是什么?
我正在进行一个项目,需要动态生成简单的图标和图表。我尝试过GPT-4和Claude,它们可以输出SVG代码,但结果有时好有时坏,尤其是对于基本形状以外的内容。
有没有人找到可靠的工作流程?我在想是否有专门的模型、更好的提示技巧,或者我是否应该直接使用传统的图形库,完全跳过大型语言模型的路径。你们在实际生产中使用的是什么有效的方法?
查看原文
I'm working on a project that needs to dynamically generate simple icons and diagrams. I'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'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's actually working in production for you?