Skip to content

Commit 52e227f

Browse files
fix: add from_attributes to FunctionResponse (open-webui#22924)
1 parent ea515fa commit 52e227f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

backend/open_webui/models/functions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ class FunctionResponse(BaseModel):
8686
updated_at: int # timestamp in epoch
8787
created_at: int # timestamp in epoch
8888

89+
model_config = ConfigDict(from_attributes=True)
90+
8991

9092
class FunctionUserResponse(FunctionResponse):
9193
user: Optional[UserResponse] = None

0 commit comments

Comments
 (0)