@xuda.io/ai_module 1.1.5247 → 1.1.5249
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 +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4183,7 +4183,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4183
4183
|
let prompt_suggestions = [];
|
|
4184
4184
|
|
|
4185
4185
|
const get_prompt_suggestions = async function () {
|
|
4186
|
-
emitToDashboard('Deep thinking...'
|
|
4186
|
+
emitToDashboard('stream_delta', 'Deep thinking...');
|
|
4187
4187
|
return new Promise(async (resolve, reject) => {
|
|
4188
4188
|
let interval = setInterval(async function () {
|
|
4189
4189
|
const job_info = await jobs_ms.get_job_info({ job_id });
|
|
@@ -11033,7 +11033,7 @@ export const open_ai_alive_check = async function () {};
|
|
|
11033
11033
|
|
|
11034
11034
|
export const get_chat_suggestions = async function (req) {
|
|
11035
11035
|
const { uid, conversation_item_id, no_of_suggestions = 3, ai_model = _conf.default_ai_model, context, exclude_agents = [] } = req;
|
|
11036
|
-
let { ai_agents } = req;
|
|
11036
|
+
let { ai_agents = [] } = req;
|
|
11037
11037
|
|
|
11038
11038
|
try {
|
|
11039
11039
|
const account_profile_info = await get_active_account_profile_info(uid);
|