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

XFEstudio/gpt4free

update testing

86088bef
Bagus Indrayana <bagusindrayanaindo@gmail.com>
提交于

代码差异

1 个文件 +16 -18
Modified testing/binghuan/testing.py +16 -18
@@ -1,14 +1,12 @@
1 1 from BingHuan import ChatCompletion
2 # text = "Hello, this is Bing. I can help you find information on the web, generate content such as poems, stories, code, essays, songs, celebrity parodies and more. I can also help you with rewriting, improving, or optimizing your content. Is there anything specific you would like me to help you with? 😊"
3 # print(text.encode('utf-8'))
4 2
5 # # Test 1
6 # response = ChatCompletion.create(model="gpt-3.5-turbo",
7 # provider="BingHuan",
8 # stream=False,
9 # messages=[{'role': 'user', 'content': 'who are you?'}])
3 # Test 1
4 response = ChatCompletion.create(model="gpt-3.5-turbo",
5 provider="BingHuan",
6 stream=False,
7 messages=[{'role': 'user', 'content': 'who are you?'}])
10 8
11 # print(response)
9 print(response)
12 10
13 11 # Test 2
14 12 response = ChatCompletion.create(model="gpt-3.5-turbo",
@@ -19,14 +17,14 @@ response = ChatCompletion.create(model="gpt-3.5-turbo",
19 17 print(response)
20 18
21 19
22 # Test 3
23 # response = ChatCompletion.create(model="gpt-4",
24 # provider="BingHuan",
25 # stream=False,
26 # messages=[
27 # {'role': 'user', 'content': 'now your name is Bob'},
28 # {'role': 'assistant', 'content': 'Hello Im Bob, you asistant'},
29 # {'role': 'user', 'content': 'what your name again?'},
30 # ])
20 Test 3
21 response = ChatCompletion.create(model="gpt-4",
22 provider="BingHuan",
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 ])
31 29
32 # print(response)
30 print(response)