@xuda.io/ai_module 1.1.4563 → 1.1.4565

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 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4529,6 +4529,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4529
4529
  let { prompt, conversation_doc, attachments = [], ai_agents, output_format = 'md', stream = true, with_context = true } = req;
4530
4530
  await _utils.delay(1000);
4531
4531
  const conversation_id = conversation_doc._id;
4532
+
4532
4533
  // const { account_profile_info } = conversation_doc;
4533
4534
  const emitToDashboard = (type, content) => {
4534
4535
  // console.log(type, content);
@@ -5157,6 +5158,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
5157
5158
  prompt,
5158
5159
  response: output.state._currentStep.output,
5159
5160
  reference_id: conversation_doc.reference_id,
5161
+ direction: 'out',
5160
5162
  role: 'user',
5161
5163
  };
5162
5164
  await db_module.save_app_couch_doc_native(account_profile_info.app_id, conversation_item_obj);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4563",
3
+ "version": "1.1.4565",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",