diff options
author | Heiner Lohaus <heiner.lohaus@netformic.com> | 2023-09-01 23:56:35 +0200 |
---|---|---|
committer | Heiner Lohaus <heiner.lohaus@netformic.com> | 2023-09-01 23:56:35 +0200 |
commit | 9bfcc0c4b98291c2b6ed7ebe128be358dcfb5ff8 (patch) | |
tree | 5dcde56297e9dc0d2645412a7a660553445d45aa /README.md | |
parent | Set working=True in Liaobots, Fix bing provider, Update readme (diff) | |
download | gpt4free-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 'README.md')
-rw-r--r-- | README.md | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |