From 52e227f425cc3472b67219658e7d98daf172726c Mon Sep 17 00:00:00 2001 From: Algorithm5838 <108630393+Algorithm5838@users.noreply.github.com> Date: Sun, 22 Mar 2026 03:38:41 +0300 Subject: [PATCH] fix: add from_attributes to FunctionResponse (#22924) --- backend/open_webui/models/functions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/open_webui/models/functions.py b/backend/open_webui/models/functions.py index fe742aad1..617a5c7c3 100644 --- a/backend/open_webui/models/functions.py +++ b/backend/open_webui/models/functions.py @@ -86,6 +86,8 @@ class FunctionResponse(BaseModel): updated_at: int # timestamp in epoch created_at: int # timestamp in epoch + model_config = ConfigDict(from_attributes=True) + class FunctionUserResponse(FunctionResponse): user: Optional[UserResponse] = None