Merge pull request #231 from naa7/patch-3

added an if-statement for ending loop
This commit is contained in:
t.me/xtekky 2023-04-28 09:06:39 +01:00 committed by GitHub
commit d717511236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,8 @@ chat = []
while True:
prompt = input("You: ")
if prompt == 'q':
break
response = you.Completion.create(
prompt=prompt,
chat=chat)