mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-25 06:47:37 -05:00
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