@xuda.io/ai_module 1.1.5408 → 1.1.5410
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 +9 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4219,7 +4219,12 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4219
4219
|
// emitToDashboard('stream_start');
|
|
4220
4220
|
emitToDashboard('suggestions', JSON.stringify(ret.data));
|
|
4221
4221
|
// emitToDashboard('stream_end');
|
|
4222
|
+
|
|
4223
|
+
let in_conversation_item_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, response_conversation_item_id);
|
|
4224
|
+
in_conversation_item_doc.output_suggestions = ret.data || [];
|
|
4225
|
+
const save_ret = await db_module.save_app_couch_doc_native(account_profile_info.app_id, in_conversation_item_doc);
|
|
4222
4226
|
}
|
|
4227
|
+
return ret;
|
|
4223
4228
|
};
|
|
4224
4229
|
|
|
4225
4230
|
conversation_doc.stat = 2;
|
|
@@ -4914,6 +4919,10 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4914
4919
|
prompt_suggestions,
|
|
4915
4920
|
prompt_selected_suggestion,
|
|
4916
4921
|
};
|
|
4922
|
+
|
|
4923
|
+
// if (activate_prompt_suggestions) {
|
|
4924
|
+
// doc.output_suggestions=await render_output_suggestions(response_conversation_item_id);
|
|
4925
|
+
// }
|
|
4917
4926
|
const save_ret = await db_module.save_app_couch_doc_native(account_profile_info.app_id, in_conversation_item_obj);
|
|
4918
4927
|
|
|
4919
4928
|
debugger;
|