Spaces:
Running
Running
ok
Browse files
config.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
#
|
2 |
API_KEY = "sk-此处填API秘钥"
|
3 |
API_URL = "https://api.openai.com/v1/chat/completions"
|
4 |
|
@@ -9,3 +9,7 @@ if USE_PROXY:
|
|
9 |
else:
|
10 |
proxies = None
|
11 |
print('网络代理状态:未配置。无代理状态下很可能无法访问。')
|
|
|
|
|
|
|
|
|
|
1 |
+
# API_KEY = "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" 此key无效
|
2 |
API_KEY = "sk-此处填API秘钥"
|
3 |
API_URL = "https://api.openai.com/v1/chat/completions"
|
4 |
|
|
|
9 |
else:
|
10 |
proxies = None
|
11 |
print('网络代理状态:未配置。无代理状态下很可能无法访问。')
|
12 |
+
|
13 |
+
# avoid dummy
|
14 |
+
if API_KEY == "sk-此处填API秘钥":
|
15 |
+
assert False, "请在config文件中修改API密钥, 添加海外代理之后再运行"
|