@xuda.io/ai_module 1.1.5382 → 1.1.5383
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
|
@@ -4738,7 +4738,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4738
4738
|
const render_prompt_suggestions = async function () {
|
|
4739
4739
|
return new Promise(async (resolve, reject) => {
|
|
4740
4740
|
let counter = 0;
|
|
4741
|
-
emitToDashboard('suggestions', JSON.stringify(prompt_suggestions), { countdown: true });
|
|
4741
|
+
emitToDashboard('suggestions', JSON.stringify(prompt_suggestions), { countdown: true, allow_skip: true });
|
|
4742
4742
|
let interval = setInterval(async function () {
|
|
4743
4743
|
counter++;
|
|
4744
4744
|
const job_info = await jobs_ms.get_job_info({ job_id });
|
|
@@ -4804,7 +4804,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4804
4804
|
// 2. Now wait for it specifically
|
|
4805
4805
|
// emitToDashboard('stream_phase', 'Analyzing suggestions');
|
|
4806
4806
|
const prompt_suggestions_ret = await get_prompt_suggestions(); // suggestionsPromise;
|
|
4807
|
-
|
|
4807
|
+
|
|
4808
4808
|
if (prompt_suggestions_ret && prompt_suggestions_ret.code > -1) {
|
|
4809
4809
|
prompt_suggestions = prompt_suggestions_ret.data;
|
|
4810
4810
|
}
|