@xuda.io/ai_module 1.1.5229 → 1.1.5230
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
|
@@ -4202,8 +4202,8 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4202
4202
|
});
|
|
4203
4203
|
};
|
|
4204
4204
|
|
|
4205
|
-
const render_output_suggestions = async function () {
|
|
4206
|
-
const ret = await get_chat_suggestions({ uid, ai_agents, conversation_item_id:
|
|
4205
|
+
const render_output_suggestions = async function (response_conversation_item_id) {
|
|
4206
|
+
const ret = await get_chat_suggestions({ uid, ai_agents, conversation_item_id: response_conversation_item_id });
|
|
4207
4207
|
};
|
|
4208
4208
|
|
|
4209
4209
|
// const suggestionsPromise = activate_prompt_suggestions ? get_chat_suggestions({ uid, ai_agents, conversation_item_id: out_conversation_item_save_ret.data.id, context: prompt }) : Promise.resolve(null);
|
|
@@ -4891,7 +4891,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4891
4891
|
// }
|
|
4892
4892
|
|
|
4893
4893
|
if (activate_prompt_suggestions) {
|
|
4894
|
-
await render_output_suggestions(
|
|
4894
|
+
await render_output_suggestions(response_conversation_item_id);
|
|
4895
4895
|
}
|
|
4896
4896
|
|
|
4897
4897
|
return save_ret;
|