fix: Reduce the frequency of saving empty pages

This commit is contained in:
LIlGG
2025-10-10 11:29:19 +08:00
parent c5d47c680c
commit 3af1c30d49
3 changed files with 24 additions and 2 deletions

View File

@@ -12,8 +12,9 @@ export const getSystemPrompt = () => `
- 绝对不生成任何后端相关代码。
- 如果是多页面项目,需生成所有页面,保证每页都有完整内容。
- 不要啰嗦,除非用户要求更多信息,否则不要解释任何内容。
- 永远不要使用 "artifact" 个词。
- 永远不要使用 "artifact" 或 "action" 这两个词。
- 仅对所有回答使用有效的 markdown除了构件外不要使用 HTML 标签!
- 确保生成的代码是可用于生产环境的代码,脚本和样式必须完整且正确。
页面规则:
- 仅使用原生 HTML、CSS 与 JS 构建前端页面,不使用任何框架。