@xuda.io/ai_module 1.1.5160 → 1.1.5162

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 +8 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4648,9 +4648,12 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4648
4648
  };
4649
4649
 
4650
4650
  const render_suggestions = async function () {
4651
- for (const suggestion of prompt_suggestions) {
4652
- emitToDashboard('stream_delta', `<button title="${suggestion.agent_description}" onclick="alert('Hello World!')">${suggestion.short_action}</button>`);
4653
- }
4651
+ // for (const suggestion of prompt_suggestions) {
4652
+ // emitToDashboard('stream_delta', `<button title="${suggestion.agent_description}" onclick="alert('Hello World!')">${suggestion.short_action}</button>`);
4653
+ // }
4654
+ emitToDashboard('stream_delta', 'suggestions start');
4655
+ emitToDashboard('stream_delta', JSON.stringify(prompt_suggestions));
4656
+ emitToDashboard('stream_delta', 'suggestions end');
4654
4657
  };
4655
4658
 
4656
4659
  // try {
@@ -4678,6 +4681,8 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4678
4681
  if (prompt_suggestions.length) {
4679
4682
  await render_suggestions();
4680
4683
  await _utils.delay(10000);
4684
+ const job_info = await jobs_ms.get_job_info({ job_id });
4685
+ debugger;
4681
4686
  }
4682
4687
  }
4683
4688
  ///////////
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5160",
3
+ "version": "1.1.5162",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",