From 1a491d73676bded46c7cff7d19c4051b4046c6ce Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 16 Sep 2026 17:21:03 +0200 Subject: [PATCH] feat: a deck up to sixty slides is generated, reviewed and modified MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Twenty was the review ceiling while the form allowed thirty, so a 21-30 slide deck was written, stored and then silently never reviewed — and modifying one above twenty was shown only its first twenty pages while the prompt claimed one image per slide. The three numbers are the schema's own limit now, so a deck that can be asked for can also be stored, reviewed and edited: the form's max, both generation clamps and MAX_SLIDES are all 60. Measured at that size before this change: 45 pages cost 28,796 prompt tokens and 2.2s to review, a 46-page deck with a fault on page 24 was found and re-laid correctly, and a 44-slide deck used ~5,900 output tokens of the 16,000 ceiling. --- public/components/my-resources.html | 2 +- src/routes/myResources.js | 4 ++-- src/utils/deckReview.js | 2 +- test/deck-review.test.js | 22 ++++++++++++++++++++++ 4 files changed, 26 insertions(+), 4 deletions(-) diff --git a/public/components/my-resources.html b/public/components/my-resources.html index 9b60a862..6b77736b 100644 --- a/public/components/my-resources.html +++ b/public/components/my-resources.html @@ -23,7 +23,7 @@