model change possible

This commit is contained in:
YasinOnm08 2024-09-16 11:59:15 +02:00
parent c8b5251533
commit 480660b5ef

View file

@ -1,10 +1,20 @@
from api import api from api import API
chat1 = api() chat1 = API()
while True: while True:
print("Gib deine Frage ein") print("")
input_text = input() print("Which AI Model do you want to use? Write as a Number (1-5)")
model_input = input()
output_text = api.send_message(chat1, input_text) model = int(model_input)
print(output_text) 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)