@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.
- package/index.mjs +3 -3
- 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
|
|
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
|
|
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
|
-
|
|
4925
|
+
|
|
4926
4926
|
if (stream) {
|
|
4927
4927
|
const output_stream = output.toTextStream({
|
|
4928
4928
|
compatibleWithNodeStreams: true,
|