@xuda.io/ai_module 1.1.5382 → 1.1.5384
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3694,6 +3694,7 @@ const contactGuardrailAgent = new Agent({
|
|
|
3694
3694
|
// };
|
|
3695
3695
|
|
|
3696
3696
|
export const submit_chat_conversation = async function (req, job_id, headers) {
|
|
3697
|
+
debugger;
|
|
3697
3698
|
const { profile_id, uid } = req;
|
|
3698
3699
|
let { conversation_id } = req;
|
|
3699
3700
|
try {
|
|
@@ -4738,7 +4739,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4738
4739
|
const render_prompt_suggestions = async function () {
|
|
4739
4740
|
return new Promise(async (resolve, reject) => {
|
|
4740
4741
|
let counter = 0;
|
|
4741
|
-
emitToDashboard('suggestions', JSON.stringify(prompt_suggestions), { countdown: true });
|
|
4742
|
+
emitToDashboard('suggestions', JSON.stringify(prompt_suggestions), { countdown: true, allow_skip: true });
|
|
4742
4743
|
let interval = setInterval(async function () {
|
|
4743
4744
|
counter++;
|
|
4744
4745
|
const job_info = await jobs_ms.get_job_info({ job_id });
|
|
@@ -4804,7 +4805,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4804
4805
|
// 2. Now wait for it specifically
|
|
4805
4806
|
// emitToDashboard('stream_phase', 'Analyzing suggestions');
|
|
4806
4807
|
const prompt_suggestions_ret = await get_prompt_suggestions(); // suggestionsPromise;
|
|
4807
|
-
|
|
4808
|
+
|
|
4808
4809
|
if (prompt_suggestions_ret && prompt_suggestions_ret.code > -1) {
|
|
4809
4810
|
prompt_suggestions = prompt_suggestions_ret.data;
|
|
4810
4811
|
}
|