Skip to content

Commit 6ac8c7c

Browse files
authored
Fix #1023 baichuan api error (#1024)
1 parent b97b701 commit 6ac8c7c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/app/bots/baichuan/index.ts

+6
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ export class BaichuanWebBot extends AbstractBot {
4949
'Content-Type': 'application/json',
5050
},
5151
body: JSON.stringify({
52+
assistant: {},
53+
assistant_info: {},
54+
retry: 3,
55+
type: "input",
5256
stream: true,
5357
request_id: uuid(),
5458
app_info: { id: 10001, name: 'baichuan_web' },
@@ -59,6 +63,7 @@ export class BaichuanWebBot extends AbstractBot {
5963
from: message.from,
6064
parent_id: lastMessageId || 0,
6165
created_at: message.createdAt,
66+
attachments: []
6267
},
6368
session_info: { id: conversationId, name: '新的对话', created_at: Date.now() },
6469
parameters: {
@@ -69,6 +74,7 @@ export class BaichuanWebBot extends AbstractBot {
6974
max_new_tokens: -1,
7075
do_sample: -1,
7176
regenerate: 0,
77+
wse:true
7278
},
7379
history: historyMessages,
7480
}),

0 commit comments

Comments
 (0)