summaryrefslogtreecommitdiffstats
path: root/testing/aiassistest.py
diff options
context:
space:
mode:
authorxtekky <98614666+xtekky@users.noreply.github.com>2023-05-21 11:42:56 +0200
committerGitHub <noreply@github.com>2023-05-21 11:42:56 +0200
commit261f4dbd2086ed89351972b28acd60aee4036bc7 (patch)
treeacfb5612efaeffd3c8999c7e9313500f0e89eda1 /testing/aiassistest.py
parentMerge pull request #574 from Sife-shuo/main (diff)
parentUpdate README.md (diff)
downloadgpt4free-261f4dbd2086ed89351972b28acd60aee4036bc7.tar
gpt4free-261f4dbd2086ed89351972b28acd60aee4036bc7.tar.gz
gpt4free-261f4dbd2086ed89351972b28acd60aee4036bc7.tar.bz2
gpt4free-261f4dbd2086ed89351972b28acd60aee4036bc7.tar.lz
gpt4free-261f4dbd2086ed89351972b28acd60aee4036bc7.tar.xz
gpt4free-261f4dbd2086ed89351972b28acd60aee4036bc7.tar.zst
gpt4free-261f4dbd2086ed89351972b28acd60aee4036bc7.zip
Diffstat (limited to 'testing/aiassistest.py')
-rw-r--r--testing/aiassistest.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/aiassistest.py b/testing/aiassistest.py
new file mode 100644
index 00000000..57a34f15
--- /dev/null
+++ b/testing/aiassistest.py
@@ -0,0 +1,13 @@
+import aiassist
+
+question1 = "Who won the world series in 2020?"
+req = aiassist.Completion.create(prompt=question1)
+answer = req["text"]
+message_id = req["parentMessageId"]
+
+question2 = "Where was it played?"
+req2 = aiassist.Completion.create(prompt=question2, parentMessageId=message_id)
+answer2 = req2["text"]
+
+print(answer)
+print(answer2)