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 ec95292 commit 5a0d0c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
},
};
Expand Down Expand Up @@ -225,6 +228,7 @@ const baiduModels = [
"ernie-4.0-8k-latest",
"ernie-3.5-8k",
"ernie-3.5-8k-0205",
"ernie-speed"
];

const bytedanceModels = [
Expand Down

0 comments on commit 5a0d0c0

Please sign in to comment.