diff options
author | hp256 <971748116@qq.com> | 2023-05-22 08:00:00 +0200 |
---|---|---|
committer | hp256 <971748116@qq.com> | 2023-05-22 08:00:00 +0200 |
commit | c7d26ed86719e1aacf2ff44fb10d9f79a3c2ea32 (patch) | |
tree | df1984762765b3c9ef9c5fcff304a8998fdd1f98 /testing/aiassistest.py | |
parent | add oraai (diff) | |
parent | Merge pull request #584 from ezerinz/main (diff) | |
download | gpt4free-c7d26ed86719e1aacf2ff44fb10d9f79a3c2ea32.tar gpt4free-c7d26ed86719e1aacf2ff44fb10d9f79a3c2ea32.tar.gz gpt4free-c7d26ed86719e1aacf2ff44fb10d9f79a3c2ea32.tar.bz2 gpt4free-c7d26ed86719e1aacf2ff44fb10d9f79a3c2ea32.tar.lz gpt4free-c7d26ed86719e1aacf2ff44fb10d9f79a3c2ea32.tar.xz gpt4free-c7d26ed86719e1aacf2ff44fb10d9f79a3c2ea32.tar.zst gpt4free-c7d26ed86719e1aacf2ff44fb10d9f79a3c2ea32.zip |
Diffstat (limited to 'testing/aiassistest.py')
-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) |