返回提交历史
Modified
README.md
+26
-0
XFEstudio/gpt4free
feat: update readme to install ffmpeg and set proxy
2cca6a7c
代码差异
1 个文件
+26
-0
@@ -157,6 +157,32 @@ python3 -m venv venv
157
157
pip3 install -r requirements.txt
158
158
```
159
159
160
## Install ffmpeg
161
```sh
162
sudo apt-get install ffmpeg
163
```
164
165
## Connect VPN if needed and get proxy (Optional)
166
```sh
167
echo "$http_proxy" # http://127.0.0.1:8889/
168
```
169
170
## Set proxy in gpt4free/you/__init__.py (Optional)
171
```
172
diff --git a/gpt4free/you/__init__.py b/gpt4free/you/__init__.py
173
index 11847fb..59d1162 100644
174
--- a/gpt4free/you/__init__.py
175
@@ -38,6 +38,7 @@ class Completion:
176
if chat is None:
177
chat = []
178
179
+ proxy = '127.0.0.1:8889'
180
proxies = {'http': 'http://' + proxy, 'https': 'http://' + proxy} if proxy else {}
181
182
client = Session(client_identifier='chrome_108')
183
```
184
160
185
161
186
## To start gpt4free GUI <a name="streamlit-gpt4free-gui"></a>
162
187