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