Skip to content

Commit

Permalink
update constant for baidu add ernie-speed model
Browse files Browse the repository at this point in the history
  • Loading branch information
consistent-k committed Jul 17, 2024
1 parent 5a0d0c0 commit 5dc731b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down Expand Up @@ -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 = [
Expand Down

0 comments on commit 5dc731b

Please sign in to comment.