@xuda.io/ai_module 1.1.3538 → 1.1.3540

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 +12 -7
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1749,15 +1749,20 @@ export const get_ai_chats = async function (req, job_id, headers) {
1749
1749
  return ret;
1750
1750
  };
1751
1751
 
1752
- let opt = {
1753
- docType: 'chat_conversation',
1754
- stat: 3,
1755
- reference_id: '',
1756
- };
1757
-
1758
1752
  try {
1759
1753
  if (_id) return await get_ai_doc({ _id, uid });
1760
1754
 
1755
+ let opt = {
1756
+ selector: {
1757
+ docType: 'chat_conversation',
1758
+ stat: 3,
1759
+ reference_id: '',
1760
+ },
1761
+ };
1762
+
1763
+ if (archived) {
1764
+ }
1765
+
1761
1766
  const app_id = await account_module.get_account_default_project_id(uid);
1762
1767
 
1763
1768
  ////// FROM - IN
@@ -3679,7 +3684,7 @@ export const submit_chat_gpt_prompt = async function (req) {
3679
3684
  };
3680
3685
  export const create_conversation = async function (req, job_id, headers) {
3681
3686
  const { uid, prompt } = req;
3682
- let { reference_type, reference_id, conversation_type } = req;
3687
+ let { reference_type, reference_id = '', conversation_type } = req;
3683
3688
  const app_id = await account_module.get_account_default_project_id(uid);
3684
3689
 
3685
3690
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3538",
3
+ "version": "1.1.3540",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",