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
// Internal constant - not exposed to user config to ensure consistent JSON output
26
-
constJSON_FORMAT_INSTRUCTION=`
27
-
Respond with JSON: {"identical": true/false, "description": "explanation"}
28
-
- Set "identical": true if screenshots match or have only ignorable artifacts
29
-
- Set "identical": false if meaningful differences exist
30
-
- Always provide a brief description`;
24
+
constJSON_FORMAT_INSTRUCTION=`CRITICAL: You must respond with ONLY valid JSON in this exact format:
25
+
{"identical": Boolean, "description": String}
26
+
27
+
**JSON Schema Reference:**
28
+
The JSON object MUST conform to the following schema:
29
+
{
30
+
"identical": <boolean>,
31
+
"description": <string>
32
+
}
33
+
34
+
**Requirements:**
35
+
1. **"identical":** Must be a standard boolean (\`true\` or \`false\`).
36
+
2. **"description":** Must be a detailed string explaining the reasoning.
37
+
* If identical is \`true\`, the description should be "Screenshots are functionally identical based on all comparison criteria."
38
+
* If identical is \`false\`, the description must clearly and concisely list the differences found (e.g., "The user count changed from 12 to 15, and the 'New User' button is missing."). Escape any internal double quotes with \\".`;
31
39
32
40
exportconstDEFAULT_CONFIG: VlmConfig={
33
41
model: 'llava:7b',
@@ -75,10 +83,9 @@ export class VlmService implements ImageComparator {
0 commit comments