Files
open-webui/backend/open_webui
Classic298 9fb0444360 fix: programs keep failing on modules and files the sandbox does not have (#35548)
The description models see for programmatic tool calling said no other modules or files were available, but models still imported missing modules or tried to read files from disk, and each of those programs failed. The description now names a missing module and says plainly that nothing can read files or the network, so the data has to come through tools. I measured it on 10 coding tasks with five models, about 300 programs per wording over several runs, against the description now on dev, which already carries most of the wording from #35514. It costs about 15 more tokens per request, and the total tokens per chat stayed within the noise between runs.

<table>
<tr><th>Share of programs or chats</th><th>Before</th><th>After</th></tr>
<tr><td>Programs that failed</td><td>24%</td><td>18%</td></tr>
<tr><td>Programs importing a missing module</td><td>8%</td><td>4%</td></tr>
<tr><td>Programs trying to read files</td><td>11%</td><td>3%</td></tr>
<tr><td>Chats whose first program failed</td><td>37%</td><td>22%</td></tr>
<tr><td>Correct answers</td><td>96%</td><td>97%</td></tr>
</table>

Refs #35514
2026-12-03 01:13:41 +04:00
..
2026-11-17 23:28:54 +09:00
2026-12-01 00:41:27 +04:00
2026-11-25 03:13:19 +04:00
2026-10-05 12:03:19 +04:00
2026-12-02 04:30:51 +04:00
2026-11-24 19:10:42 +04:00
2026-11-03 16:25:23 +09:00
2026-11-02 08:48:51 +09:00