mgbam commited on
Commit
3db2c42
·
verified ·
1 Parent(s): 072365a

Update constants.py

Browse files
Files changed (1) hide show
  1. constants.py +357 -107
constants.py CHANGED
@@ -33,120 +33,370 @@ def get_gradio_language(lang: str) -> Optional[str]:
33
 
34
  # --------------------------------------------------------------------------- #
35
  # 2 · Search/replace markers #
36
- # --------------------------------------------------------------------------- #
37
  SEARCH_START = "<<<<<<< SEARCH"
38
- DIVIDER = "======="
39
- REPLACE_END = ">>>>>>> REPLACE"
40
 
41
- # --------------------------------------------------------------------------- #
42
- # 3 · System prompts (regular + with search”) #
43
- # --------------------------------------------------------------------------- #
44
- HTML_SYSTEM_PROMPT = (
45
- "ONLY USE HTML, CSS, JS. Produce **one** fully‑responsive `<html>` file; "
46
- "put all CSS inside a `<style>` tag in `<head>`, all JS inside one "
47
- "`<script>` before `</body>`. No inline styles. Respond solely with a "
48
- "```html``` fenced block no extra commentary."
49
- )
50
-
51
- HTML_SYSTEM_PROMPT_WITH_SEARCH = (
52
- HTML_SYSTEM_PROMPT
53
- + "\n\nFeel free to integrate insights gleaned from live web‑search."
54
- )
55
-
56
- TRANSFORMERS_JS_SYSTEM_PROMPT = (
57
- "Create a browser‑only demo using `@xenova/transformers`. Output **exactly "
58
- "three** fenced blocks, in order: `index.html`, `index.js`, `style.css`. "
59
- "No prose."
60
- )
61
-
62
- TRANSFORMERS_JS_SYSTEM_PROMPT_WITH_SEARCH = (
63
- TRANSFORMERS_JS_SYSTEM_PROMPT
64
- + "\n\nLeverage real‑time search to adopt the latest transformers.js tricks."
65
- )
66
-
67
- SVELTE_SYSTEM_PROMPT = (
68
- "Generate the minimum custom files for a SvelteKit (TS) app. Always emit "
69
- "`src/App.svelte` and `src/app.css` blocks extra components only if needed."
70
- )
71
-
72
- SVELTE_SYSTEM_PROMPT_WITH_SEARCH = (
73
- SVELTE_SYSTEM_PROMPT
74
- + "\n\nUse live search results to stay current with Svelte best‑practices."
75
- )
76
-
77
- GENERIC_SYSTEM_PROMPT = (
78
- "You are an expert {language} developer. Deliver clean, runnable "
79
- "{language} code inside one fenced block and nothing else."
80
- )
81
-
82
- GENERIC_SYSTEM_PROMPT_WITH_SEARCH = (
83
- GENERIC_SYSTEM_PROMPT
84
- + "\n\nIncorporate any pertinent findings from web‑search."
85
- )
86
-
87
- FollowUpSystemPrompt = f"""
88
- Modify existing code using SEARCH / REPLACE blocks only:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  {SEARCH_START}
91
- old lines
92
  {DIVIDER}
93
- new lines
 
 
 
94
  {REPLACE_END}
95
- """.strip()
96
-
97
- TransformersJSFollowUpSystemPrompt = (
98
- "You are editing an existing **transformers.js** project (index.html / "
99
- "index.js / style.css). Use the same SEARCH / REPLACE format.\n"
100
- + FollowUpSystemPrompt
101
- )
102
-
103
- SYSTEM_PROMPTS: Dict[str, str] = {
104
- "html": HTML_SYSTEM_PROMPT,
105
- "html_search": HTML_SYSTEM_PROMPT_WITH_SEARCH,
106
- "transformers.js": TRANSFORMERS_JS_SYSTEM_PROMPT,
107
- "transformers.js_search": TRANSFORMERS_JS_SYSTEM_PROMPT_WITH_SEARCH,
108
- "svelte": SVELTE_SYSTEM_PROMPT,
109
- "svelte_search": SVELTE_SYSTEM_PROMPT_WITH_SEARCH,
110
- }
111
 
