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

XFEstudio/gpt4free

fix forefront sample

34fb3fc1
MIDORIBIN <aquarion123@gmail.com>
提交于

代码差异

1 个文件 +8 -5
Modified gpt4free/forefront/README.md +8 -5
@@ -2,15 +2,18 @@
2 2
3 3 ```python
4 4 from gpt4free import forefront
5
6
5 7 # create an account
6 token = forefront.Account.create(logging=False)
7 print(token)
8 account_data = forefront.Account.create(logging=False)
9
8 10 # get a response
9 11 for response in forefront.StreamingCompletion.create(
10 token=token,
11 prompt='hello world',
12 model='gpt-4'
12 account_data=account_data,
13 prompt='hello world',
14 model='gpt-4'
13 15 ):
14 16 print(response.choices[0].text, end='')
15 17 print("")
18
16 19 ```