Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu
commited on
Commit
·
6062e3e
1
Parent(s):
7e11586
更新Readme
Browse files
README.md
CHANGED
@@ -302,6 +302,37 @@ pip install gradio --upgrade --force-reinstall
|
|
302 |
|
303 |
### 常见问题
|
304 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
305 |
<details><summary><code>TypeError: Base.set () got an unexpected keyword argument</code></summary>
|
306 |
|
307 |
这是因为川虎ChatGPT紧跟Gradio发展步伐,你的Gradio版本太旧了。请升级依赖:
|
@@ -363,31 +394,8 @@ pip install urllib3==1.25.11
|
|
363 |
> requests.exceptions.SSLError: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))
|
364 |
> ```
|
365 |
|
366 |
-
|
367 |
-
|
368 |
-
例如,在Clash配置文件中,加入:
|
369 |
-
|
370 |
-
```
|
371 |
-
rule-providers:
|
372 |
-
private:
|
373 |
-
type: http
|
374 |
-
behavior: domain
|
375 |
-
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt"
|
376 |
-
path: ./ruleset/ads.yaml
|
377 |
-
interval: 86400
|
378 |
|
379 |
-
rules:
|
380 |
-
- RULE-SET,private,DIRECT
|
381 |
-
- DOMAIN-SUFFIX,openai.com,你的代理规则
|
382 |
-
```
|
383 |
-
|
384 |
-
Surge:
|
385 |
-
|
386 |
-
```
|
387 |
-
[Rule]
|
388 |
-
DOMAIN-SET,https://cdn.jsdelivr.net/gh/Loyalsoldier/surge-rules@release/private.txt,DIRECT
|
389 |
-
DOMAIN-SUFFIX,openai.com,你的代理规则
|
390 |
-
```
|
391 |
</details>
|
392 |
|
393 |
<details><summary><code>网页提示错误 Something went wrong</code></summary>
|
|
|
302 |
|
303 |
### 常见问题
|
304 |
|
305 |
+
<details><summary>配置代理</summary>
|
306 |
+
|
307 |
+
OpenAI不允许在不受支持的地区使用API,否则可能会导致账号被风控。下面给出代理配置示例:
|
308 |
+
|
309 |
+
在Clash配置文件中,加入:
|
310 |
+
|
311 |
+
```
|
312 |
+
rule-providers:
|
313 |
+
private:
|
314 |
+
type: http
|
315 |
+
behavior: domain
|
316 |
+
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt"
|
317 |
+
path: ./ruleset/ads.yaml
|
318 |
+
interval: 86400
|
319 |
+
|
320 |
+
rules:
|
321 |
+
- RULE-SET,private,DIRECT
|
322 |
+
- DOMAIN-SUFFIX,openai.com,你的代理规则
|
323 |
+
```
|
324 |
+
|
325 |
+
如果你使用 Surge,请在配置文件中加入:
|
326 |
+
|
327 |
+
```
|
328 |
+
[Rule]
|
329 |
+
DOMAIN-SET,https://cdn.jsdelivr.net/gh/Loyalsoldier/surge-rules@release/private.txt,DIRECT
|
330 |
+
DOMAIN-SUFFIX,openai.com,你的代理规则
|
331 |
+
```
|
332 |
+
注意,如果你本来已经有对应的字段,请将这些规则合并到已有字段中,否则代理软件会报错。
|
333 |
+
|
334 |
+
</details>
|
335 |
+
|
336 |
<details><summary><code>TypeError: Base.set () got an unexpected keyword argument</code></summary>
|
337 |
|
338 |
这是因为川虎ChatGPT紧跟Gradio发展步伐,你的Gradio版本太旧了。请升级依赖:
|
|
|
394 |
> requests.exceptions.SSLError: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))
|
395 |
> ```
|
396 |
|
397 |
+
请参考配置代理部分,将`openai.com`加入你使用的代理App的代理规则。注意不要将`127.0.0.1`加入代理,否则会有下一个错误。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
398 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
399 |
</details>
|
400 |
|
401 |
<details><summary><code>网页提示错误 Something went wrong</code></summary>
|