112
- # --------------------------------------------------------------------------- #
113
- # 4 · Model catalogue #
114
- # --------------------------------------------------------------------------- #
115
- AVAILABLE_MODELS: List[Dict[str, str]] = [
116
- # ── the 12 models from the user’s screenshot ───────────────────────────
117
- {"name": "Moonshot Kimi‑K2", "id": "moonshotai/Kimi-K2-Instruct"},
118
- {"name": "DeepSeek V3", "id": "deepseek-ai/DeepSeek-V3-0324"},
119
- {"name": "DeepSeek R1", "id": "deepseek-ai/DeepSeek-R1-0528"},
120
- {"name": "ERNIE‑4.5‑VL", "id": "baidu/ERNIE-4.5-VL-424B-A47B-Base-PT"},
121
- {"name": "MiniMax M1", "id": "MiniMaxAI/MiniMax-M1-80k"},
122
- {"name": "Qwen3‑235B‑A22B", "id": "Qwen/Qwen3-235B-A22B"},
123
- {"name": "SmolLM3‑3B", "id": "HuggingFaceTB/SmolLM3-3B"},
124
- {"name": "GLM‑4.1V‑9B‑Thinking", "id": "THUDM/GLM-4.1V-9B-Thinking"},
125
- {"name": "Qwen3‑235B‑A22B‑Instruct‑2507", "id": "Qwen/Qwen3-235B-A22B-Instruct-2507"},
126
- {"name": "Qwen3‑Coder‑480B‑A35B", "id": "Qwen/Qwen3-Coder-480B-A35B-Instruct"},
127
- {"name": "Qwen3‑32B", "id": "Qwen/Qwen3-32B"},
128
- {"name": "Qwen3‑235B‑A22B‑Thinking", "id": "Qwen/Qwen3-235B-A22B-Thinking-2507"},
129
- # ── optional extra providers (comment‑out if unneeded) ─────────────────
130
- {"name": "OpenAI GPT‑4", "id": "openai/gpt-4", "provider": "openai"},
131
- {"name": "Gemini Pro", "id": "gemini/pro", "provider": "gemini"},
132
- {"name": "Fireworks V1", "id": "fireworks-ai/fireworks-v1", "provider": "fireworks"},
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  ]
134
 
135
- # --------------------------------------------------------------------------- #
136
- # 5 · Sidebar quick‑start demos #
137
- # --------------------------------------------------------------------------- #
138
- DEMO_LIST: List[Dict[str, str]] = [
139
- {"title": "Todo App", "description": "Add / delete / complete todo list."},
140
- {"title": "Calculator", "description": "Four‑function calculator."},
141
- {"title": "Chat Interface", "description": "Two‑pane chat layout."},
142
- {"title": "E‑commerce Product", "description": "Responsive product card."},
143
- {"title": "Login Form", "description": "Email + password form."},
144
- {"title": "Dashboard Layout", "description": "Sidebar nav + content grid."},
145
- {"title": "Data Table", "description": "Sortable, filterable table."},
146
- {"title": "Image Gallery", "description": "CSS‑grid lightbox gallery."},
147
- {"title": "UI from Image", "description": "Screenshot → HTML/CSS."},
148
- {"title": "Extract Text from Img", "description": "OCR image for text."},
149
- {"title": "Website Redesign", "description": "Modern redesign of a URL."},
150
- {"title": "Modify HTML", "description": "Apply SEARCH / REPLACE edits."},
151
- {"title": "Transformers.js Demo", "description": "Pure browser AI demo."},
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  ]
 
33
 
34
  # --------------------------------------------------------------------------- #
35
  # 2 · Search/replace markers #
36
+ # Search/Replace Constants
37
  SEARCH_START = "<<<<<<< SEARCH"
38
+ DIVIDER = "======="
39
+ REPLACE_END = ">>>>>>> REPLACE"
40
 
