fix: can not test custom tool (#15606)

This commit is contained in:
非法操作
2025-03-12 16:34:56 +08:00
committed by GitHub
parent 58f012f3de
commit 5019547d33

View File

@@ -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