Files
open-webui/backend/open_webui/routers
Classic298 945c521ed2 refac: make the web search error message a plain constant (#28948)
The web search error message was a lambda with a passthrough branch that returned whatever it was handed. Since #28942 both call sites pass no arguments, so that branch is unreachable, and it is the trap that let a caller drop a raw exception object into an HTTP response body and turn an intended 400 into an unserialisable 500.

A plain string constant removes the trap and lines the message up with every other fixed message in that file. Behaviour is unchanged: the response detail comes out byte for byte identical, because the enum already overrides __str__ to render members as their value. Verified on Python 3.11 and 3.12, both producing the same string and the same JSON body.
2026-08-23 13:27:02 -04:00
..
2026-06-29 01:38:41 -05:00
2026-08-13 17:26:38 -06:00
2026-06-29 13:03:14 -05:00
2026-08-13 16:42:10 -06:00
2026-08-20 13:13:51 -07:00
2026-07-24 02:36:10 -04:00
2026-08-17 01:21:58 -07:00
2026-06-29 05:47:21 -05:00
2026-08-11 17:35:05 -06:00
2026-07-27 19:39:36 -04:00
2026-08-16 23:38:34 -07:00
2026-06-29 13:03:14 -05:00
2026-08-10 23:13:10 -06:00
2026-08-11 01:15:05 -06:00
2026-08-19 22:48:32 -07:00
2026-08-23 01:31:30 -04:00
2026-06-17 02:52:35 +02:00