summaryrefslogtreecommitdiffstats
path: root/testing/you_test.py
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-25 19:40:17 +0200
committert.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-25 19:40:17 +0200
commite341c75e5e9c34c5aa583e67b8711799d74040eb (patch)
tree9838ce842a78a0226bb9d55e83bfc0a7d7b2249d /testing/you_test.py
parent_ (diff)
downloadgpt4free-e341c75e5e9c34c5aa583e67b8711799d74040eb.tar
gpt4free-e341c75e5e9c34c5aa583e67b8711799d74040eb.tar.gz
gpt4free-e341c75e5e9c34c5aa583e67b8711799d74040eb.tar.bz2
gpt4free-e341c75e5e9c34c5aa583e67b8711799d74040eb.tar.lz
gpt4free-e341c75e5e9c34c5aa583e67b8711799d74040eb.tar.xz
gpt4free-e341c75e5e9c34c5aa583e67b8711799d74040eb.tar.zst
gpt4free-e341c75e5e9c34c5aa583e67b8711799d74040eb.zip
Diffstat (limited to 'testing/you_test.py')
-rw-r--r--testing/you_test.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/testing/you_test.py b/testing/you_test.py
deleted file mode 100644
index 62598e05..00000000
--- a/testing/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