@xuda.io/ai_module 1.1.5378 → 1.1.5380
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 +4 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4197,14 +4197,13 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4197
4197
|
const job_info = await jobs_ms.get_job_info({ job_id });
|
|
4198
4198
|
|
|
4199
4199
|
if (job_info.code < 0 || job_info.data.stat === 4) {
|
|
4200
|
-
|
|
4200
|
+
clearInterval(interval);
|
|
4201
4201
|
resolve({ code: -1, data: 'aborted' });
|
|
4202
|
+
return;
|
|
4203
|
+
} else if (job_info?.data?.payload?.skip_suggestions) {
|
|
4202
4204
|
clearInterval(interval);
|
|
4203
|
-
}
|
|
4204
|
-
if (job_info?.data?.payload?.skip_suggestions) {
|
|
4205
|
-
debugger;
|
|
4206
4205
|
resolve({ code: -1, data: 'skipped' });
|
|
4207
|
-
|
|
4206
|
+
return;
|
|
4208
4207
|
}
|
|
4209
4208
|
}, 500);
|
|
4210
4209
|
const ret = await get_chat_suggestions({ uid, type: 'chat prompt', ai_agents, conversation_item_id: out_conversation_item_save_ret.data.id, context: prompt });
|