返回提交历史
Modified
README.md
+4
-3
XFEstudio/gpt4free
Update readme
9bfcc0c4
代码差异
1 个文件
+4
-3
@@ -158,6 +158,7 @@ If you run the g4l package locally,
158
158
cookies from your browsers are readed with `get_cookies`.
159
159
Else you have pass them in the parameter `cookies`:
160
160
```py
161
import g4f
161
162
from g4f.Provider import (
162
163
Bard,
163
164
Bing,
@@ -171,9 +172,9 @@ from g4f.Provider import (
171
172
response = g4f.ChatCompletion.create(
172
173
model=g4f.models.default,
173
174
messages=[{"role": "user", "content": "Hello"}],
174
provider=g4f.Provider.Name,
175
provider=Bard,
175
176
#cookies=g4f.get_cookies(".google.com"),
176
cookies={"name": "value", "name1": "value1"},
177
cookies={"cookie_name": "value", "cookie_name2": "value2"},
177
178
auth=True
178
179
)
179
180
```
@@ -181,7 +182,7 @@ response = g4f.ChatCompletion.create(
181
182
##### Async support:
182
183
183
184
Run providers `async` to improve speed / performance.
184
The full execution time corresponds to the maximum execution time of a provider.
185
The full execution time corresponds to the execution time of the slowest provider.
185
186
186
187
```py
187
188
import g4f, asyncio