Luca448 commited on
Commit
2110460
·
1 Parent(s): deedb25

Savestate: Force JSON output by appending strong instruction to prompt, because lite models often ignore system instructions

Browse files
Files changed (2) hide show
  1. index.html +1 -1
  2. src/ai/router.js +3 -0
index.html CHANGED
@@ -65,7 +65,7 @@
65
  </head>
66
  <body class="dark-theme in-chat-view">
67
 
68
- <div id="live-version-badge" style="position: fixed; top: 50px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-secondary); opacity: 0.6; z-index: 99999; pointer-events: none; font-weight: 500; font-family: monospace; letter-spacing: 1px; background: rgba(0,0,0,0.2); padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05);">BUILD 1.8.212</div>
69
 
70
  <!-- SVG Filters for Liquid Glass Refraction -->
71
  <svg width="0" height="0" style="position: absolute; pointer-events: none;">
 
65
  </head>
66
  <body class="dark-theme in-chat-view">
67
 
68
+ <div id="live-version-badge" style="position: fixed; top: 50px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-secondary); opacity: 0.6; z-index: 99999; pointer-events: none; font-weight: 500; font-family: monospace; letter-spacing: 1px; background: rgba(0,0,0,0.2); padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05);">BUILD 1.8.213</div>
69
 
70
  <!-- SVG Filters for Liquid Glass Refraction -->
71
  <svg width="0" height="0" style="position: absolute; pointer-events: none;">
src/ai/router.js CHANGED
@@ -111,6 +111,9 @@ export class AIRouter {
111
  } else if (systemInstruction && systemInstruction.parts) {
112
  systemInstruction.parts.push({ text: wsInfo });
113
  }
 
 
 
114
  if (onStatus) onStatus('Berechne räumliche Koordinaten für Inpainting...');
115
  }
116
  }
 
111
  } else if (systemInstruction && systemInstruction.parts) {
112
  systemInstruction.parts.push({ text: wsInfo });
113
  }
114
+
115
+ prompt += `\n\n[WICHTIG: Antworte ZWINGEND mit dem [WORKSHEET_JSON_START] Block für die Inpainting-Koordinaten, wie in der System-Instruktion definiert. OHNE dieses JSON funktioniert das Inpainting nicht!]`;
116
+
117
  if (onStatus) onStatus('Berechne räumliche Koordinaten für Inpainting...');
118
  }
119
  }