summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorHeiner Lohaus <heiner.lohaus@netformic.com>2023-09-01 23:56:35 +0200
committerHeiner Lohaus <heiner.lohaus@netformic.com>2023-09-01 23:56:35 +0200
commit9bfcc0c4b98291c2b6ed7ebe128be358dcfb5ff8 (patch)
tree5dcde56297e9dc0d2645412a7a660553445d45aa /README.md
parentSet working=True in Liaobots, Fix bing provider, Update readme (diff)
downloadgpt4free-9bfcc0c4b98291c2b6ed7ebe128be358dcfb5ff8.tar
gpt4free-9bfcc0c4b98291c2b6ed7ebe128be358dcfb5ff8.tar.gz
gpt4free-9bfcc0c4b98291c2b6ed7ebe128be358dcfb5ff8.tar.bz2
gpt4free-9bfcc0c4b98291c2b6ed7ebe128be358dcfb5ff8.tar.lz
gpt4free-9bfcc0c4b98291c2b6ed7ebe128be358dcfb5ff8.tar.xz
gpt4free-9bfcc0c4b98291c2b6ed7ebe128be358dcfb5ff8.tar.zst
gpt4free-9bfcc0c4b98291c2b6ed7ebe128be358dcfb5ff8.zip
Diffstat (limited to '')
-rw-r--r--README.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/README.md b/README.md
index ef1ec07d..a958a089 100644
--- a/README.md
+++ b/README.md
@@ -158,6 +158,7 @@ If you run the g4l package locally,
cookies from your browsers are readed with `get_cookies`.
Else you have pass them in the parameter `cookies`:
```py
+import g4f
from g4f.Provider import (
Bard,
Bing,
@@ -171,9 +172,9 @@ from g4f.Provider import (
response = g4f.ChatCompletion.create(
model=g4f.models.default,
messages=[{"role": "user", "content": "Hello"}],
- provider=g4f.Provider.Name,
+ provider=Bard,
#cookies=g4f.get_cookies(".google.com"),
- cookies={"name": "value", "name1": "value1"},
+ cookies={"cookie_name": "value", "cookie_name2": "value2"},
auth=True
)
```
@@ -181,7 +182,7 @@ response = g4f.ChatCompletion.create(
##### Async support:
Run providers `async` to improve speed / performance.
-The full execution time corresponds to the maximum execution time of a provider.
+The full execution time corresponds to the execution time of the slowest provider.
```py
import g4f, asyncio