@xuda.io/ai_module 1.1.5381 → 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.
Files changed (2) hide show
  1. package/index.mjs +2 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4738,9 +4738,8 @@ 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
- console.log(interval);
4744
4743
  counter++;
4745
4744
  const job_info = await jobs_ms.get_job_info({ job_id });
4746
4745
 
@@ -4805,7 +4804,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4805
4804
  // 2. Now wait for it specifically
4806
4805
  // emitToDashboard('stream_phase', 'Analyzing suggestions');
4807
4806
  const prompt_suggestions_ret = await get_prompt_suggestions(); // suggestionsPromise;
4808
- debugger;
4807
+
4809
4808
  if (prompt_suggestions_ret && prompt_suggestions_ret.code > -1) {
4810
4809
  prompt_suggestions = prompt_suggestions_ret.data;
4811
4810
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5381",
3
+ "version": "1.1.5383",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",