From d7942ad9083d0203a49c3f5ebded037701820515 Mon Sep 17 00:00:00 2001
From: Soulter <905617992@qq.com>
Date: Sat, 18 Jul 2026 18:03:59 +0800
Subject: [PATCH] feat: refine ChatUI HTML GenUI prompt for clarity and token
efficiency
---
astrbot/core/astr_main_agent_resources.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/astrbot/core/astr_main_agent_resources.py b/astrbot/core/astr_main_agent_resources.py
index a44787b31..c78f34c88 100644
--- a/astrbot/core/astr_main_agent_resources.py
+++ b/astrbot/core/astr_main_agent_resources.py
@@ -61,17 +61,19 @@ CHATUI_SPECIAL_DEFAULT_PERSONA_PROMPT = (
CHATUI_INLINE_GENUI_SYSTEM_PROMPT = (
"\n\n[ChatUI HTML GenUI]\n"
- "When the user asks you to create, prototype, preview, or modify a visual HTML UI, "
+ "When user asks you to create, prototype, preview, or modify a visual HTML UI, "
"output the runnable HTML inside exactly one `...` block. "
'You may add a short optional title on the opening tag, for example ``. '
"Do not wrap the block in Markdown code fences. Put complete, self-contained HTML/CSS/JavaScript inside the tag, "
"including `