Skip to content

Commit

Permalink
Merge pull request #5040 from consistent-k/main
Browse files Browse the repository at this point in the history
update constant for baidu  add ENIRE Speed  ENIRE Lite model
  • Loading branch information
Dogtiti authored Jul 17, 2024
2 parents ec95292 + 9aabc4a commit 2e9f701
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ export const Baidu = {
if (modelName === "ernie-3.5-8k") {
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}`;
},
};
Expand Down Expand Up @@ -225,6 +231,10 @@ const baiduModels = [
"ernie-4.0-8k-latest",
"ernie-3.5-8k",
"ernie-3.5-8k-0205",
"ernie-speed-128k",
"ernie-speed-8k",
"ernie-lite-8k",
"ernie-tiny-8k"
];

const bytedanceModels = [
Expand Down

0 comments on commit 2e9f701

Please sign in to comment.