笨蛋 commited on
Commit
1b5ee24
1 Parent(s): fe34531

Update config.py

Browse files
Files changed (1) hide show
  1. config.py +9 -12
config.py CHANGED
@@ -39,18 +39,18 @@ 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次
46
  # 一言以蔽之:免费(5刀)用户填3,OpenAI绑了信用卡的用户可以填 16 或者更高。提高限制请查询:https://platform.openai.com/docs/guides/rate-limits/overview
47
- DEFAULT_WORKER_NUM = 3
48
 
49
 
50
  # 色彩主题, 可选 ["Default", "Chuanhu-Small-and-Beautiful", "High-Contrast"]
51
  # 更多主题, 请查阅Gradio主题商店: https://huggingface.co/spaces/gradio/theme-gallery 可选 ["Gstaff/Xkcd", "NoCrypt/Miku", ...]
52
  THEME = "Chuanhu-Small-and-Beautiful"
53
- AVAIL_THEMES = ["Default", "Chuanhu-Small-and-Beautiful", "High-Contrast", "Gstaff/Xkcd", "NoCrypt/Miku"]
54
 
55
 
56
  # 默认的系统提示词(system prompt)
@@ -70,11 +70,11 @@ LAYOUT = "LEFT-RIGHT" # "LEFT-RIGHT"(左右布局) # "TOP-DOWN"(上下
70
 
71
 
72
  # 暗色模式 / 亮色模式
73
- DARK_MODE = True
74
 
75
 
76
  # 发送请求到OpenAI后,等待多久判定为超时
77
- TIMEOUT_SECONDS = 30
78
 
79
 
80
  # 网页的端口, -1代表随机端口
@@ -86,7 +86,7 @@ MAX_RETRY = 2
86
 
87
  # OpenAI模型选择是(gpt4现在只对申请成功的人开放)
88
  LLM_MODEL = "gpt-3.5-turbo" # 可选 "chatglm"
89
- AVAIL_LLM_MODELS = ["gpt-3.5-turbo", "gpt-4", "api2d-gpt-4", "api2d-gpt-3.5-turbo", "spark", "azure-gpt-3.5"]
90
 
91
  # 插件分类默认选项
92
  DEFAULT_FN_GROUPS = ['对话', '编程', '学术', '智能体']
@@ -94,11 +94,8 @@ DEFAULT_FN_GROUPS = ['对话', '编程', '学术', '智能体']
94
 
95
  # 模型选择是 (注意: LLM_MODEL是默认选中的模型, 它*必须*被包含在AVAIL_LLM_MODELS列表中 )
96
  LLM_MODEL = "gpt-3.5-turbo" # 可选 ↓↓↓
97
- AVAIL_LLM_MODELS = ["gpt-3.5-turbo-1106","gpt-4-1106-preview","gpt-4-vision-preview",
98
- "gpt-3.5-turbo-16k", "gpt-3.5-turbo", "azure-gpt-3.5",
99
- "api2d-gpt-3.5-turbo", 'api2d-gpt-3.5-turbo-16k',
100
- "gpt-4", "gpt-4-32k", "azure-gpt-4", "api2d-gpt-4",
101
- "chatglm3", "moss", "claude-2"]
102
  # P.S. 其他可用的模型还包括 ["zhipuai", "qianfan", "deepseekcoder", "llama2", "qwen", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-16k-0613", "gpt-3.5-random"
103
  # "spark", "sparkv2", "sparkv3", "chatglm_onnx", "claude-1-100k", "claude-2", "internlm", "jittorllms_pangualpha", "jittorllms_llama"]
104
 
@@ -127,7 +124,7 @@ CONCURRENT_COUNT = 100
127
 
128
 
129
  # 是否在提交时自动清空输入框
130
- AUTO_CLEAR_TXT = False
131
 
132
 
133
  # 加一个live2d装饰
 
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://api.openai.com/v1/chat/completions": "https://api.b3n.fun/v1/chat/completions"}
43
 
44
 
45
  # 多线程函数插件中,默认允许多少路线程同时访问OpenAI。Free trial users的限制是每分钟3次,Pay-as-you-go users的限制是每分钟3500次
46
  # 一言以蔽之:免费(5刀)用户填3,OpenAI绑了信用卡的用户可以填 16 或者更高。提高限制请查询:https://platform.openai.com/docs/guides/rate-limits/overview
47
+ DEFAULT_WORKER_NUM = 16
48
 
49
 
50
  # 色彩主题, 可选 ["Default", "Chuanhu-Small-and-Beautiful", "High-Contrast"]
51
  # 更多主题, 请查阅Gradio主题商店: https://huggingface.co/spaces/gradio/theme-gallery 可选 ["Gstaff/Xkcd", "NoCrypt/Miku", ...]
52
  THEME = "Chuanhu-Small-and-Beautiful"
53
+ AVAIL_THEMES = ["Chuanhu-Small-and-Beautiful"]
54
 
55
 
56
  # 默认的系统提示词(system prompt)
 
70
 
71
 
72
  # 暗色模式 / 亮色模式
73
+ DARK_MODE = False
74
 
75
 
76
  # 发送请求到OpenAI后,等待多久判定为超时
77
+ TIMEOUT_SECONDS = 60
78
 
79
 
80
  # 网页的端口, -1代表随机端口
 
86
 
87
  # OpenAI模型选择是(gpt4现在只对申请成功的人开放)
88
  LLM_MODEL = "gpt-3.5-turbo" # 可选 "chatglm"
89
+ AVAIL_LLM_MODELS = ["gpt-3.5-turbo", "gpt-3.5-turbo-16k","gpt-3.5-turbo-1106", "gpt-4", "gpt-4-1106-preview", "gpt-4-32k"]
90
 
91
  # 插件分类默认选项
92
  DEFAULT_FN_GROUPS = ['对话', '编程', '学术', '智能体']
 
94
 
95
  # 模型选择是 (注意: LLM_MODEL是默认选中的模型, 它*必须*被包含在AVAIL_LLM_MODELS列表中 )
96
  LLM_MODEL = "gpt-3.5-turbo" # 可选 ↓↓↓
97
+ AVAIL_LLM_MODELS = ["gpt-3.5-turbo", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-16k", "gpt-4", "gpt-4-1106-preview", "gpt-4-32k"]
98
+
 
 
 
99
  # P.S. 其他可用的模型还包括 ["zhipuai", "qianfan", "deepseekcoder", "llama2", "qwen", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-16k-0613", "gpt-3.5-random"
100
  # "spark", "sparkv2", "sparkv3", "chatglm_onnx", "claude-1-100k", "claude-2", "internlm", "jittorllms_pangualpha", "jittorllms_llama"]
101
 
 
124
 
125
 
126
  # 是否在提交时自动清空输入框
127
+ AUTO_CLEAR_TXT = True
128
 
129
 
130
  # 加一个live2d装饰