model change possible
This commit is contained in:
parent
c8b5251533
commit
480660b5ef
1 changed files with 17 additions and 7 deletions
|
@ -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)
|
Loading…
Reference in a new issue