no message

cyl/master-0804
jscyl13849007907 3 months ago
parent cc406d3be7
commit 88cacd71a2

@ -1364,14 +1364,16 @@
let that = this;
coziAjax.coziPost('/v1/conversation/create',{
"bot_id": uni.getStorageSync('robot_id'),
"agencyId":uni.getStorageSync("apply-agencyId"),
"messages": [
{
"content_type": "text",
"role": "user",
"type": "question"
}
]
],
"custom_variables":{
"agencyId":uni.getStorageSync("apply-agencyId"),
}
},(sdkRes) =>{
callback(sdkRes)
});
@ -1391,7 +1393,6 @@
method: "post",
body: {
"bot_id": uni.getStorageSync('robot_id'),
"agencyId":uni.getStorageSync("apply-agencyId"),
"user_id": "user",
"stream": true,
"additional_messages": [
@ -1401,7 +1402,10 @@
"role": "user",
"type": "question"
}
]
],
"custom_variables":{
"agencyId":uni.getStorageSync("apply-agencyId"),
}
},
});
callback()

Loading…
Cancel
Save