printhive/test
dlawler489 848496a205 Sturdier AI replies: format example, more retries, and errors that show the reply
The Red panda kept failing with "The AI reply wasn't the JSON asked for", and
nothing showed what came back. Now:
- the prompt includes an example object with just the requested fields
  (DeepSeek's JSON mode can otherwise send back an empty reply)
- JSON is found inside code fences, notes, or braces after it
- a bad reply is asked again up to twice: with more room when it was cut off,
  and the last time without JSON mode; max_tokens starts at 1500
- the error says whether the reply was empty or cut off and quotes its start
- tokens spent on failed attempts count towards the run's cost

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 20:26:42 +10:00
..
fixtures Show 3MF projects plate by plate in their filament colours 2026-09-15 07:49:58 +10:00
ai.test.js Sturdier AI replies: format example, more retries, and errors that show the reply 2026-09-15 20:26:42 +10:00
archives.test.js Browse archives, preview companion files, and view FBX/STEP/3DM/OBJ+MTL 2026-09-15 07:36:47 +10:00
autotag.test.js AI tags and descriptions, search by meaning, and automatic tags 2026-09-15 11:12:58 +10:00
duplicates.test.js Add duplicate finder, trash, notes, and library search/filters 2026-09-14 23:06:09 +10:00
geometry.test.js Stream-parse 3MF files so Bambu projects don't exhaust memory 2026-09-15 07:02:00 +10:00
handoff.test.js Open models in your slicer and drag files out 2026-09-15 09:15:37 +10:00
makerworld.test.js Ask for a fresh MakerWorld token when MakerWorld refuses it, then retry 2026-09-15 18:33:10 +10:00
project.test.js Open models in your slicer and drag files out 2026-09-15 09:15:37 +10:00
thumbnail.test.js Make thumbnails on the server in the background 2026-09-15 07:54:26 +10:00