@xuda.io/ai_module 1.1.5262 → 1.1.5264
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 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4211,7 +4211,9 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4211
4211
|
const ret = await get_chat_suggestions({ uid, type: 'chat response', ai_agents, conversation_item_id: response_conversation_item_id, exclude_agents });
|
|
4212
4212
|
|
|
4213
4213
|
if (ret && ret.code > -1) {
|
|
4214
|
+
emitToDashboard('stream_start');
|
|
4214
4215
|
emitToDashboard('suggestions', JSON.stringify(ret.data));
|
|
4216
|
+
emitToDashboard('stream_end');
|
|
4215
4217
|
}
|
|
4216
4218
|
};
|
|
4217
4219
|
|