xxwwwe commited on
Commit
4b91def
1 Parent(s): 971ac20

Update config.py

Browse files
Files changed (1) hide show
  1. config.py +8 -8
config.py CHANGED
@@ -7,16 +7,16 @@
7
  Configuration reading priority: environment variable > config_private.py > config.py
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
  填写格式是 [协议]:// [地址] :[端口],填写之前不要忘记把USE_PROXY改成True,如果直接在海外服务器部署,此处不修改
@@ -28,8 +28,8 @@ if USE_PROXY:
28
  # 代理网络的地址,打开你的*学*网软件查看代理的协议(socks5h / http)、地址(localhost)和端口(11284)
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
@@ -39,7 +39,7 @@ else:
39
  # 重新URL重新定向,实现更换API_URL的作用(高危设置! 常规情况下不要修改! 通过修改此设置,您将把您的API-KEY和对话隐私完全暴露给您设定的中间人!)
40
  # 格式: API_URL_REDIRECT = {"https://api.openai.com/v1/chat/completions": "在这里填写重定向的api.openai.com的URL"}
41
  # 举例: API_URL_REDIRECT = {"https://api.openai.com/v1/chat/completions": "https://reverse-proxy-url/v1/chat/completions"}
42
- API_URL_REDIRECT = {}
43
 
44
 
45
  # 多线程函数插件中,默认允许多少路线程同时访问OpenAI。Free trial users的限制是每分钟3次,Pay-as-you-go users的限制是每分钟3500次
 
7
  Configuration reading priority: environment variable > config_private.py > config.py
8
  """
9
 
10
+ # [step 1]>> API_KEY = "sk-ZO9KL72Zh17HTK7G7f991e4e4e0e4e2a904a194b8e74EfEf"。极少数情况下,还需要填写组织(格式如org-123456789abcdefghijklmno的),请向下翻,找 API_ORG 设置项
11
+ API_KEY = "sk-ZO9KL72Zh17HTK7G7f991e4e4e0e4e2a904a194b8e74EfEf" # 可同时填写多个API-KEY,用英文逗号分割,例如API_KEY = "sk-openaikey1,sk-openaikey2,fkxxxx-api2dkey3,azure-apikey4"
12
 
13
 
14
+ # [step 1]>> API_KEY = "sk-ZO9KL72Zh17HTK7G7f991e4e4e0e4e2a904a194b8e74EfEf"。极少数情况下,还需要填写组织(格式如org-123456789abcdefghijklmno的),请向下翻,找 API_ORG 设置项
15
+ API_KEY = "sk-ZO9KL72Zh17HTK7G7f991e4e4e0e4e2a904a194b8e74EfEf" # 可同时填写多个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
  填写格式是 [协议]:// [地址] :[端口],填写之前不要忘记把USE_PROXY改成True,如果直接在海外服务器部署,此处不修改
 
28
  # 代理网络的地址,打开你的*学*网软件查看代理的协议(socks5h / http)、地址(localhost)和端口(11284)
29
  proxies = {
30
  # [协议]:// [地址] :[端口]
31
+ "http": "http://127.0.0.1:33210", # 再例如 "http": "http://127.0.0.1:33210",
32
+ "https": "http://127.0.0.1:33210", # 再例如 "https": "http://127.0.0.1:33210",
33
  }
34
  else:
35
  proxies = None
 
39
  # 重新URL重新定向,实现更换API_URL的作用(高危设置! 常规情况下不要修改! 通过修改此设置,您将把您的API-KEY和对话隐私完全暴露给您设定的中间人!)
40
  # 格式: API_URL_REDIRECT = {"https://api.openai.com/v1/chat/completions": "在这里填写重定向的api.openai.com的URL"}
41
  # 举例: API_URL_REDIRECT = {"https://api.openai.com/v1/chat/completions": "https://reverse-proxy-url/v1/chat/completions"}
42
+ API_URL_REDIRECT = {https://d1.xiamoai.top/v1}
43
 
44
 
45
  # 多线程函数插件中,默认允许多少路线程同时访问OpenAI。Free trial users的限制是每分钟3次,Pay-as-you-go users的限制是每分钟3500次