summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorTekky <98614666+xtekky@users.noreply.github.com>2023-10-22 18:08:03 +0200
committerGitHub <noreply@github.com>2023-10-22 18:08:03 +0200
commitd1eaa46360b7fe30d6f9c60f5a4af6246c24dc56 (patch)
tree9cc4e7401fdf42efdf6b42670acd3c2a72214ebf /README.md
parent~ | Merge pull request #1112 from lategege/main (diff)
parentFix ChatgptAi Provider (diff)
downloadgpt4free-d1eaa46360b7fe30d6f9c60f5a4af6246c24dc56.tar
gpt4free-d1eaa46360b7fe30d6f9c60f5a4af6246c24dc56.tar.gz
gpt4free-d1eaa46360b7fe30d6f9c60f5a4af6246c24dc56.tar.bz2
gpt4free-d1eaa46360b7fe30d6f9c60f5a4af6246c24dc56.tar.lz
gpt4free-d1eaa46360b7fe30d6f9c60f5a4af6246c24dc56.tar.xz
gpt4free-d1eaa46360b7fe30d6f9c60f5a4af6246c24dc56.tar.zst
gpt4free-d1eaa46360b7fe30d6f9c60f5a4af6246c24dc56.zip
Diffstat (limited to '')
-rw-r--r--README.md14
1 files changed, 3 insertions, 11 deletions
diff --git a/README.md b/README.md
index 0b775fe3..996d550b 100644
--- a/README.md
+++ b/README.md
@@ -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)