Referenztexte ergänzen
This commit is contained in:
@@ -125,7 +125,6 @@ def main(specific_branch=None):
|
|||||||
|
|
||||||
prompt = build_prompt(branch_name, branch_data, position_data.get('name_DE', position_key), position_data)
|
prompt = build_prompt(branch_name, branch_data, position_data.get('name_DE', position_key), position_data)
|
||||||
|
|
||||||
# Hier könnten wir noch eine DE/EN Schleife einbauen, für den Moment nur DE
|
|
||||||
generated_json = call_openai_with_retry(prompt)
|
generated_json = call_openai_with_retry(prompt)
|
||||||
|
|
||||||
if generated_json:
|
if generated_json:
|
||||||
@@ -135,7 +134,7 @@ def main(specific_branch=None):
|
|||||||
'Language': 'DE',
|
'Language': 'DE',
|
||||||
'Subject': generated_json.get('Subject', 'FEHLER BEI GENERIERUNG'),
|
'Subject': generated_json.get('Subject', 'FEHLER BEI GENERIERUNG'),
|
||||||
'Introduction_Textonly': generated_json.get('Introduction_Textonly', 'FEHLER BEI GENERIERUNG'),
|
'Introduction_Textonly': generated_json.get('Introduction_Textonly', 'FEHLER BEI GENERIERUNG'),
|
||||||
'Industry References (Text only)': branch_data.get('references_DE', '')
|
'Industry References (Text only)': generated_json.get('Industry_References_Textonly', 'FEHLER BEI GENERIERUNG') # <<< DAS IST DIE ENTSCHEIDENDE KORREKTUR
|
||||||
})
|
})
|
||||||
else:
|
else:
|
||||||
results.append({
|
results.append({
|
||||||
@@ -144,7 +143,7 @@ def main(specific_branch=None):
|
|||||||
'Language': 'DE',
|
'Language': 'DE',
|
||||||
'Subject': 'FEHLER: KI-Antwort war ungültig',
|
'Subject': 'FEHLER: KI-Antwort war ungültig',
|
||||||
'Introduction_Textonly': 'FEHLER: KI-Antwort war ungültig',
|
'Introduction_Textonly': 'FEHLER: KI-Antwort war ungültig',
|
||||||
'Industry References (Text only)': branch_data.get('references_DE', '')
|
'Industry References (Text only)': 'FEHLER: KI-Antwort war ungültig' # Auch hier korrigiert
|
||||||
})
|
})
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user