@xuda.io/ai_module 1.1.5172 → 1.1.5174
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 +4 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1117,7 +1117,7 @@ export const get_chat_conversation = async function (req) {
|
|
|
1117
1117
|
conversation_item_doc.read[uid] = Date.now();
|
|
1118
1118
|
await db_module.save_app_couch_doc(account_profile_info.app_id, conversation_item_doc);
|
|
1119
1119
|
}
|
|
1120
|
-
|
|
1120
|
+
|
|
1121
1121
|
return { code: 15, data: { conversation: conversation_items, ...conversation_doc } };
|
|
1122
1122
|
} catch (err) {
|
|
1123
1123
|
return { code: -15, data: err.message };
|
|
@@ -4672,9 +4672,9 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4672
4672
|
// for (const suggestion of prompt_suggestions) {
|
|
4673
4673
|
// emitToDashboard('stream_delta', `<button title="${suggestion.agent_description}" onclick="alert('Hello World!')">${suggestion.short_action}</button>`);
|
|
4674
4674
|
// }
|
|
4675
|
-
emitToDashboard('stream_delta', 'suggestions start');
|
|
4676
|
-
emitToDashboard('
|
|
4677
|
-
emitToDashboard('stream_delta', 'suggestions end');
|
|
4675
|
+
// emitToDashboard('stream_delta', 'suggestions start');
|
|
4676
|
+
emitToDashboard('suggestions', JSON.stringify(prompt_suggestions));
|
|
4677
|
+
// emitToDashboard('stream_delta', 'suggestions end');
|
|
4678
4678
|
};
|
|
4679
4679
|
|
|
4680
4680
|
// try {
|