Spaces:
Runtime error
Runtime error
Update config_private.py
Browse files- config_private.py +4 -2
config_private.py
CHANGED
|
@@ -46,7 +46,7 @@ MAX_RETRY = 2
|
|
| 46 |
|
| 47 |
# OpenAI模型选择是(gpt4现在只对申请成功的人开放)
|
| 48 |
LLM_MODEL = "gpt-3.5-turbo" # 可选 "chatglm"
|
| 49 |
-
AVAIL_LLM_MODELS = ["newbing-free", "gpt-3.5-turbo", "gpt-4"
|
| 50 |
|
| 51 |
# 本地LLM模型如ChatGLM的执行方式 CPU/GPU
|
| 52 |
LOCAL_MODEL_DEVICE = "cpu" # 可选 "cuda"
|
|
@@ -65,7 +65,9 @@ AUTHENTICATION = []
|
|
| 65 |
# (高危设置!通过修改此设置,您将把您的API-KEY和对话隐私完全暴露给您设定的中间人!)
|
| 66 |
# 格式 {"https://api.openai.com/v1/chat/completions": "在这里填写重定向的api.openai.com的URL"}
|
| 67 |
# 例如 API_URL_REDIRECT = {"https://api.openai.com/v1/chat/completions": "https://ai.open.com/api/conversation"}
|
| 68 |
-
API_URL_REDIRECT = {
|
|
|
|
|
|
|
| 69 |
|
| 70 |
# 如果需要在二级路径下运行(常规情况下,不要修改!!)(需要配合修改main.py才能生效!)
|
| 71 |
CUSTOM_PATH = "/"
|
|
|
|
| 46 |
|
| 47 |
# OpenAI模型选择是(gpt4现在只对申请成功的人开放)
|
| 48 |
LLM_MODEL = "gpt-3.5-turbo" # 可选 "chatglm"
|
| 49 |
+
AVAIL_LLM_MODELS = ["newbing-free", "gpt-3.5-turbo", "gpt-4"]
|
| 50 |
|
| 51 |
# 本地LLM模型如ChatGLM的执行方式 CPU/GPU
|
| 52 |
LOCAL_MODEL_DEVICE = "cpu" # 可选 "cuda"
|
|
|
|
| 65 |
# (高危设置!通过修改此设置,您将把您的API-KEY和对话隐私完全暴露给您设定的中间人!)
|
| 66 |
# 格式 {"https://api.openai.com/v1/chat/completions": "在这里填写重定向的api.openai.com的URL"}
|
| 67 |
# 例如 API_URL_REDIRECT = {"https://api.openai.com/v1/chat/completions": "https://ai.open.com/api/conversation"}
|
| 68 |
+
API_URL_REDIRECT = {
|
| 69 |
+
"https://api.openai.com/v1/chat/completions": "https://api.f2gpt.com/v1/chat/completions"
|
| 70 |
+
}
|
| 71 |
|
| 72 |
# 如果需要在二级路径下运行(常规情况下,不要修改!!)(需要配合修改main.py才能生效!)
|
| 73 |
CUSTOM_PATH = "/"
|