@xuda.io/ai_module 1.1.5138 → 1.1.5139
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +5 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4157,9 +4157,11 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4157
4157
|
|
|
4158
4158
|
// await _utils.delay(500);
|
|
4159
4159
|
await update_job('initiating conversation');
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4160
|
+
let prompt_suggestions = [];
|
|
4161
|
+
setTimeout(async () => {
|
|
4162
|
+
const prompt_suggestions_ret = await get_chat_suggestions(uid, ai_agents, out_conversation_item_save_ret.data.id);
|
|
4163
|
+
if (prompt_suggestions_ret.code > -1) prompt_suggestions = prompt_suggestions_ret.data;
|
|
4164
|
+
}, 1);
|
|
4163
4165
|
// let conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_id);
|
|
4164
4166
|
const reference_type = conversation_doc.reference_type;
|
|
4165
4167
|
const reference_id = conversation_doc.reference_id;
|