返回提交历史
Modified
forefront/README.md
+3
-2
XFEstudio/gpt4free
Updated README.md
There is no need for logging as it takes so much space of terminal window. Also, added a print statement to add a line at the end of the Bot's response.
51697d32
代码差异
1 个文件
+3
-2
@@ -4,7 +4,7 @@
4
4
import forefront
5
5
6
6
# create an account
7
token = forefront.Account.create(logging=True)
7
token = forefront.Account.create(logging=False)
8
8
print(token)
9
9
10
10
# get a response
@@ -12,4 +12,5 @@ for response in forefront.StreamingCompletion.create(token = token,
12
12
prompt = 'hello world', model='gpt-4'):
13
13
14
14
print(response.completion.choices[0].text, end = '')
15
```
15
print("")
16
```