@xuda.io/ai_module 1.1.5277 → 1.1.5279
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 +1 -17
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4213,7 +4213,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4213
4213
|
if (ret && ret.code > -1) {
|
|
4214
4214
|
emitToDashboard('stream_start');
|
|
4215
4215
|
emitToDashboard('suggestions', JSON.stringify(ret.data));
|
|
4216
|
-
emitToDashboard('stream_end');
|
|
4216
|
+
// emitToDashboard('stream_end');
|
|
4217
4217
|
}
|
|
4218
4218
|
};
|
|
4219
4219
|
|
|
@@ -4801,22 +4801,6 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4801
4801
|
} else {
|
|
4802
4802
|
emitToDashboard('response_start');
|
|
4803
4803
|
}
|
|
4804
|
-
|
|
4805
|
-
// await render_suggestions();
|
|
4806
|
-
// await _utils.delay(10000);
|
|
4807
|
-
// const job_info = await jobs_ms.get_job_info({ job_id });
|
|
4808
|
-
|
|
4809
|
-
// if (job_info.code < 0 || job_info.data.stat === 4) {
|
|
4810
|
-
// // return { code: 5, data: 'aborted' };
|
|
4811
|
-
// throw 'aborted';
|
|
4812
|
-
// }
|
|
4813
|
-
// if (job_info?.data?.payload?.ai_agents) {
|
|
4814
|
-
// prompt_suggestion_activated = true;
|
|
4815
|
-
// ai_agents = job_info.data.payload.ai_agents;
|
|
4816
|
-
// agents = await get_agents();
|
|
4817
|
-
// } else {
|
|
4818
|
-
// emitToDashboard('response_start');
|
|
4819
|
-
// }
|
|
4820
4804
|
}
|
|
4821
4805
|
}
|
|
4822
4806
|
///////////
|