File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 } ) ,
You can’t perform that action at this time.
0 commit comments