zbpan commited on
Commit
6828ad4
1 Parent(s): 47289f8

Update config.py

Browse files
Files changed (1) hide show
  1. config.py +7 -5
config.py CHANGED
@@ -8,15 +8,15 @@
8
  """
9
 
10
  # [step 1]>> API_KEY = "sk-123456789xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx123456789"。极少数情况下,还需要填写组织(格式如org-123456789abcdefghijklmno的),请向下翻,找 API_ORG 设置项
11
- API_KEY = "此处填API密钥" # 可同时填写多个API-KEY,用英文逗号分割,例如API_KEY = "sk-openaikey1,sk-openaikey2,fkxxxx-api2dkey3,azure-apikey4"
12
 
13
 
14
  # [step 1]>> API_KEY = "sk-123456789xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx123456789"。极少数情况下,还需要填写组织(格式如org-123456789abcdefghijklmno的),请向下翻,找 API_ORG 设置项
15
- API_KEY = "此处填API密钥" # 可同时填写多个API-KEY,用英文逗号分割,例如API_KEY = "sk-openaikey1,sk-openaikey2,fkxxxx-api2dkey3,azure-apikey4"
16
 
17
 
18
  # [step 2]>> 改为True应用代理,如果直接在海外服务器部署,此处不修改;如果使用本地或无地域限制的大模型时,此处也不需要修改
19
- USE_PROXY = False
20
  if USE_PROXY:
21
  """
22
  代理网络的地址,打开你的代理软件查看代理协议(socks5h / http)、地址(localhost)和端口(11284)
@@ -27,9 +27,11 @@ if USE_PROXY:
27
  [端口] 在代理软件的设置里找。虽然不同的代理软件界面不一样,但端口号都应该在最显眼的位置上
28
  """
29
  proxies = {
 
 
30
  # [协议]:// [地址] :[端口]
31
- "http": "socks5h://localhost:11284", # 再例如 "http": "http://127.0.0.1:7890",
32
- "https": "socks5h://localhost:11284", # 再例如 "https": "http://127.0.0.1:7890",
33
  }
34
  else:
35
  proxies = None
 
8
  """
9
 
10
  # [step 1]>> API_KEY = "sk-123456789xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx123456789"。极少数情况下,还需要填写组织(格式如org-123456789abcdefghijklmno的),请向下翻,找 API_ORG 设置项
11
+ API_KEY = "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" # 可同时填写多个API-KEY,用英文逗号分割,例如API_KEY = "sk-openaikey1,sk-openaikey2,fkxxxx-api2dkey3,azure-apikey4"
12
 
13
 
14
  # [step 1]>> API_KEY = "sk-123456789xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx123456789"。极少数情况下,还需要填写组织(格式如org-123456789abcdefghijklmno的),请向下翻,找 API_ORG 设置项
15
+ API_KEY = "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" # 可同时填写多个API-KEY,用英文逗号分割,例如API_KEY = "sk-openaikey1,sk-openaikey2,fkxxxx-api2dkey3,azure-apikey4"
16
 
17
 
18
  # [step 2]>> 改为True应用代理,如果直接在海外服务器部署,此处不修改;如果使用本地或无地域限制的大模型时,此处也不需要修改
19
+ USE_PROXY = True
20
  if USE_PROXY:
21
  """
22
  代理网络的地址,打开你的代理软件查看代理协议(socks5h / http)、地址(localhost)和端口(11284)
 
27
  [端口] 在代理软件的设置里找。虽然不同的代理软件界面不一样,但端口号都应该在最显眼的位置上
28
  """
29
  proxies = {
30
+ "http": "http://127.0.0.1:7890",
31
+ "https": "http://127.0.0.1:7890",
32
  # [协议]:// [地址] :[端口]
33
+ #"http": "socks5h://localhost:11284", # 再例如 "http": "http://127.0.0.1:7890",
34
+ #"https": "socks5h://localhost:11284", # 再例如 "https": "http://127.0.0.1:7890",
35
  }
36
  else:
37
  proxies = None