Files
open-webui/backend/open_webui
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-08-10 23:22:08 -06:00
2026-08-23 01:31:30 -04:00
2026-07-27 19:39:36 -04:00
2026-07-31 17:41:14 -04:00
2026-08-17 00:24:47 -07:00
2026-08-23 02:34:08 -04:00
2026-07-27 19:39:36 -04:00
2026-08-20 13:13:51 -07:00
2026-08-20 13:13:51 -07:00
2026-08-16 23:21:00 -07:00
2026-08-17 00:47:32 -07:00