Merge pull request #231 from naa7/patch-3
added an if-statement for ending loop
This commit is contained in:
commit
d717511236
1 changed files with 3 additions and 2 deletions
|
@ -25,7 +25,8 @@ chat = []
|
|||
|
||||
while True:
|
||||
prompt = input("You: ")
|
||||
|
||||
if prompt == 'q':
|
||||
break
|
||||
response = you.Completion.create(
|
||||
prompt=prompt,
|
||||
chat=chat)
|
||||
|
|
Loading…
Reference in a new issue