Skip to content

Commit 96ba28e

Browse files
committed
fix: add from_attributes to FunctionResponse
1 parent 3b8e37f commit 96ba28e

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)