XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

add aiassist.site test

74f949e0
ezerinz <edwinnnzx@gmail.com>
提交于

代码差异

1 个文件 +13 -0
Added testing/aiassistest.py +13 -0
@@ -0,0 +1,13 @@
1 import aiassist
2
3 question1 = "Who won the world series in 2020?"
4 req = aiassist.Completion.create(prompt=question1)
5 answer = req["text"]
6 message_id = req["parentMessageId"]
7
8 question2 = "Where was it played?"
9 req2 = aiassist.Completion.create(prompt=question2, parentMessageId=message_id)
10 answer2 = req2["text"]
11
12 print(answer)
13 print(answer2)