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

@@ -117,7 +117,7 @@ export class DoubaoApi implements LLMApi {
options.onController?.(controller);
try {
const chatPath = this.path(ByteDance.ChatPath);
const chatPath = this.path(ByteDance.ChatPath(modelConfig.model));
const chatPayload = {
method: "POST",
body: JSON.stringify(requestPayload),