diff options
author | ezerinz <edwinnnzx@gmail.com> | 2023-05-20 15:44:01 +0200 |
---|---|---|
committer | ezerinz <edwinnnzx@gmail.com> | 2023-05-20 15:44:01 +0200 |
commit | 74f949e0993958af6789dadc346f98a0ac27e345 (patch) | |
tree | 926378e71a72116137c82df620384d95f1cc7f00 /testing | |
parent | Merge pull request #574 from Sife-shuo/main (diff) | |
download | gpt4free-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 |
Diffstat (limited to 'testing')
-rw-r--r-- | testing/aiassistest.py | 13 |
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) |