contact_grouping.py aktualisiert
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# contact_grouping.py
|
||||
|
||||
__version__ = "v1.2.2"
|
||||
__version__ = "v1.2.3"
|
||||
|
||||
import logging
|
||||
import json
|
||||
@@ -87,7 +87,9 @@ class ContactGrouper:
|
||||
if dept == DEFAULT_DEPARTMENT or not titles_by_dept[dept]:
|
||||
continue
|
||||
top_titles = sorted(titles_by_dept[dept], key=len)[:5]
|
||||
example_lines.append(f"- Für '{dept}': {', '.join(f'\\"{title}\\"' for title in top_titles)}")
|
||||
# --- KORREKTUR: Die fehlerhafte Zeile wurde ersetzt ---
|
||||
formatted_titles = ', '.join('"' + title + '"' for title in top_titles)
|
||||
example_lines.append(f"- Für '{dept}': {formatted_titles}")
|
||||
self.ai_example_prompt_part = "\n".join(example_lines)
|
||||
self.logger.debug(f"Generierter Beispiel-Prompt:\n{self.ai_example_prompt_part}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user