Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web
This commit is contained in:
commit
9bbaa7cebd
|
@ -1,11 +1,10 @@
|
||||||
|
|
||||||
# Your openai api key. (required)
|
# Your openai api key. (required)
|
||||||
OPENAI_API_KEY=sk-xxxx
|
OPENAI_API_KEY=sk-xxxx
|
||||||
|
|
||||||
# Access password, separated by comma. (optional)
|
# Access password, separated by comma. (optional)
|
||||||
CODE=your-password
|
CODE=your-password
|
||||||
|
|
||||||
# You can start service behind a proxy
|
# You can start service behind a proxy. (optional)
|
||||||
PROXY_URL=http://localhost:7890
|
PROXY_URL=http://localhost:7890
|
||||||
|
|
||||||
# (optional)
|
# (optional)
|
||||||
|
@ -47,6 +46,15 @@ ENABLE_BALANCE_QUERY=
|
||||||
# If you want to disable parse settings from url, set this value to 1.
|
# If you want to disable parse settings from url, set this value to 1.
|
||||||
DISABLE_FAST_LINK=
|
DISABLE_FAST_LINK=
|
||||||
|
|
||||||
|
# (optional)
|
||||||
|
# Default: Empty
|
||||||
|
# To control custom models, use + to add a custom model, use - to hide a model, use name=displayName to customize model name, separated by comma.
|
||||||
|
CUSTOM_MODELS=
|
||||||
|
|
||||||
|
# (optional)
|
||||||
|
# Default: Empty
|
||||||
|
# Change default model
|
||||||
|
DEFAULT_MODEL=
|
||||||
|
|
||||||
# anthropic claude Api Key.(optional)
|
# anthropic claude Api Key.(optional)
|
||||||
ANTHROPIC_API_KEY=
|
ANTHROPIC_API_KEY=
|
||||||
|
@ -54,8 +62,6 @@ ANTHROPIC_API_KEY=
|
||||||
### anthropic claude Api version. (optional)
|
### anthropic claude Api version. (optional)
|
||||||
ANTHROPIC_API_VERSION=
|
ANTHROPIC_API_VERSION=
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### anthropic claude Api url (optional)
|
### anthropic claude Api url (optional)
|
||||||
ANTHROPIC_URL=
|
ANTHROPIC_URL=
|
||||||
|
|
||||||
|
|
|
@ -134,6 +134,12 @@ export const Baidu = {
|
||||||
if (modelName === "ernie-3.5-8k") {
|
if (modelName === "ernie-3.5-8k") {
|
||||||
endpoint = "completions";
|
endpoint = "completions";
|
||||||
}
|
}
|
||||||
|
if (modelName === "ernie-speed-128k") {
|
||||||
|
endpoint = "ernie-speed-128k";
|
||||||
|
}
|
||||||
|
if (modelName === "ernie-speed-8k") {
|
||||||
|
endpoint = "ernie_speed";
|
||||||
|
}
|
||||||
return `rpc/2.0/ai_custom/v1/wenxinworkshop/chat/${endpoint}`;
|
return `rpc/2.0/ai_custom/v1/wenxinworkshop/chat/${endpoint}`;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -225,6 +231,10 @@ const baiduModels = [
|
||||||
"ernie-4.0-8k-latest",
|
"ernie-4.0-8k-latest",
|
||||||
"ernie-3.5-8k",
|
"ernie-3.5-8k",
|
||||||
"ernie-3.5-8k-0205",
|
"ernie-3.5-8k-0205",
|
||||||
|
"ernie-speed-128k",
|
||||||
|
"ernie-speed-8k",
|
||||||
|
"ernie-lite-8k",
|
||||||
|
"ernie-tiny-8k"
|
||||||
];
|
];
|
||||||
|
|
||||||
const bytedanceModels = [
|
const bytedanceModels = [
|
||||||
|
|
|
@ -118,7 +118,7 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
--bar-width: 5px;
|
--bar-width: 10px;
|
||||||
width: var(--bar-width);
|
width: var(--bar-width);
|
||||||
height: var(--bar-width);
|
height: var(--bar-width);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue