Spaces:
Paused
Paused
Savestate: Update AI system prompt to explicitly detect empty text lines as gaps
Browse files- index.html +1 -1
- src/ai/router.js +1 -1
index.html
CHANGED
|
@@ -74,7 +74,7 @@
|
|
| 74 |
</head>
|
| 75 |
<body class="dark-theme in-chat-view">
|
| 76 |
|
| 77 |
-
<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.
|
| 78 |
|
| 79 |
<!-- SVG Filters for Liquid Glass Refraction -->
|
| 80 |
<svg width="0" height="0" style="position: absolute; pointer-events: none;">
|
|
|
|
| 74 |
</head>
|
| 75 |
<body class="dark-theme in-chat-view">
|
| 76 |
|
| 77 |
+
<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.226</div>
|
| 78 |
|
| 79 |
<!-- SVG Filters for Liquid Glass Refraction -->
|
| 80 |
<svg width="0" height="0" style="position: absolute; pointer-events: none;">
|
src/ai/router.js
CHANGED
|
@@ -106,7 +106,7 @@ export class AIRouter {
|
|
| 106 |
|
| 107 |
if (intentResult && intentResult.trim().toUpperCase().includes('JA')) {
|
| 108 |
isWorksheetInpainting = true;
|
| 109 |
-
const wsInfo = `\n\n--- KI ARBEITSBLATT AUSFÜLLEN (INPAINTING) ---\nDu musst das Arbeitsblatt lösen und die exakten Koordinaten (x, y) für
|
| 110 |
|
| 111 |
if (typeof systemInstruction === 'string') {
|
| 112 |
systemInstruction += wsInfo;
|
|
|
|
| 106 |
|
| 107 |
if (intentResult && intentResult.trim().toUpperCase().includes('JA')) {
|
| 108 |
isWorksheetInpainting = true;
|
| 109 |
+
const wsInfo = `\n\n--- KI ARBEITSBLATT AUSFÜLLEN (INPAINTING) ---\nDu musst das Arbeitsblatt lösen und die exakten Koordinaten (x, y) für JEDE Lücke finden. WICHTIG: Zu "Lücken" gehören nicht nur umrandete Kästchen, sondern ausdrücklich auch leere Schreiblinien oder großer Freiraum (z.B. für Definitionen, Rechenwege oder Textaufgaben)! \nACHTUNG: Du MUSST zwingend mit einem gültigen JSON-Block im folgenden Format antworten (verwende das Tag [WORKSHEET_JSON_START] und [WORKSHEET_JSON_END]):\n[WORKSHEET_JSON_START]\n[\n { "text": "Deine Lösung hier", "x": 100, "y": 200, "width": 150, "height": 30 }\n]\n[WORKSHEET_JSON_END]\nDie Koordinaten (x, y, width, height) beziehen sich auf eine normalisierte Skala von 0 bis 1000 für das hochgeladene Bild. Gib VOR dem JSON gerne eine kurze Erklärung.`;
|
| 110 |
|
| 111 |
if (typeof systemInstruction === 'string') {
|
| 112 |
systemInstruction += wsInfo;
|