diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2023-12-10 21:46:11 +0100 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2023-12-10 21:46:11 +0100 |
commit | bf41cfc5d1d7ef6e2e8dde6237e54757c22b66b3 (patch) | |
tree | cc9dcbdc5bc3b81050ff74a47d00e13c9c63570c /README.md | |
parent | Fix llama2 provider, Update TOC in readme (#1325) (diff) | |
download | gpt4free-bf41cfc5d1d7ef6e2e8dde6237e54757c22b66b3.tar gpt4free-bf41cfc5d1d7ef6e2e8dde6237e54757c22b66b3.tar.gz gpt4free-bf41cfc5d1d7ef6e2e8dde6237e54757c22b66b3.tar.bz2 gpt4free-bf41cfc5d1d7ef6e2e8dde6237e54757c22b66b3.tar.lz gpt4free-bf41cfc5d1d7ef6e2e8dde6237e54757c22b66b3.tar.xz gpt4free-bf41cfc5d1d7ef6e2e8dde6237e54757c22b66b3.tar.zst gpt4free-bf41cfc5d1d7ef6e2e8dde6237e54757c22b66b3.zip |
Diffstat (limited to '')
-rw-r--r-- | README.md | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -22,7 +22,7 @@ docker pull hlohaus789/g4f ## 📚 Table of Contents -- [🆕 What's New](#-what-s-new) +- [🆕 What's New](#-whats-new) - [📚 Table of Contents](#-table-of-contents) - [🛠️ Getting Started](#-getting-started) + [Docker container](#docker-container) @@ -253,7 +253,7 @@ for message in response: ##### Using Browser -Some providers using a a browser to bypass the bot protection. They using the selenium webdriver to control the browser. The browser settings and the login data are saved in a custom directory. If the headless mode is enabled, the browser windows are loaded invisibly. For performance reasons, it is recommended to reuse the browser instances and close them yourself at the end: +Some providers using a browser to bypass the bot protection. They using the selenium webdriver to control the browser. The browser settings and the login data are saved in a custom directory. If the headless mode is enabled, the browser windows are loaded invisibly. For performance reasons, it is recommended to reuse the browser instances and close them yourself at the end: ```python import g4f @@ -335,6 +335,12 @@ response = g4f.ChatCompletion.create( print(f"Result:", response) ``` +You can also set a proxy globally via an environment variable: + +```sh +export G4F_PROXY="http://host:port" +``` + ### Interference openai-proxy API (Use with openai python package) #### Run interference API from PyPi package |