Files
open-webui/backend/open_webui/models
Classic298andClaude 48f78ca58d fix: prevent startup crash when function/tool has null user_id (#26850)
The Function and Tool database columns declare user_id as a nullable
String column, but their Pydantic read-models required a non-null
string. A record with user_id NULL therefore raised a
pydantic ValidationError inside get_functions()/get_tools(), which run
during install_tool_and_function_dependencies() at app startup —
crashing the whole application and blocking all chat completions.

Make user_id Optional in the read/response models so such records
validate gracefully (user is already rendered as None downstream when
the id has no matching user) instead of taking down startup.


Claude-Session: https://claude.ai/code/session_01Y4RRUNq7ZUFkRWbWPkDw3m

Co-authored-by: Claude <noreply@anthropic.com>
2026-07-24 00:00:37 -05:00
..
2026-06-01 14:09:54 -07:00
2026-07-24 00:42:11 -04:00
2026-07-23 04:16:14 -04:00
2026-06-29 13:03:14 -05:00
2026-06-29 13:03:14 -05:00
2026-07-17 06:50:16 -04:00
2026-07-23 19:17:19 -04:00