From 88cacd71a230ce25c73461cb219c5fa47205467b Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Wed, 13 Aug 2025 09:39:27 +0800 Subject: [PATCH] no message --- root/chat/index.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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()