summaryrefslogtreecommitdiffstats
path: root/you/README.md
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-28 10:06:39 +0200
committerGitHub <noreply@github.com>2023-04-28 10:06:39 +0200
commitd717511236fbcefff44bb3c748bb2a1ed65bea60 (patch)
tree8f4fa55183b659f91c1d3da691faf1cee93c9e06 /you/README.md
parentMerge pull request #224 from digger-yu/patch-1 (diff)
parentadded an if-statement for ending loop (diff)
downloadgpt4free-d717511236fbcefff44bb3c748bb2a1ed65bea60.tar
gpt4free-d717511236fbcefff44bb3c748bb2a1ed65bea60.tar.gz
gpt4free-d717511236fbcefff44bb3c748bb2a1ed65bea60.tar.bz2
gpt4free-d717511236fbcefff44bb3c748bb2a1ed65bea60.tar.lz
gpt4free-d717511236fbcefff44bb3c748bb2a1ed65bea60.tar.xz
gpt4free-d717511236fbcefff44bb3c748bb2a1ed65bea60.tar.zst
gpt4free-d717511236fbcefff44bb3c748bb2a1ed65bea60.zip
Diffstat (limited to 'you/README.md')
-rw-r--r--you/README.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/you/README.md b/you/README.md
index dbce37a5..25c20085 100644
--- a/you/README.md
+++ b/you/README.md
@@ -25,7 +25,8 @@ chat = []
while True:
prompt = input("You: ")
-
+ if prompt == 'q':
+ break
response = you.Completion.create(
prompt=prompt,
chat=chat)
@@ -33,4 +34,4 @@ while True:
print("Bot:", response["response"])
chat.append({"question": prompt, "answer": response["response"]})
-``` \ No newline at end of file
+```