labs/aicharts: tolerate model spelling, show its answer on failure #37

Merged
teahubxyz merged 1 commits from labs/aicharts-raw into main 2026-10-13 13:47:49 +00:00
1 Commits
Author SHA1 Message Date
Claude 0189649a2a labs/aicharts: fix model spelling drift, show the model's answer on failure
First live run: Workers AI answered specs the validator refused (agg spelling).
normalizeSpec fixes case and common aliases only; on a 422 the response
carries model_said (shown, never run). Smoke now fails on a bad spec.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VDkN7ukK1kXkqov8FaZxva
2026-10-13 13:46:49 +00:00