From 967139d96fc30ea4847c8ddcc0c45dbcf25e43d0 Mon Sep 17 00:00:00 2001 From: Floke Date: Sat, 10 May 2025 08:20:31 +0000 Subject: [PATCH] bugfix --- brancheneinstufung.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brancheneinstufung.py b/brancheneinstufung.py index a5953615..167a4055 100644 --- a/brancheneinstufung.py +++ b/brancheneinstufung.py @@ -1437,7 +1437,7 @@ def evaluate_branche_chatgpt(crm_branche, beschreibung, wiki_branche, wiki_kateg prompt_parts.append(f"- Beschreibung (CRM, als Hauptbeschreibung): {str(beschreibung).strip()[:800]}...") - if len(prompt_parts) < (3 + (1 if FOCUS_BRANCHES_PROMPT_PART else 0) )): # Mind. TARGET_SCHEMA + FOCUS_PART (falls vorhanden) + Instruktion + 1 Infoquelle + if len(prompt_parts) < (3 + (1 if FOCUS_BRANCHES_PROMPT_PART else 0)): # Mind. TARGET_SCHEMA + FOCUS_PART (falls vorhanden) + Instruktion + 1 Infoquelle logger.warning("Warnung in evaluate_branche_chatgpt: Zu wenige Informationen für Branchenevaluierung.") crm_short_branch_for_fallback = "k.A." if crm_branche and isinstance(crm_branche, str):