summaryrefslogtreecommitdiffstats
path: root/you_test.py
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-26 11:41:24 +0200
committert.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-26 11:41:24 +0200
commitd60d6fa355d89e60100676ca08cf63a77b443da1 (patch)
tree4c9a7aa176a86c2c18728de4ed4efc6b167a2591 /you_test.py
parentMerge pull request #139 from vatva691/main (diff)
downloadgpt4free-d60d6fa355d89e60100676ca08cf63a77b443da1.tar
gpt4free-d60d6fa355d89e60100676ca08cf63a77b443da1.tar.gz
gpt4free-d60d6fa355d89e60100676ca08cf63a77b443da1.tar.bz2
gpt4free-d60d6fa355d89e60100676ca08cf63a77b443da1.tar.lz
gpt4free-d60d6fa355d89e60100676ca08cf63a77b443da1.tar.xz
gpt4free-d60d6fa355d89e60100676ca08cf63a77b443da1.tar.zst
gpt4free-d60d6fa355d89e60100676ca08cf63a77b443da1.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 9c69cf34..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