From 17d4a8fb269d48eb305a056d8e62bbd8c0353def Mon Sep 17 00:00:00 2001 From: wuzhiqing Date: Wed, 17 Jul 2024 11:12:26 +0800 Subject: [PATCH 1/5] chore: update .env.template to align with README.md --- .env.template | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.env.template b/.env.template index b2a0438d9d1..c4ca732c9b8 100644 --- a/.env.template +++ b/.env.template @@ -1,11 +1,10 @@ - # Your openai api key. (required) OPENAI_API_KEY=sk-xxxx # Access password, separated by comma. (optional) CODE=your-password -# You can start service behind a proxy +# You can start service behind a proxy. (optional) PROXY_URL=http://localhost:7890 # (optional) @@ -47,6 +46,15 @@ ENABLE_BALANCE_QUERY= # If you want to disable parse settings from url, set this value to 1. 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_API_KEY= @@ -54,8 +62,6 @@ ANTHROPIC_API_KEY= ### anthropic claude Api version. (optional) ANTHROPIC_API_VERSION= - - ### anthropic claude Api url (optional) ANTHROPIC_URL= From 5a0d0c0b75a9eb4d9a6853457195dd954bf528c3 Mon Sep 17 00:00:00 2001 From: consistent-k <67736912+consistent-k@users.noreply.github.com> Date: Wed, 17 Jul 2024 08:54:53 +0000 Subject: [PATCH 2/5] update constant for baidu add ernie-speed model --- app/constant.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/constant.ts b/app/constant.ts index a146200d63b..a6c9eadc033 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -134,6 +134,9 @@ export const Baidu = { if (modelName === "ernie-3.5-8k") { endpoint = "completions"; } + if (modelName === "ernie-speed") { + endpoint = "ernie_speed"; + } return `rpc/2.0/ai_custom/v1/wenxinworkshop/chat/${endpoint}`; }, }; @@ -225,6 +228,7 @@ const baiduModels = [ "ernie-4.0-8k-latest", "ernie-3.5-8k", "ernie-3.5-8k-0205", + "ernie-speed" ]; const bytedanceModels = [ From 32d05c9855ae1c3d6c049f3501ab57f1e9de0990 Mon Sep 17 00:00:00 2001 From: DDMeaqua Date: Wed, 17 Jul 2024 17:01:50 +0800 Subject: [PATCH 3/5] feat: scrollbar width change --- app/styles/globals.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/styles/globals.scss b/app/styles/globals.scss index 20792cda526..3c59f2d44f7 100644 --- a/app/styles/globals.scss +++ b/app/styles/globals.scss @@ -118,7 +118,7 @@ body { } ::-webkit-scrollbar { - --bar-width: 5px; + --bar-width: 10px; width: var(--bar-width); height: var(--bar-width); } From 5dc731bc7713f6506f685a8a6eaa4ffa4d52f6ab Mon Sep 17 00:00:00 2001 From: consistent-k <67736912+consistent-k@users.noreply.github.com> Date: Wed, 17 Jul 2024 09:29:43 +0000 Subject: [PATCH 4/5] update constant for baidu add ernie-speed model --- app/constant.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/constant.ts b/app/constant.ts index a6c9eadc033..2488a57afdb 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -134,7 +134,10 @@ export const Baidu = { if (modelName === "ernie-3.5-8k") { endpoint = "completions"; } - if (modelName === "ernie-speed") { + 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}`; @@ -228,7 +231,8 @@ const baiduModels = [ "ernie-4.0-8k-latest", "ernie-3.5-8k", "ernie-3.5-8k-0205", - "ernie-speed" + "ernie-speed-128k", + "ernie-speed-8k" ]; const bytedanceModels = [ From 9aabc4ad6add38e662d6338b3ae724f18690322e Mon Sep 17 00:00:00 2001 From: consistent-k <67736912+consistent-k@users.noreply.github.com> Date: Wed, 17 Jul 2024 10:41:31 +0000 Subject: [PATCH 5/5] update constant for baidu add ernie-tiny model --- app/constant.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/constant.ts b/app/constant.ts index 2488a57afdb..e0b3d227eab 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -232,7 +232,9 @@ const baiduModels = [ "ernie-3.5-8k", "ernie-3.5-8k-0205", "ernie-speed-128k", - "ernie-speed-8k" + "ernie-speed-8k", + "ernie-lite-8k", + "ernie-tiny-8k" ]; const bytedanceModels = [