This commit is contained in:
team3
2026-06-22 17:43:31 +02:00
parent c5543c0529
commit b3b5dbf37d
2 changed files with 7 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ import subprocess
from pathlib import Path
from agents import kill_process, cancel_scope, clear_scope
from config import KONSENS_GRACE, KONSENS_MAX_RUNDEN, DEFAULT_PROVIDER
from config import KONSENS_GRACE, RECHERCHE_GRACE, KONSENS_MAX_RUNDEN, DEFAULT_PROVIDER
from fsutil import atomic_write_text, atomic_write_json
from jsonio import read_json_file as _json_datei
from lernen import FRAGETYPEN
@@ -1143,7 +1143,7 @@ async def generate_bausteine(topic: str, instructions: str = "", provider: str =
neue = await _race(
topic, "Recherche", slots, 3 - vorhanden, _timeout("recherche"), provider,
on_update=lambda c: set_p(f"Recherche läuft ({vorhanden + c} gültig, min. 3)…"),
cancelled=is_cancelled, grace=KONSENS_GRACE,
cancelled=is_cancelled, grace=RECHERCHE_GRACE,
)
if is_cancelled():
abgebrochen()