@xuda.io/ai_module 1.1.3778 → 1.1.3780
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 +3 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4735,16 +4735,14 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4735
4735
|
'properties.menuType': 'ai_agent',
|
|
4736
4736
|
},
|
|
4737
4737
|
limit: limit || 9999,
|
|
4738
|
-
skip: skip || 0,
|
|
4739
|
-
sort: ['ts'],
|
|
4740
4738
|
};
|
|
4741
4739
|
|
|
4742
4740
|
// let opt = {};
|
|
4743
4741
|
// add all agents if no agent id
|
|
4744
4742
|
if (val.ai_agent_id) {
|
|
4745
|
-
opt
|
|
4746
|
-
_id
|
|
4747
|
-
|
|
4743
|
+
opt.selector.
|
|
4744
|
+
_id= val.ai_agent_id,
|
|
4745
|
+
;
|
|
4748
4746
|
}
|
|
4749
4747
|
const agent_ret = await get_ai_agents(opt);
|
|
4750
4748
|
if (agent_ret.code > -1) {
|