fix: can not test custom tool (#15606)

pull/14262/head
非法操作 1 year ago committed by Bharat Ramanathan
parent 10d67d4302
commit d523d4bb54

@ -102,6 +102,8 @@ class ApiToolProvider(Base):
@property
def user(self) -> Account | None:
if not self.user_id:
return None
return db.session.query(Account).filter(Account.id == self.user_id).first()
@property

Loading…
Cancel
Save