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

XFEstudio/gpt4free

add testing

42a5bad4
Bagus Indrayana <bagusindrayanaindo@gmail.com>
提交于

代码差异

1 个文件 +30 -0
Modified testing/binghuan/testing.py +30 -0
@@ -0,0 +1,30 @@
1 from BingHuan import ChatCompletion
2
3 # Test 1
4 response = ChatCompletion.create(model="gpt-3.5-turbo",
5 provider="Wewordle",
6 stream=False,
7 messages=[{'role': 'user', 'content': 'who are you?'}])
8
9 print(response)
10
11 # Test 2
12 response = ChatCompletion.create(model="gpt-3.5-turbo",
13 provider="Wewordle",
14 stream=False,
15 messages=[{'role': 'user', 'content': 'what you can do?'}])
16
17 print(response)
18
19
20 # Test 3
21 response = ChatCompletion.create(model="gpt-3.5-turbo",
22 provider="Wewordle",
23 stream=False,
24 messages=[
25 {'role': 'user', 'content': 'now your name is Bob'},
26 {'role': 'assistant', 'content': 'Hello Im Bob, you asistant'},
27 {'role': 'user', 'content': 'what your name again?'},
28 ])
29
30 print(response)