diff options
author | xtekky <98614666+xtekky@users.noreply.github.com> | 2023-05-19 15:15:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-19 15:15:53 +0200 |
commit | 45718abc3b5b3127c95368af1fb31ed6ff79113e (patch) | |
tree | 88539d8f179a4180c803a9b4d947075295849309 /README.md | |
parent | Merge pull request #561 from ading2210/main (diff) | |
parent | feat: update readme to install ffmpeg and set proxy (diff) | |
download | gpt4free-45718abc3b5b3127c95368af1fb31ed6ff79113e.tar gpt4free-45718abc3b5b3127c95368af1fb31ed6ff79113e.tar.gz gpt4free-45718abc3b5b3127c95368af1fb31ed6ff79113e.tar.bz2 gpt4free-45718abc3b5b3127c95368af1fb31ed6ff79113e.tar.lz gpt4free-45718abc3b5b3127c95368af1fb31ed6ff79113e.tar.xz gpt4free-45718abc3b5b3127c95368af1fb31ed6ff79113e.tar.zst gpt4free-45718abc3b5b3127c95368af1fb31ed6ff79113e.zip |
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -157,6 +157,32 @@ python3 -m venv venv pip3 install -r requirements.txt ``` +## Install ffmpeg +```sh +sudo apt-get install ffmpeg +``` + +## Connect VPN if needed and get proxy (Optional) +```sh +echo "$http_proxy" # http://127.0.0.1:8889/ +``` + +## Set proxy in gpt4free/you/__init__.py (Optional) +``` +diff --git a/gpt4free/you/__init__.py b/gpt4free/you/__init__.py +index 11847fb..59d1162 100644 +--- a/gpt4free/you/__init__.py ++++ b/gpt4free/you/__init__.py +@@ -38,6 +38,7 @@ class Completion: + if chat is None: + chat = [] + ++ proxy = '127.0.0.1:8889' + proxies = {'http': 'http://' + proxy, 'https': 'http://' + proxy} if proxy else {} + + client = Session(client_identifier='chrome_108') +``` + ## To start gpt4free GUI <a name="streamlit-gpt4free-gui"></a> |