CruiseElapsedX hinzugefügt
This commit is contained in:
parent
1b46692a29
commit
6663e38ad4
11 changed files with 50 additions and 45 deletions
|
|
@ -128,8 +128,6 @@ def CruiseElapsed10Percent():
|
|||
"Startflughafen: " + origin.get("icao_code") + origin_name,
|
||||
"Du bist von deiner Art her:" + Stimmung,
|
||||
"Erwähne 2 bis 3 Sehenswürdigkeiten, die auf dem Flug von Start zum Ziel überflogen werden. Die Route lautet:" + route}
|
||||
|
||||
|
||||
for i in info:
|
||||
prompt_org = prompt_org + i
|
||||
antwort_AI = ai(prompt_org)
|
||||
|
|
@ -138,13 +136,17 @@ def CruiseElapsed10Percent():
|
|||
def CruiseElapsed50Percent():
|
||||
prompt_org = passw['Prompt']['Cruise50']
|
||||
info = {"Zielflughafen: " + dest.get("icao_code") + dest_name, "Gesamtreisedauer:" + block,
|
||||
|
||||
#"Dein Name:" + passw['Prompt']['CptName'],
|
||||
|
||||
"Du bist von deiner Art her:" + Stimmung,
|
||||
"Informiere über die bevorstehenden, typischen Landevorbereitungen"}
|
||||
|
||||
|
||||
for i in info:
|
||||
prompt_org = prompt_org + i
|
||||
antwort_AI = ai(prompt_org)
|
||||
return antwort_AI
|
||||
def CruiseElapsed80Percent():
|
||||
prompt_org = passw['Prompt']['Cruise80']
|
||||
info = {"Zielflughafen: " + dest.get("icao_code") + dest_name,
|
||||
"Du bist von deiner Art her:" + Stimmung,
|
||||
"Die abgeflogene Route lautet:" + route}
|
||||
for i in info:
|
||||
prompt_org = prompt_org + i
|
||||
antwort_AI = ai(prompt_org)
|
||||
|
|
@ -308,6 +310,9 @@ InhaltCruise10 = "\n".join(filter(None, map(str.strip, InhaltCruise10.splitlines
|
|||
InhaltCruise50 = CruiseElapsed50Percent().choices[0].message.content
|
||||
InhaltCruise50 = "\n".join(filter(None, map(str.strip, InhaltCruise50.splitlines())))
|
||||
|
||||
InhaltCruise80 = CruiseElapsed80Percent().choices[0].message.content
|
||||
InhaltCruise80 = "\n".join(filter(None, map(str.strip, InhaltCruise80.splitlines())))
|
||||
print(InhaltCruise80)
|
||||
|
||||
Pfad = Pfad_wd + 'BoardingWelcomePilot.txt'
|
||||
txtSave(Pfad, Inhalt)
|
||||
|
|
@ -319,4 +324,7 @@ Pfad = Pfad_wd + 'CruiseElapsed10Percent.txt'
|
|||
txtSave(Pfad, InhaltCruise10)
|
||||
|
||||
Pfad = Pfad_wd + 'CruiseElapsed50Percent.txt'
|
||||
txtSave(Pfad, InhaltCruise50)
|
||||
txtSave(Pfad, InhaltCruise50)
|
||||
|
||||
Pfad = Pfad_wd + 'CruiseElapsed80Percent.txt'
|
||||
txtSave(Pfad, InhaltCruise80)
|
||||
Loading…
Add table
Add a link
Reference in a new issue