feat: bound news AI concurrency with immediate task refill
This commit is contained in:
1 parent
f1d060d475
commit
cbd2618a20
15 files changed
+603
-129
No files matched your search
@@ -10,6 +10,7 @@ class RiskSettings(Base):
|
||||
__tablename__ = 'risk_settings'
|
||||
id: Mapped[int] = mapped_column(primary_key=True)
|
||||
enabled: Mapped[bool] = mapped_column(Boolean, default=False)
|
||||
max_concurrency: Mapped[int] = mapped_column(Integer, default=5, server_default='5')
|
||||
provider_id: Mapped[int | None] = mapped_column(ForeignKey('ai_providers.id'))
|
||||
model: Mapped[str] = mapped_column(String(128), default='')
|
||||
second_provider_id: Mapped[int | None] = mapped_column(ForeignKey('ai_providers.id'))
|
||||
|
||||
Reference in new issue
Block a user