summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-30 13:42:21 +0200
committert.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-30 13:42:21 +0200
commite02094de5baac85613855c8a6c9ae1298324ad0e (patch)
treef3a8930ffc312c31916b7beeffac3ccc090f929c /testing
parentUpdate README.md (diff)
downloadgpt4free-e02094de5baac85613855c8a6c9ae1298324ad0e.tar
gpt4free-e02094de5baac85613855c8a6c9ae1298324ad0e.tar.gz
gpt4free-e02094de5baac85613855c8a6c9ae1298324ad0e.tar.bz2
gpt4free-e02094de5baac85613855c8a6c9ae1298324ad0e.tar.lz
gpt4free-e02094de5baac85613855c8a6c9ae1298324ad0e.tar.xz
gpt4free-e02094de5baac85613855c8a6c9ae1298324ad0e.tar.zst
gpt4free-e02094de5baac85613855c8a6c9ae1298324ad0e.zip
Diffstat (limited to '')
-rw-r--r--testing/theb_test.py (renamed from test.py)0
-rw-r--r--testing/useless_test.py27
2 files changed, 27 insertions, 0 deletions
diff --git a/test.py b/testing/theb_test.py
index 0fd2ec8b..0fd2ec8b 100644
--- a/test.py
+++ b/testing/theb_test.py
diff --git a/testing/useless_test.py b/testing/useless_test.py
new file mode 100644
index 00000000..9b613aac
--- /dev/null
+++ b/testing/useless_test.py
@@ -0,0 +1,27 @@
+from gpt4free import usesless
+
+message_id = ""
+while True:
+ prompt = input("Question: ")
+ if prompt == "!stop":
+ break
+
+ req = usesless.Completion.create(prompt=prompt, parentMessageId=message_id)
+
+ print(f"Answer: {req['text']}")
+ message_id = req["id"]
+
+
+import gpt4free
+
+message_id = ""
+while True:
+ prompt = input("Question: ")
+ if prompt == "!stop":
+ break
+
+ req = gpt4free.Completion.create(provider = gpt4free.Provider.UseLess,
+ prompt=prompt, parentMessageId=message_id)
+
+ print(f"Answer: {req['text']}")
+ message_id = req["id"] \ No newline at end of file