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] 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 = [