try getAccessToken in app, fixbug to fetch in none stream mode

This commit is contained in:
lloydzhou
2024-07-09 14:50:40 +08:00
parent 011b76e4e7
commit fadd7f6eb4
3 changed files with 47 additions and 33 deletions

View File

@@ -124,7 +124,7 @@ export const Baidu = {
if (modelName === "ernie-3.5-8k") {
endpoint = "completions";
}
return `/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/${endpoint}`;
return `rpc/2.0/ai_custom/v1/wenxinworkshop/chat/${endpoint}`;
},
};