You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 93d3174
Browse filesBrowse the repository at this point in the historyBrowse files
Add diagram/wireframe quick-analysis prompts for attached images
Vision models already understand any attached image - this just saves
retyping a good prompt for the common case of attaching a UI mockup,
wireframe, or diagram. An "Analyze as" menu next to image attachments
fills the composer with a preset prompt: describe the UI, convert to a
Mermaid diagram, generate React+Tailwind code from it, list components,
or review it for usability/accessibility issues.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ Beyond chat, Modelforge includes an **agentic mode** — the model can read/writ
28
28
29
29
**Chat & providers**
30
30
- Local Ollama models, OpenAI, and Anthropic in one interface, with token-by-token streaming.
31
-
- Vision support — attach images (or extract frames from a video) for models that can see them.
31
+
- Vision support — attach images (or extract frames from a video) for models that can see them. When an image is attached, an **"Analyze as..."** menu fills the composer with a ready-made prompt for common diagram/wireframe tasks — describe the UI, convert it to a Mermaid diagram, generate React + Tailwind code from it, list its components, or review it for usability/accessibility issues.
32
32
- Live token usage and estimated cost per message and per session (Ollama is free/local; cloud providers show a running estimate).
modelsDirApplied: "Applied — Ollama restarted with the new location.",
281
287
modelsDirFailed: "Couldn't restart Ollama with the new location. Try starting it manually.",
282
288
modelsDirExternalWarning: "Saved, but Ollama is running outside this app — restart it manually (with OLLAMA_MODELS set to this folder) for the change to take effect.",
289
+
analyzeAs: "Analyze as...",
290
+
analyzeDescribeUI: "Describe UI/wireframe",
291
+
analyzeToMermaid: "Convert to Mermaid diagram",
292
+
analyzeToCode: "Convert to React + Tailwind code",
modelsDirApplied: "Uygulandı — Ollama yeni konumla yeniden başlatıldı.",
448
460
modelsDirFailed: "Ollama yeni konumla yeniden başlatılamadı. Elle başlatmayı deneyin.",
449
461
modelsDirExternalWarning: "Kaydedildi, ancak Ollama bu uygulamanın dışında çalışıyor — değişikliğin etkili olması için Ollama'yı bu klasör OLLAMA_MODELS olarak ayarlanmış şekilde elle yeniden başlatın.",
prompt: "Describe this UI/wireframe in detail: overall layout, every visible component, and how they're organized/hierarchical.",
107
+
},
108
+
{
109
+
id: "mermaid",
110
+
labelKey: "analyzeToMermaid",
111
+
prompt: "Convert this diagram into a Mermaid diagram definition (pick whichever Mermaid diagram type — flowchart, sequence, class, etc. — best fits what's shown).",
112
+
},
113
+
{
114
+
id: "code",
115
+
labelKey: "analyzeToCode",
116
+
prompt: "Generate React + Tailwind CSS code that reproduces this UI mockup/wireframe as closely as possible.",
117
+
},
118
+
{
119
+
id: "components",
120
+
labelKey: "analyzeListComponents",
121
+
prompt: "List every distinct UI component visible in this image, grouped by type (buttons, inputs, navigation, cards, etc.).",
122
+
},
123
+
{
124
+
id: "issues",
125
+
labelKey: "analyzeFindIssues",
126
+
prompt: "Review this UI/wireframe for usability or accessibility issues and suggest concrete improvements.",
127
+
},
128
+
];
93
129
// Caps how many automatic tool-result -> model-continuation round trips can
94
130
// happen for a single user turn, so a model that keeps calling tools without
95
131
// ever producing a final answer can't loop indefinitely.
@@ -551,6 +587,11 @@ export default function Chat() {
0 commit comments