fix: KI auswerten() default nach=KTI, Prompt auf Roundtrip FRA→KTI aktualisiert

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Cursor 2026-02-25 14:42:21 +07:00
parent 0a9e65b71a
commit aad4e9b3c9
2 changed files with 5 additions and 4 deletions

View file

@ -94,7 +94,7 @@ def init_db():
c.execute(""" c.execute("""
INSERT OR IGNORE INTO prompts (name, inhalt) VALUES ( INSERT OR IGNORE INTO prompts (name, inhalt) VALUES (
'ki_auswertung', 'ki_auswertung',
'Du bist ein Flugpreis-Analyst. Analysiere die folgenden Preisdaten und gib eine klare Empfehlung. 'Du bist ein Flugpreis-Analyst. Analysiere Preisdaten für ROUNDTRIP Frankfurt (FRA) → Phnom Penh Techo Airport (KTI), Premium Economy. Verbindung typischerweise über Hanoi (HAN). Koffer werden in FRA aufgegeben und in KTI abgeholt (Durchgepäck). Reisedauer ca. 14 Tage.
Aktuelle Preise heute: Aktuelle Preise heute:
{preise_heute} {preise_heute}
@ -110,8 +110,9 @@ Statistik:
Antworte auf Deutsch in diesem Format: Antworte auf Deutsch in diesem Format:
EMPFEHLUNG: [JETZT BUCHEN / WARTEN / NEUTRAL] EMPFEHLUNG: [JETZT BUCHEN / WARTEN / NEUTRAL]
BEGRUENDUNG: [1-2 Sätze warum] BEGRUENDUNG: [1-2 Sätze warum]
BESTER_TAG: [Wochentag falls erkennbar] BESTER_PREIS: [günstigster Anbieter und Preis]
TREND: [STEIGEND / FALLEND / STABIL]' TREND: [STEIGEND / FALLEND / STABIL]
HINWEIS: [Falls Preis unter 600 EUR verdächtig günstig, darauf hinweisen]'
) )
""") """)

View file

@ -20,7 +20,7 @@ def get_prompt():
return row["inhalt"] if row else "" return row["inhalt"] if row else ""
def auswerten(von="FRA", nach="HAN"): def auswerten(von="FRA", nach="KTI"):
log("KI-Auswertung gestartet") log("KI-Auswertung gestartet")
conn = get_conn() conn = get_conn()