41
+ # Configuration
42
+ HTML_SYSTEM_PROMPT = """ONLY USE HTML, CSS AND JAVASCRIPT. If you want to use ICON make sure to import the library first. Try to create the best UI possible by using only HTML, CSS and JAVASCRIPT. MAKE IT RESPONSIVE USING MODERN CSS. Use as much as you can modern CSS for the styling, if you can't do something with modern CSS, then use custom CSS. Also, try to elaborate as much as you can, to create something unique. ALWAYS GIVE THE RESPONSE INTO A SINGLE HTML FILE
43
+ For website redesign tasks:
44
+ - Use the provided original HTML code as the starting point for redesign
45
+ - Preserve all original content, structure, and functionality
46
+ - Keep the same semantic HTML structure but enhance the styling
47
+ - Reuse all original images and their URLs from the HTML code
48
+ - Create a modern, responsive design with improved typography and spacing
49
+ - Use modern CSS frameworks and design patterns
50
+ - Ensure accessibility and mobile responsiveness
51
+ - Maintain the same navigation and user flow
52
+ - Enhance the visual design while keeping the original layout structure
53
+ If an image is provided, analyze it and use the visual information to better understand the user's requirements.
54
+ Always respond with code that can be executed or rendered directly.
55
+ Always output only the HTML code inside a ```html ... ``` code block, and do not include any explanations or extra text. Do NOT add the language name at the top of the code output."""
56
+
57
+ TRANSFORMERS_JS_SYSTEM_PROMPT = """You are an expert web developer creating a transformers.js application. You will generate THREE separate files: index.html, index.js, and style.css.
58
+ IMPORTANT: You MUST output ALL THREE files in the following format:
59
+ ```html
60
+ <!-- index.html content here -->
61
+ ```
62
+ ```javascript
63
+ // index.js content here
64
+ ```
65
+ ```css
66
+ /* style.css content here */
67
+ ```
68
+ Requirements:
69
+ 1. Create a modern, responsive web application using transformers.js
70
+ 2. Use the transformers.js library for AI/ML functionality
71
+ 3. Create a clean, professional UI with good user experience
72
+ 4. Make the application fully responsive for mobile devices
73
+ 5. Use modern CSS practices and JavaScript ES6+ features
74
+ 6. Include proper error handling and loading states
75
+ 7. Follow accessibility best practices
76
+ The index.html should contain the basic HTML structure and link to the CSS and JS files.
77
+ The index.js should contain all the JavaScript logic including transformers.js integration.
78
+ The style.css should contain all the styling for the application.
79
+ Always output only the three code blocks as shown above, and do not include any explanations or extra text."""
80
+
81
+ SVELTE_SYSTEM_PROMPT = """You are an expert Svelte developer creating a modern Svelte application. You will generate ONLY the custom files that need user-specific content for the user's requested application.
82
+ IMPORTANT: You MUST output files in the following format. Generate ONLY the files needed for the user's specific request:
83
+ ```svelte
84
+ <!-- src/App.svelte content here -->
85
+ ```
86
+ ```css
87
+ /* src/app.css content here */
88
+ ```
89
+ If you need additional components for the user's specific app, add them like:
90
+ ```svelte
91
+ <!-- src/lib/ComponentName.svelte content here -->
92
+ ```
93
+ Requirements:
94
+ 1. Create a modern, responsive Svelte application based on the user's specific request
95
+ 2. Use TypeScript for better type safety
96
+ 3. Create a clean, professional UI with good user experience
97
+ 4. Make the application fully responsive for mobile devices
98
+ 5. Use modern CSS practices and Svelte best practices
99
+ 6. Include proper error handling and loading states
100
+ 7. Follow accessibility best practices
101
+ 8. Use Svelte's reactive features effectively
102
+ 9. Include proper component structure and organization
103
+ 10. Generate ONLY components that are actually needed for the user's requested application
104
+ Files you should generate:
105
+ - src/App.svelte: Main application component (ALWAYS required)
106
+ - src/app.css: Global styles (ALWAYS required)
107
+ - src/lib/[ComponentName].svelte: Additional components (ONLY if needed for the user's specific app)
108
+ The other files (index.html, package.json, vite.config.ts, tsconfig files, svelte.config.js, src/main.ts, src/vite-env.d.ts) are provided by the Svelte template and don't need to be generated.
109
+ Always output only the two code blocks as shown above, and do not include any explanations or extra text."""
110
+
111
+ SVELTE_SYSTEM_PROMPT_WITH_SEARCH = """You are an expert Svelte developer creating a modern Svelte application. You have access to real-time web search. When needed, use web search to find the latest information, best practices, or specific Svelte technologies.
112
+ You will generate ONLY the custom files that need user-specific content.
113
+ IMPORTANT: You MUST output ONLY the custom files in the following format:
114
+ ```svelte
115
+ <!-- src/App.svelte content here -->
116
+ ```
117
+ ```css
118
+ /* src/app.css content here -->
119
+ ```
120
+ Requirements:
121
+ 1. Create a modern, responsive Svelte application
122
+ 2. Use TypeScript for better type safety
123
+ 3. Create a clean, professional UI with good user experience
124
+ 4. Make the application fully responsive for mobile devices
125
+ 5. Use modern CSS practices and Svelte best practices
126
+ 6. Include proper error handling and loading states
127
+ 7. Follow accessibility best practices
128
+ 8. Use Svelte's reactive features effectively
129
+ 9. Include proper component structure and organization
130
+ 10. Use web search to find the latest Svelte patterns, libraries, and best practices
131
+ The files you generate are:
132
+ - src/App.svelte: Main application component (your custom app logic)
133
+ - src/app.css: Global styles (your custom styling)
134
+ The other files (index.html, package.json, vite.config.ts, tsconfig files, svelte.config.js, src/main.ts, src/vite-env.d.ts) are provided by the Svelte template and don't need to be generated.
135
+ Always output only the two code blocks as shown above, and do not include any explanations or extra text."""
136
+
137
+ TRANSFORMERS_JS_SYSTEM_PROMPT_WITH_SEARCH = """You are an expert web developer creating a transformers.js application. You have access to real-time web search. When needed, use web search to find the latest information, best practices, or specific technologies for transformers.js.
138
+ You will generate THREE separate files: index.html, index.js, and style.css.
139
+ IMPORTANT: You MUST output ALL THREE files in the following format:
140
+ ```html
141
+ <!-- index.html content here -->
142
+ ```
143
+ ```javascript
144
+ // index.js content here
145
+ ```
146
+ ```css
147
+ /* style.css content here */
148
+ ```
149
+ Requirements:
150
+ 1. Create a modern, responsive web application using transformers.js
151
+ 2. Use the transformers.js library for AI/ML functionality
152
+ 3. Use web search to find current best practices and latest transformers.js features
153
+ 4. Create a clean, professional UI with good user experience
154
+ 5. Make the application fully responsive for mobile devices
155
+ 6. Use modern CSS practices and JavaScript ES6+ features
156
+ 7. Include proper error handling and loading states
157
+ 8. Follow accessibility best practices
158
+ The index.html should contain the basic HTML structure and link to the CSS and JS files.
159
+ The index.js should contain all the JavaScript logic including transformers.js integration.
160
+ The style.css should contain all the styling for the application.
161
+ Always output only the three code blocks as shown above, and do not include any explanations or extra text."""
162
+
163
+ GENERIC_SYSTEM_PROMPT = """You are an expert {language} developer. Write clean, idiomatic, and runnable {language} code for the user's request. If possible, include comments and best practices. Output ONLY the code inside a ``` code block, and do not include any explanations or extra text. If the user provides a file or other context, use it as a reference. If the code is for a script or app, make it as self-contained as possible. Do NOT add the language name at the top of the code output."""
164
+
165
+ # System prompt with search capability
166
+ HTML_SYSTEM_PROMPT_WITH_SEARCH = """ONLY USE HTML, CSS AND JAVASCRIPT. If you want to use ICON make sure to import the library first. Try to create the best UI possible by using only HTML, CSS and JAVASCRIPT. MAKE IT RESPONSIVE USING MODERN CSS. Use as much as you can modern CSS for the styling, if you can't do something with modern CSS, then use custom CSS. Also, try to elaborate as much as you can, to create something unique. ALWAYS GIVE THE RESPONSE INTO A SINGLE HTML FILE
167
+ You have access to real-time web search. When needed, use web search to find the latest information, best practices, or specific technologies.
168
+ For website redesign tasks:
169
+ - Use the provided original HTML code as the starting point for redesign
170
+ - Preserve all original content, structure, and functionality
171
+ - Keep the same semantic HTML structure but enhance the styling
172
+ - Reuse all original images and their URLs from the HTML code
173
+ - Use web search to find current design trends and best practices for the specific type of website
174
+ - Create a modern, responsive design with improved typography and spacing
175
+ - Use modern CSS frameworks and design patterns
176
+ - Ensure accessibility and mobile responsiveness
177
+ - Maintain the same navigation and user flow
178
+ - Enhance the visual design while keeping the original layout structure
179
+ If an image is provided, analyze it and use the visual information to better understand the user's requirements.
180
+ Always respond with code that can be executed or rendered directly.
181
+ Always output only the HTML code inside a ```html ... ``` code block, and do not include any explanations or extra text. Do NOT add the language name at the top of the code output."""
182
+
183
+ GENERIC_SYSTEM_PROMPT_WITH_SEARCH = """You are an expert {language} developer. You have access to real-time web search. When needed, use web search to find the latest information, best practices, or specific technologies for {language}.
184
+ Write clean, idiomatic, and runnable {language} code for the user's request. If possible, include comments and best practices. Output ONLY the code inside a ``` code block, and do not include any explanations or extra text. If the user provides a file or other context, use it as a reference. If the code is for a script or app, make it as self-contained as possible. Do NOT add the language name at the top of the code output."""
185
+
186
+ # Follow-up system prompt for modifying existing HTML files
187
+ FollowUpSystemPrompt = f"""You are an expert web developer modifying an existing HTML file.
188
+ The user wants to apply changes based on their request.
189
+ You MUST output ONLY the changes required using the following SEARCH/REPLACE block format. Do NOT output the entire file.
190
+ Explain the changes briefly *before* the blocks if necessary, but the code changes THEMSELVES MUST be within the blocks.
191
+ Format Rules:
192
+ 1. Start with {SEARCH_START}
193
+ 2. Provide the exact lines from the current code that need to be replaced.
194
+ 3. Use {DIVIDER} to separate the search block from the replacement.
195
+ 4. Provide the new lines that should replace the original lines.
196
+ 5. End with {REPLACE_END}
197
+ 6. You can use multiple SEARCH/REPLACE blocks if changes are needed in different parts of the file.
198
+ 7. To insert code, use an empty SEARCH block (only {SEARCH_START} and {DIVIDER} on their lines) if inserting at the very beginning, otherwise provide the line *before* the insertion point in the SEARCH block and include that line plus the new lines in the REPLACE block.
199
+ 8. To delete code, provide the lines to delete in the SEARCH block and leave the REPLACE block empty (only {DIVIDER} and {REPLACE_END} on their lines).
200
+ 9. IMPORTANT: The SEARCH block must *exactly* match the current code, including indentation and whitespace.
201
+ Example Modifying Code:
202
+ ```
203
+ Some explanation...
204
+ {SEARCH_START}
205
+ <h1>Old Title</h1>
206
+ {DIVIDER}
207
+ <h1>New Title</h1>
208
+ {REPLACE_END}
209
+ {SEARCH_START}
210
+ </body>
211
+ {DIVIDER}
212
+ <script>console.log("Added script");</script>
213
+ </body>
214
+ {REPLACE_END}
215
+ ```
216
+ Example Deleting Code:
217
+ ```
218
+ Removing the paragraph...
219
+ {SEARCH_START}
220
+ <p>This paragraph will be deleted.</p>
221
+ {DIVIDER}
222
+ {REPLACE_END}
223
+ ```"""
224
 
