akhaliq HF Staff commited on
Commit
8e42224
·
1 Parent(s): 148b186

update glm 4.5v system prompt

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -70,11 +70,17 @@ Always output only the HTML code inside a ```html ... ``` code block, and do not
70
  # Stricter prompt for GLM-4.5V to ensure a complete, runnable HTML document with no escaped characters
71
  GLM45V_HTML_SYSTEM_PROMPT = """You are an expert front-end developer.
72
 
73
- Output a COMPLETE, STANDALONE HTML document that renders directly in a browser. Requirements:
74
- - Include <!DOCTYPE html>, <html>, <head>, and <body> with proper nesting
75
- - Include all required <link> and <script> tags for any libraries you use
 
 
 
76
  - Do NOT escape characters (no \\n, \\t, or escaped quotes). Output raw HTML/JS/CSS.
77
- - If you use React or Tailwind, include correct CDN tags
 
 
 
78
  - Keep everything in ONE file; inline CSS/JS as needed
79
 
80
  Return ONLY the code inside a single ```html ... ``` code block. No additional text before or after.
 
70
  # Stricter prompt for GLM-4.5V to ensure a complete, runnable HTML document with no escaped characters
71
  GLM45V_HTML_SYSTEM_PROMPT = """You are an expert front-end developer.
72
 
73
+ Output a COMPLETE, STANDALONE HTML document that renders directly in a browser.
74
+
75
+ Hard constraints:
76
+ - DO NOT use React, ReactDOM, JSX, Babel, Vue, Angular, Svelte, or any SPA framework.
77
+ - Use ONLY plain HTML, CSS, and vanilla JavaScript.
78
+ - Allowed external resources: Tailwind CSS CDN, Font Awesome CDN, Google Fonts.
79
  - Do NOT escape characters (no \\n, \\t, or escaped quotes). Output raw HTML/JS/CSS.
80
+
81
+ Structural requirements:
82
+ - Include <!DOCTYPE html>, <html>, <head>, and <body> with proper nesting
83
+ - Include required <link> tags for any CSS you reference (e.g., Tailwind, Font Awesome, Google Fonts)
84
  - Keep everything in ONE file; inline CSS/JS as needed
85
 
86
  Return ONLY the code inside a single ```html ... ``` code block. No additional text before or after.