diff --git a/root/chat/index.vue b/root/chat/index.vue index 77d20c6..ec20788 100644 --- a/root/chat/index.vue +++ b/root/chat/index.vue @@ -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()