Chore : rm dead code detected by pylance (#24588)

This commit is contained in:
Yongtao Huang 2025-08-27 13:19:40 +08:00 • committed by GitHub
commit 826f19e968
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 1 additions and 25 deletions

View file

@ -401,7 +401,6 @@ class LLMGenerator:
def instruction_modify_legacy(
tenant_id: str, flow_id: str, current: str, instruction: str, model_config: dict, ideal_output: str | None
) -> dict:
app: App | None = db.session.query(App).where(App.id == flow_id).first()
last_run: Message | None = (
db.session.query(Message).where(Message.app_id == flow_id).order_by(Message.created_at.desc()).first()
)