Spaces:
Paused
Paused
Fix: Explicitly instruct Gemini to use unique search queries for each flashcard to prevent duplicate Bing images
Browse files- index.html +1 -1
- src/ai/tools/flashcard-tool.js +1 -1
index.html
CHANGED
|
@@ -51,7 +51,7 @@
|
|
| 51 |
</head>
|
| 52 |
<body class="dark-theme in-chat-view">
|
| 53 |
|
| 54 |
-
<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.1.
|
| 55 |
|
| 56 |
<!-- SVG Filters for Liquid Glass Refraction -->
|
| 57 |
<svg width="0" height="0" style="position: absolute; pointer-events: none;">
|
|
|
|
| 51 |
</head>
|
| 52 |
<body class="dark-theme in-chat-view">
|
| 53 |
|
| 54 |
+
<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.1.112</div>
|
| 55 |
|
| 56 |
<!-- SVG Filters for Liquid Glass Refraction -->
|
| 57 |
<svg width="0" height="0" style="position: absolute; pointer-events: none;">
|
src/ai/tools/flashcard-tool.js
CHANGED
|
@@ -28,7 +28,7 @@ export const flashcardToolDef = {
|
|
| 28 |
back: { type: "string", description: "WICHTIG: Die REINE Übersetzung in target_lang. Darf NICHT leer sein!" },
|
| 29 |
explanation: { type: "string", description: "SEHR KURZE Erklärung (maximal 15 Wörter) zwingend in target_lang." },
|
| 30 |
example: { type: "string", description: "Ein aussagekräftiger Beispielsatz zwingend in target_lang." },
|
| 31 |
-
search_query: { type: "string", description: "Ein SEHR SIMPLER englischer Suchbegriff für ein Bild." }
|
| 32 |
},
|
| 33 |
required: ["front", "back", "explanation", "example", "search_query"]
|
| 34 |
}
|
|
|
|
| 28 |
back: { type: "string", description: "WICHTIG: Die REINE Übersetzung in target_lang. Darf NICHT leer sein!" },
|
| 29 |
explanation: { type: "string", description: "SEHR KURZE Erklärung (maximal 15 Wörter) zwingend in target_lang." },
|
| 30 |
example: { type: "string", description: "Ein aussagekräftiger Beispielsatz zwingend in target_lang." },
|
| 31 |
+
search_query: { type: "string", description: "Ein SEHR SIMPLER, aber EINZIGARTIGER englischer Suchbegriff für ein Bild. WICHTIG: Verwendet für jede Karte zwingend einen komplett anderen Suchbegriff, sonst erscheinen doppelte Bilder!" }
|
| 32 |
},
|
| 33 |
required: ["front", "back", "explanation", "example", "search_query"]
|
| 34 |
}
|