2024-09-16 11:59:15 +02:00
|
|
|
from api import API
|
2024-09-16 11:21:09 +02:00
|
|
|
|
2024-09-16 11:59:15 +02:00
|
|
|
chat1 = API()
|
2024-09-16 11:21:09 +02:00
|
|
|
|
|
|
|
while True:
|
2024-09-16 11:59:15 +02:00
|
|
|
print("")
|
|
|
|
print("Which AI Model do you want to use? Write as a Number (1-5)")
|
|
|
|
model_input = input()
|
|
|
|
model = int(model_input)
|
|
|
|
if model <=0 or model > 5:
|
|
|
|
print("ungültiges Modell")
|
|
|
|
continue
|
|
|
|
while True:
|
|
|
|
print("")
|
|
|
|
print("Ask a question")
|
|
|
|
inputText = input ()
|
|
|
|
if inputText == "change":
|
|
|
|
break
|
|
|
|
outputText = chat1.send_message(inputText, model)
|
|
|
|
print(outputText)
|