summaryrefslogtreecommitdiffstats
path: root/you_test.py
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-12 11:48:03 +0200
committert.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-12 11:48:03 +0200
commitcf9c1484494efefc77082cd4d31d086437678a2d (patch)
tree97bb70cfd9301e55b41b0bcbadaa72f381d55688 /you_test.py
parent_ (diff)
downloadgpt4free-cf9c1484494efefc77082cd4d31d086437678a2d.tar
gpt4free-cf9c1484494efefc77082cd4d31d086437678a2d.tar.gz
gpt4free-cf9c1484494efefc77082cd4d31d086437678a2d.tar.bz2
gpt4free-cf9c1484494efefc77082cd4d31d086437678a2d.tar.lz
gpt4free-cf9c1484494efefc77082cd4d31d086437678a2d.tar.xz
gpt4free-cf9c1484494efefc77082cd4d31d086437678a2d.tar.zst
gpt4free-cf9c1484494efefc77082cd4d31d086437678a2d.zip
Diffstat (limited to 'you_test.py')
-rw-r--r--you_test.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/you_test.py b/you_test.py
deleted file mode 100644
index 62598e05..00000000
--- a/you_test.py
+++ /dev/null
@@ -1,32 +0,0 @@
-import you
-
-# simple request with links and details
-response = you.Completion.create(
- prompt = "hello world",
- detailed = True,
- includelinks = True,)
-
-print(response)
-
-# {
-# "response": "...",
-# "links": [...],
-# "extra": {...},
-# "slots": {...}
-# }
-# }
-
-#chatbot
-
-chat = []
-
-while True:
- prompt = input("You: ")
-
- 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