225
+ # Follow-up system prompt for modifying existing transformers.js applications
226
+ TransformersJSFollowUpSystemPrompt = f"""You are an expert web developer modifying an existing transformers.js application.
227
+ The user wants to apply changes based on their request.
228
+ You MUST output ONLY the changes required using the following SEARCH/REPLACE block format. Do NOT output the entire file.
229
+ Explain the changes briefly *before* the blocks if necessary, but the code changes THEMSELVES MUST be within the blocks.
230
+ The transformers.js application consists of three files: index.html, index.js, and style.css.
231
+ When making changes, specify which file you're modifying by starting your search/replace blocks with the file name.
232
+ Format Rules:
233
+ 1. Start with {SEARCH_START}
234
+ 2. Provide the exact lines from the current code that need to be replaced.
235
+ 3. Use {DIVIDER} to separate the search block from the replacement.
236
+ 4. Provide the new lines that should replace the original lines.
237
+ 5. End with {REPLACE_END}
238
+ 6. You can use multiple SEARCH/REPLACE blocks if changes are needed in different parts of the file.
239
+ 7. To insert code, use an empty SEARCH block (only {SEARCH_START} and {DIVIDER} on their lines) if inserting at the very beginning, otherwise provide the line *before* the insertion point in the SEARCH block and include that line plus the new lines in the REPLACE block.
240
+ 8. To delete code, provide the lines to delete in the SEARCH block and leave the REPLACE block empty (only {DIVIDER} and {REPLACE_END} on their lines).
241
+ 9. IMPORTANT: The SEARCH block must *exactly* match the current code, including indentation and whitespace.
242
+ Example Modifying HTML:
243
+ ```
244
+ Changing the title in index.html...
245
+ {SEARCH_START}
246
+ <title>Old Title</title>
247
+ {DIVIDER}
248
+ <title>New Title</title>
249
+ {REPLACE_END}
250
+ ```
251
+ Example Modifying JavaScript:
252
+ ```
253
+ Adding a new function to index.js...
254
  {SEARCH_START}
255
+ // Existing code
256
  {DIVIDER}
257
+ // Existing code
258
+ function newFunction() {{
259
+ console.log("New function added");
260
+ }}
261
  {REPLACE_END}
262
+ ```
263
+ Example Modifying CSS:
264
+ ```
265
+ Changing background color in style.css...
266
+ {SEARCH_START}
267
+ body {{
268
+ background-color: white;
269
+ }}
270
+ {DIVIDER}
271
+ body {{
272
+ background-color: #f0f0f0;
273
+ }}
274
+ {REPLACE_END}
275
+ ```"""
 
 
276
 
