File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ export class BaichuanWebBot extends AbstractBot {
49
49
'Content-Type' : 'application/json' ,
50
50
} ,
51
51
body : JSON . stringify ( {
52
+ assistant : { } ,
53
+ assistant_info : { } ,
54
+ retry : 3 ,
55
+ type : "input" ,
52
56
stream : true ,
53
57
request_id : uuid ( ) ,
54
58
app_info : { id : 10001 , name : 'baichuan_web' } ,
@@ -59,6 +63,7 @@ export class BaichuanWebBot extends AbstractBot {
59
63
from : message . from ,
60
64
parent_id : lastMessageId || 0 ,
61
65
created_at : message . createdAt ,
66
+ attachments : [ ]
62
67
} ,
63
68
session_info : { id : conversationId , name : '新的对话' , created_at : Date . now ( ) } ,
64
69
parameters : {
@@ -69,6 +74,7 @@ export class BaichuanWebBot extends AbstractBot {
69
74
max_new_tokens : - 1 ,
70
75
do_sample : - 1 ,
71
76
regenerate : 0 ,
77
+ wse :true
72
78
} ,
73
79
history : historyMessages ,
74
80
} ) ,
You can’t perform that action at this time.
0 commit comments