@xuda.io/ai_module 1.1.5096 → 1.1.5097
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 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1374,10 +1374,10 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1374
1374
|
let conversations = {};
|
|
1375
1375
|
let docs = [];
|
|
1376
1376
|
for (let val of ret.rows || []) {
|
|
1377
|
-
if (!conversations[val.value.
|
|
1378
|
-
conversations[val.value.
|
|
1377
|
+
if (!conversations[val.value.conversation_item_id]) {
|
|
1378
|
+
conversations[val.value.conversation_item_id] = {};
|
|
1379
1379
|
}
|
|
1380
|
-
conversations[val.value.
|
|
1380
|
+
conversations[val.value.conversation_item_id][val.value.type] = val.doc;
|
|
1381
1381
|
}
|
|
1382
1382
|
|
|
1383
1383
|
for (let val of ret.rows || []) {
|