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
Owner

AICharts is live at https://aicharts.yolopreneur.lol/ (health and schema pass), but the real model's specs failed validation on agg. This adds normalizeSpec (case + aliases like mean→avg, aggregate→agg, groupBy→by; never invents fields or ops), returns model_said on a 422 so failures are diagnosable, and makes the smoke step fail on a bad spec.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VDkN7ukK1kXkqov8FaZxva


Generated by Claude Code

AICharts is live at https://aicharts.yolopreneur.lol/ (health and schema pass), but the real model's specs failed validation on agg. This adds `normalizeSpec` (case + aliases like mean→avg, aggregate→agg, groupBy→by; never invents fields or ops), returns `model_said` on a 422 so failures are diagnosable, and makes the smoke step fail on a bad spec. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01VDkN7ukK1kXkqov8FaZxva --- _Generated by [Claude Code](https://claude.ai/code/session_01VDkN7ukK1kXkqov8FaZxva)_
Sign in to join this conversation.