diff --git a/py/simple_chat.py b/py/simple_chat.py new file mode 100644 index 0000000..3bb0c16 --- /dev/null +++ b/py/simple_chat.py @@ -0,0 +1,20 @@ +from api import API + +chat1 = API() + +while True: + 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) \ No newline at end of file