277
+ # Available models
278
+ AVAILABLE_MODELS = [
279
+ {
280
+ "name": "Moonshot Kimi-K2",
281
+ "id": "moonshotai/Kimi-K2-Instruct",
282
+ "description": "Moonshot AI Kimi-K2-Instruct model for code generation and general tasks"
283
+ },
284
+ {
285
+ "name": "DeepSeek V3",
286
+ "id": "deepseek-ai/DeepSeek-V3-0324",
287
+ "description": "DeepSeek V3 model for code generation"
288
+ },
289
+ {
290
+ "name": "DeepSeek R1",
291
+ "id": "deepseek-ai/DeepSeek-R1-0528",
292
+ "description": "DeepSeek R1 model for code generation"
293
+ },
294
+ {
295
+ "name": "ERNIE-4.5-VL",
296
+ "id": "baidu/ERNIE-4.5-VL-424B-A47B-Base-PT",
297
+ "description": "ERNIE-4.5-VL model for multimodal code generation with image support"
298
+ },
299
+ {
300
+ "name": "MiniMax M1",
301
+ "id": "MiniMaxAI/MiniMax-M1-80k",
302
+ "description": "MiniMax M1 model for code generation and general tasks"
303
+ },
304
+ {
305
+ "name": "Qwen3-235B-A22B",
306
+ "id": "Qwen/Qwen3-235B-A22B",
307
+ "description": "Qwen3-235B-A22B model for code generation and general tasks"
308
+ },
309
+ {
310
+ "name": "SmolLM3-3B",
311
+ "id": "HuggingFaceTB/SmolLM3-3B",
312
+ "description": "SmolLM3-3B model for code generation and general tasks"
313
+ },
314
+ {
315
+ "name": "GLM-4.1V-9B-Thinking",
316
+ "id": "THUDM/GLM-4.1V-9B-Thinking",
317
+ "description": "GLM-4.1V-9B-Thinking model for multimodal code generation with image support"
318
+ },
319
+ {
320
+ "name": "Qwen3-235B-A22B-Instruct-2507",
321
+ "id": "Qwen/Qwen3-235B-A22B-Instruct-2507",
322
+ "description": "Qwen3-235B-A22B-Instruct-2507 model for code generation and general tasks"
323
+ },
324
+ {
325
+ "name": "Qwen3-Coder-480B-A35B",
326
+ "id": "Qwen/Qwen3-Coder-480B-A35B-Instruct",
327
+ "description": "Qwen3-Coder-480B-A35B-Instruct model for advanced code generation and programming tasks"
328
+ },
329
+ {
330
+ "name": "Qwen3-32B",
331
+ "id": "Qwen/Qwen3-32B",
332
+ "description": "Qwen3-32B model for code generation and general tasks"
333
+ },
334
+ {
335
+ "name": "Qwen3-235B-A22B-Thinking",
336
+ "id": "Qwen/Qwen3-235B-A22B-Thinking-2507",
337
+ "description": "Qwen3-235B-A22B-Thinking model with advanced reasoning capabilities"
338
+ }
339
  ]
