Spaces:
Running
Running
wzc
commited on
Commit
•
f2b12e3
1
Parent(s):
2a6e50d
Update config.py
Browse files
config.py
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
# API_KEY = "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" 此key无效
|
2 |
-
API_KEY = "sk
|
3 |
API_URL = "https://api.openai.com/v1/chat/completions"
|
4 |
|
5 |
# 改为True应用代理
|
6 |
-
USE_PROXY =
|
7 |
if USE_PROXY:
|
8 |
# 代理网络的地址,打开你的科学上网软件查看代理的协议(socks5/http)、地址(localhost)和端口(11284)
|
9 |
-
proxies = { "http": "socks5h://localhost:
|
10 |
print('网络代理状态:运行。')
|
11 |
else:
|
12 |
proxies = None
|
|
|
1 |
# API_KEY = "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" 此key无效
|
2 |
+
API_KEY = "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"
|
3 |
API_URL = "https://api.openai.com/v1/chat/completions"
|
4 |
|
5 |
# 改为True应用代理
|
6 |
+
USE_PROXY = True
|
7 |
if USE_PROXY:
|
8 |
# 代理网络的地址,打开你的科学上网软件查看代理的协议(socks5/http)、地址(localhost)和端口(11284)
|
9 |
+
proxies = { "http": "socks5h://localhost:10808", "https": "socks5h://localhost:10808", }
|
10 |
print('网络代理状态:运行。')
|
11 |
else:
|
12 |
proxies = None
|