feat: add 'Same as source' option to slides count

- Added 'Same as source' to translations in EN, RU, HE
- Updated 'Number of Slides' dropdown to include 'Same as source' (value 0)
- Updated Qwen, Ollama, and Z.AI services to handle 0 slide count by instructing AI to match source structure
This commit is contained in:
Gemini AI
2025-12-29 01:50:27 +04:00
Unverified
parent 13ddb7c7c4
commit ba5eef743e
5 changed files with 7 additions and 3 deletions

View File

@@ -1140,6 +1140,7 @@ export default function SlidesGenerator() {
onChange={(e) => setSlideCount(parseInt(e.target.value))}
className="w-full rounded-md border border-input bg-background px-2.5 py-1.5 text-xs ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
>
<option value={0}>{t.sameAsSource}</option>
{[5, 8, 10, 12, 15, 20, 25, 30].map((n) => (
<option key={n} value={n}>{n} slides</option>
))}