mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-19 17:25:40 +08:00
update constant for baidu add ernie-speed model
This commit is contained in:
@@ -134,6 +134,9 @@ export const Baidu = {
|
|||||||
if (modelName === "ernie-3.5-8k") {
|
if (modelName === "ernie-3.5-8k") {
|
||||||
endpoint = "completions";
|
endpoint = "completions";
|
||||||
}
|
}
|
||||||
|
if (modelName === "ernie-speed") {
|
||||||
|
endpoint = "ernie_speed";
|
||||||
|
}
|
||||||
return `rpc/2.0/ai_custom/v1/wenxinworkshop/chat/${endpoint}`;
|
return `rpc/2.0/ai_custom/v1/wenxinworkshop/chat/${endpoint}`;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -225,6 +228,7 @@ const baiduModels = [
|
|||||||
"ernie-4.0-8k-latest",
|
"ernie-4.0-8k-latest",
|
||||||
"ernie-3.5-8k",
|
"ernie-3.5-8k",
|
||||||
"ernie-3.5-8k-0205",
|
"ernie-3.5-8k-0205",
|
||||||
|
"ernie-speed"
|
||||||
];
|
];
|
||||||
|
|
||||||
const bytedanceModels = [
|
const bytedanceModels = [
|
||||||
|
Reference in New Issue
Block a user