This commit is contained in:
Team3
2026-06-07 09:34:46 +02:00
parent 13eedd7753
commit 3f2c966d25
5 changed files with 76 additions and 13 deletions

View File

@@ -719,9 +719,11 @@ async def _generate_onepager(
if project:
source = _prompt("OnePager-Quelle-Projekt", project=project)
recherche_template = "OnePager-Recherche-Projekt"
recherche_check_template = "OnePager-Recherche-Check-Projekt"
else:
source = _prompt("OnePager-Quelle-Thema", topic=topic)
recherche_template = "OnePager-Recherche"
recherche_check_template = "OnePager-Recherche-Check"
def recherche_payload(result=None):
if not recherche_path.exists():
@@ -752,7 +754,7 @@ async def _generate_onepager(
await _set_step(guide_id, 1, "Prüfe Recherche…")
slots = [{
"key": f"{guide_id}-recherche-check",
"prompt": _prompt("OnePager-Recherche-Check", topic=topic, recherche=recherche, out_path=recherche_check_path),
"prompt": _prompt(recherche_check_template, topic=topic, recherche=recherche, out_path=recherche_check_path),
"role": "fast", "capabilities": "files",
"payload": (lambda result: _probleme_schema(_json_datei(recherche_check_path))),
}]