@xuda.io/ai_module 1.1.5354 → 1.1.5356

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 +3 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4732,7 +4732,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4732
4732
  } catch (err) {}
4733
4733
  };
4734
4734
 
4735
- const render_suggestions = async function () {
4735
+ const render_prompt_suggestions = async function () {
4736
4736
  return new Promise(async (resolve, reject) => {
4737
4737
  let counter = 0;
4738
4738
  emitToDashboard('suggestions', JSON.stringify(prompt_suggestions), { countdown: true });
@@ -4806,7 +4806,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4806
4806
  }
4807
4807
 
4808
4808
  if (prompt_suggestions.length) {
4809
- prompt_selected_suggestion = await render_suggestions();
4809
+ prompt_selected_suggestion = await render_prompt_suggestions();
4810
4810
  if (prompt_selected_suggestion) {
4811
4811
  prompt_suggestion_activated = true;
4812
4812
  local_ai_agents = prompt_selected_suggestion;
@@ -4922,7 +4922,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4922
4922
  // },
4923
4923
  // };
4924
4924
  };
4925
- debugger;
4925
+
4926
4926
  if (stream) {
4927
4927
  const output_stream = output.toTextStream({
4928
4928
  compatibleWithNodeStreams: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5354",
3
+ "version": "1.1.5356",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",