Spaces:
Runtime error
Runtime error
Update config.py
Browse files
config.py
CHANGED
|
@@ -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次
|
|
@@ -94,11 +94,14 @@ DEFAULT_FN_GROUPS = ['对话', '编程', '学术', '智能体']
|
|
| 94 |
|
| 95 |
# 模型选择是 (注意: LLM_MODEL是默认选中的模型, 它*必须*被包含在AVAIL_LLM_MODELS列表中 )
|
| 96 |
LLM_MODEL = "gpt-3.5-turbo" # 可选 ↓↓↓
|
| 97 |
-
AVAIL_LLM_MODELS = [
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
|
|
|
|
|
|
|
|
|
| 102 |
# P.S. 其他可用的模型还包括 ["zhipuai", "qianfan", "deepseekcoder", "llama2", "qwen-local", "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 |
# “qwen-turbo", "qwen-plus", "qwen-max"]
|
|
|
|
| 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.lazymicezhu.com/v1/chat/completions"}
|
| 43 |
|
| 44 |
|
| 45 |
# 多线程函数插件中,默认允许多少路线程同时访问OpenAI。Free trial users的限制是每分钟3次,Pay-as-you-go users的限制是每分钟3500次
|
|
|
|
| 94 |
|
| 95 |
# 模型选择是 (注意: LLM_MODEL是默认选中的模型, 它*必须*被包含在AVAIL_LLM_MODELS列表中 )
|
| 96 |
LLM_MODEL = "gpt-3.5-turbo" # 可选 ↓↓↓
|
| 97 |
+
AVAIL_LLM_MODELS = [
|
| 98 |
+
"gpt-3.5-turbo-1106", "gpt-4-1106-preview", "gpt-4-vision-preview",
|
| 99 |
+
"gpt-3.5-turbo-16k", "gpt-3.5-turbo",
|
| 100 |
+
"gpt-4", "gpt-4-32k", "claude-2-100k",
|
| 101 |
+
"gpt-4-vision-compatible", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-0314", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-instruct",
|
| 102 |
+
"gpt-3.5-turbo-16k-0613", "gpt-3.5-turbo-16k-0314", "gpt-4-0613", "gpt-4-0314", "gpt-4-32k-0613", "gpt-4-32k-0314",
|
| 103 |
+
"net-gpt-3.5-turbo", "net-gpt-4", "gpt-4-all", "claude-1-100k", "google-palm", "llama-2-70b", "llama-2-13b", "llama-2-7b", "code-llama-34b", "code-llama-13b", "code-llama-7b"
|
| 104 |
+
]
|
| 105 |
# P.S. 其他可用的模型还包括 ["zhipuai", "qianfan", "deepseekcoder", "llama2", "qwen-local", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-16k-0613", "gpt-3.5-random"
|
| 106 |
# "spark", "sparkv2", "sparkv3", "chatglm_onnx", "claude-1-100k", "claude-2", "internlm", "jittorllms_pangualpha", "jittorllms_llama"
|
| 107 |
# “qwen-turbo", "qwen-plus", "qwen-max"]
|