@xuda.io/ai_module 1.1.5258 → 1.1.5259
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 +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4198,7 +4198,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4198
4198
|
clearInterval(interval);
|
|
4199
4199
|
}
|
|
4200
4200
|
}, 500);
|
|
4201
|
-
const ret = await get_chat_suggestions({ uid, ai_agents, conversation_item_id: out_conversation_item_save_ret.data.id, context: prompt });
|
|
4201
|
+
const ret = await get_chat_suggestions({ uid, type: 'chat prompt', ai_agents, conversation_item_id: out_conversation_item_save_ret.data.id, context: prompt });
|
|
4202
4202
|
clearInterval(interval);
|
|
4203
4203
|
resolve(ret);
|
|
4204
4204
|
});
|
|
@@ -4208,7 +4208,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4208
4208
|
debugger;
|
|
4209
4209
|
console.log('prompt_suggestions', prompt_suggestions);
|
|
4210
4210
|
const agentIds = prompt_suggestions.map((agent) => agent.agent_id);
|
|
4211
|
-
const ret = await get_chat_suggestions({ uid, ai_agents, conversation_item_id: response_conversation_item_id, exclude_agents: agentIds });
|
|
4211
|
+
const ret = await get_chat_suggestions({ uid, type: 'chat response', ai_agents, conversation_item_id: response_conversation_item_id, exclude_agents: agentIds });
|
|
4212
4212
|
|
|
4213
4213
|
if (ret && ret.code > -1) {
|
|
4214
4214
|
emitToDashboard('suggestions', JSON.stringify(ret.data));
|