diff options
author | Heiner Lohaus <heiner@lohaus.eu> | 2023-10-22 14:52:02 +0200 |
---|---|---|
committer | Heiner Lohaus <heiner@lohaus.eu> | 2023-10-22 14:52:02 +0200 |
commit | 13b496afd5b6f220bb8a884ff77e93406838f140 (patch) | |
tree | 640aa509d2d504df9b5d8a235e4bba983fce8cc8 /README.md | |
parent | Fix increase timeout (diff) | |
download | gpt4free-13b496afd5b6f220bb8a884ff77e93406838f140.tar gpt4free-13b496afd5b6f220bb8a884ff77e93406838f140.tar.gz gpt4free-13b496afd5b6f220bb8a884ff77e93406838f140.tar.bz2 gpt4free-13b496afd5b6f220bb8a884ff77e93406838f140.tar.lz gpt4free-13b496afd5b6f220bb8a884ff77e93406838f140.tar.xz gpt4free-13b496afd5b6f220bb8a884ff77e93406838f140.tar.zst gpt4free-13b496afd5b6f220bb8a884ff77e93406838f140.zip |
Diffstat (limited to '')
-rw-r--r-- | README.md | 14 |
1 files changed, 3 insertions, 11 deletions
@@ -226,22 +226,13 @@ import g4f from g4f.Provider import ( AItianhu, - Acytoo, Aichat, - Ails, Bard, Bing, ChatBase, ChatgptAi, - H2o, - HuggingChat, - OpenAssistant, OpenaiChat, - Raycast, - Theb, Vercel, - Vitalentum, - Ylokh, You, Yqcloud, ) @@ -324,9 +315,9 @@ async def run_all(): asyncio.run(run_all()) ``` -##### Proxy Support: +##### Proxy and Timeout Support: -All providers support specifying a proxy in the create functions. +All providers support specifying a proxy and increasing timeout in the create functions. ```py import g4f @@ -336,6 +327,7 @@ response = g4f.ChatCompletion.create( messages=[{"role": "user", "content": "Hello"}], proxy="http://host:port", # or socks5://user:pass@host:port + timeout=120, # in secs ) print(f"Result:", response) |