340
 
341
+ DEMO_LIST = [
342
+ {
343
+ "title": "Todo App",
344
+ "description": "Create a simple todo application with add, delete, and mark as complete functionality"
345
+ },
346
+ {
347
+ "title": "Calculator",
348
+ "description": "Build a basic calculator with addition, subtraction, multiplication, and division"
349
+ },
350
+ {
351
+ "title": "Chat Interface",
352
+ "description": "Build a chat interface with message history and user input"
353
+ },
354
+ {
355
+ "title": "E-commerce Product Card",
356
+ "description": "Create a product card component for an e-commerce website"
357
+ },
358
+ {
359
+ "title": "Login Form",
360
+ "description": "Build a responsive login form with validation"
361
+ },
362
+ {
363
+ "title": "Dashboard Layout",
364
+ "description": "Create a dashboard layout with sidebar navigation and main content area"
365
+ },
366
+ {
367
+ "title": "Data Table",
368
+ "description": "Build a data table with sorting and filtering capabilities"
369
+ },
370
+ {
371
+ "title": "Image Gallery",
372
+ "description": "Create an image gallery with lightbox functionality and responsive grid layout"
373
+ },
374
+ {
375
+ "title": "UI from Image",
376
+ "description": "Upload an image of a UI design and I'll generate the HTML/CSS code for it"
377
+ },
378
+ {
379
+ "title": "Extract Text from Image",
380
+ "description": "Upload an image containing text and I'll extract and process the text content"
381
+ },
382
+ {
383
+ "title": "Website Redesign",
384
+ "description": "Enter a website URL to extract its content and redesign it with a modern, responsive layout"
385
+ },
386
+ {
387
+ "title": "Modify HTML",
388
+ "description": "After generating HTML, ask me to modify it with specific changes using search/replace format"
389
+ },
390
+ {
391
+ "title": "Search/Replace Example",
392
+ "description": "Generate HTML first, then ask: 'Change the title to My New Title' or 'Add a blue background to the body'"
393
+ },
394
+ {
395
+ "title": "Transformers.js App",
396
+ "description": "Create a transformers.js application with AI/ML functionality using the transformers.js library"
397
+ },
398
+ {
399
+ "title": "Svelte App",
400
+ "description": "Create a modern Svelte application with TypeScript, Vite, and responsive design"
401
+ }
402
  ]