summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorAndrew Tsegaye <andrewtsegaye7@gmail.com>2023-04-27 18:19:09 +0200
committerAndrew Tsegaye <andrewtsegaye7@gmail.com>2023-04-27 18:19:09 +0200
commitd2d81b7648cb7198a5127ebc2ea369b18c0c49e5 (patch)
tree21b49e5221dd963d7538ebbb2c5db71d4efb5099 /testing
parentwell updated (diff)
parentMerge pull request #1 from xtekky/main (diff)
downloadgpt4free-d2d81b7648cb7198a5127ebc2ea369b18c0c49e5.tar
gpt4free-d2d81b7648cb7198a5127ebc2ea369b18c0c49e5.tar.gz
gpt4free-d2d81b7648cb7198a5127ebc2ea369b18c0c49e5.tar.bz2
gpt4free-d2d81b7648cb7198a5127ebc2ea369b18c0c49e5.tar.lz
gpt4free-d2d81b7648cb7198a5127ebc2ea369b18c0c49e5.tar.xz
gpt4free-d2d81b7648cb7198a5127ebc2ea369b18c0c49e5.tar.zst
gpt4free-d2d81b7648cb7198a5127ebc2ea369b18c0c49e5.zip
Diffstat (limited to 'testing')
-rw-r--r--testing/you_test.py19
1 files changed, 7 insertions, 12 deletions
diff --git a/testing/you_test.py b/testing/you_test.py
index 9c69cf34..6ba12f57 100644
--- a/testing/you_test.py
+++ b/testing/you_test.py
@@ -1,10 +1,7 @@
import you
# simple request with links and details
-response = you.Completion.create(
- prompt = "hello world",
- detailed = True,
- includelinks = True)
+response = you.Completion.create(prompt="hello world", detailed=True, include_links=True)
print(response)
@@ -16,17 +13,15 @@ print(response)
# }
# }
-#chatbot
+# chatbot
chat = []
while True:
prompt = input("You: ")
-
- response = you.Completion.create(
- prompt = prompt,
- chat = chat)
-
+
+ response = you.Completion.create(prompt=prompt, chat=chat)
+
print("Bot:", response["response"])
-
- chat.append({"question": prompt, "answer": response["response"]}) \ No newline at end of file
+
+ chat.append({"question": prompt, "answer": response["response"]})