summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorezerinz <edwinnnzx@gmail.com>2023-05-20 15:44:01 +0200
committerezerinz <edwinnnzx@gmail.com>2023-05-20 15:44:01 +0200
commit74f949e0993958af6789dadc346f98a0ac27e345 (patch)
tree926378e71a72116137c82df620384d95f1cc7f00
parentMerge pull request #574 from Sife-shuo/main (diff)
downloadgpt4free-74f949e0993958af6789dadc346f98a0ac27e345.tar
gpt4free-74f949e0993958af6789dadc346f98a0ac27e345.tar.gz
gpt4free-74f949e0993958af6789dadc346f98a0ac27e345.tar.bz2
gpt4free-74f949e0993958af6789dadc346f98a0ac27e345.tar.lz
gpt4free-74f949e0993958af6789dadc346f98a0ac27e345.tar.xz
gpt4free-74f949e0993958af6789dadc346f98a0ac27e345.tar.zst
gpt4free-74f949e0993958af6789dadc346f98a0ac27e345.zip
-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)