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> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| ai.test.js | ||
| archives.test.js | ||
| autotag.test.js | ||
| duplicates.test.js | ||
| geometry.test.js | ||
| handoff.test.js | ||
| makerworld.test.js | ||
| project.test.js | ||
| thumbnail.test.js | ||