Feat/improved mcp timeout configs (#23605)
Co-authored-by: crazywoola <427733928@qq.com>
This commit is contained in:
parent
d3eff9b1a3
commit
1ffe190557
18 changed files with 180 additions and 48 deletions
|
|
@ -278,6 +278,8 @@ class MCPToolProvider(Base):
|
|||
updated_at: Mapped[datetime] = mapped_column(
|
||||
sa.DateTime, nullable=False, server_default=sa.text("CURRENT_TIMESTAMP(0)")
|
||||
)
|
||||
timeout: Mapped[float] = mapped_column(sa.Float, nullable=False, server_default=sa.text("30"))
|
||||
sse_read_timeout: Mapped[float] = mapped_column(sa.Float, nullable=False, server_default=sa.text("300"))
|
||||
|
||||
def load_user(self) -> Account | None:
|
||||
return db.session.query(Account).where(Account.id == self.user_id).first()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue