Commit Graph
3 Commits
Author SHA1 Message Date
Classic298 6299625426 fix: Visualizations tool accepts a Chart.js chart that did not ask for the library (#34912)
When a model drew a chart with Chart.js through the Visualizations tool but left out libraries=["chartjs"], the tool still told it the chart was accepted. The chart then failed in the chat with "Chart is not defined", and the model never found out, so it moved on as if the chart had worked. Such a call is now refused with a short error that tells the model to ask for the library, so it can retry and the user gets a working chart in the same reply. Charts that ask for the library are accepted as before, and so are visuals that only show Chart.js code or mention it in their text.

Fixes #34909
2026-11-23 21:55:58 +04:00
Timothy Jaeryang Baek 2547992b8a refac 2026-11-12 13:39:35 +09:00
Timothy Jaeryang Baek e46920dcc7 refac 2026-11-11 15:34:33 +09:00