bugfix
This commit is contained in:
@@ -1565,7 +1565,8 @@ def evaluate_branche_chatgpt(crm_branche, beschreibung, wiki_branche, wiki_kateg
|
|||||||
schema_lines.append(f"- {branch}")
|
schema_lines.append(f"- {branch}")
|
||||||
target_schema_info = "\n".join(schema_lines)
|
target_schema_info = "\n".join(schema_lines)
|
||||||
|
|
||||||
# Erstelle den System-Prompt inklusive der Zielvorgaben
|
# Erstelle den System-Prompt inklusive der Zielvorgaben. Hier wird das Zielbranchenschema aus der CSV-Datei
|
||||||
|
# (via load_target_schema) eingebunden.
|
||||||
target_mapping, target_schema_string, allowed_targets = load_target_schema()
|
target_mapping, target_schema_string, allowed_targets = load_target_schema()
|
||||||
|
|
||||||
prompt = (
|
prompt = (
|
||||||
@@ -1581,6 +1582,7 @@ prompt = (
|
|||||||
"Übereinstimmung: <ok oder X>\n"
|
"Übereinstimmung: <ok oder X>\n"
|
||||||
"Begründung: <kurze Begründung>"
|
"Begründung: <kurze Begründung>"
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open("api_key.txt", "r") as f:
|
with open("api_key.txt", "r") as f:
|
||||||
api_key = f.read().strip()
|
api_key = f.read().strip()
|
||||||
|
|||||||
Reference in New Issue
Block a user