@xuda.io/ai_module 1.1.5137 → 1.1.5138

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.
Files changed (2) hide show
  1. package/index.mjs +2 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4114,6 +4114,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4114
4114
 
4115
4115
  try {
4116
4116
  if (out_conversation_item_save_ret.code < 0) throw new Error(out_conversation_item_save_ret.data);
4117
+
4117
4118
  if (conversation_item_id) {
4118
4119
  const conversation_item_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, conversation_item_id);
4119
4120
  prompt = conversation_item_doc.text || conversation_item_doc.prompt;
@@ -4155,12 +4156,10 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4155
4156
  emitToDashboard('stream_start');
4156
4157
 
4157
4158
  // await _utils.delay(500);
4158
-
4159
+ await update_job('initiating conversation');
4159
4160
  // prompt_suggestions
4160
4161
  const { data: prompt_suggestions } = await get_chat_suggestions(uid, ai_agents, out_conversation_item_save_ret.data.id);
4161
4162
 
4162
- await update_job('initiating conversation');
4163
-
4164
4163
  // let conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_id);
4165
4164
  const reference_type = conversation_doc.reference_type;
4166
4165
  const reference_id = conversation_doc.reference_id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5137",
3
+ "version": "1.1.5138",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",