qingxu99 commited on
Commit
787b5be
1 Parent(s): 2f94951
Files changed (1) hide show
  1. config.py +5 -1
config.py CHANGED
@@ -1,4 +1,4 @@
1
- # my_api_key = "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"
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密钥, 添加海外代理之后再运行"