mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-24 22:37:38 -05:00
Without Redis, every tool list and every chat message that uses an OpenAPI tool server or a terminal downloaded the specs of all of them again and waited for each one, and an unreachable server added its full 10 second timeout every time. The specs loaded at startup and on saving the settings are now reused, the same way they are with Redis, and importing a config now refreshes them too, with or without Redis. A changed spec, or a server that was down at startup while others loaded, appears after saving the settings or a restart as with Redis, and when every server was down at startup each request still tries them again until one loads. In this test a terminal message still takes about 0.9 seconds because it reads the terminal's working directory and system prompt live on every message. <table> <tr><th>Servers answering in 300 ms</th><th>Before</th><th>After</th></tr> <tr><td>Tool list (median of 10)</td><td>312 ms, 10 spec downloads</td><td>11 ms, 0</td></tr> <tr><td>Chat message with a tool server</td><td>323 ms</td><td>33 ms</td></tr> <tr><td>Tool list with one tool server unreachable</td><td>10988 ms</td><td>16 ms</td></tr> <tr><td>Chat message with a terminal (median of 10)</td><td>1842 ms</td><td>934 ms</td></tr> <tr><td>Chat message with a terminal while another is unreachable</td><td>11961 ms</td><td>932 ms</td></tr> </table> Fixes #34855