support bytedance api start with "bot-" (with internet ability)

This commit is contained in:
suruiqiang
2025-02-14 16:14:41 +08:00
parent c15dbf5296
commit e2429d444b
4 changed files with 16 additions and 4 deletions

View File

@@ -216,7 +216,13 @@ export const Baidu = {
export const ByteDance = {
ExampleEndpoint: "https://ark.cn-beijing.volces.com/api/",
ChatPath: "api/v3/chat/completions",
ChatPath: (modelName: string) => {
if (modelName.startsWith("bot-")) {
return "api/v3/bots/chat/completions";
} else {
return "api/v3/chat/completions";
}
},
};
export const Alibaba = {