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