@xuda.io/ai_module 1.1.5351 → 1.1.5352
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
|
@@ -4105,7 +4105,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4105
4105
|
}
|
|
4106
4106
|
|
|
4107
4107
|
// const { account_profile_info } = conversation_doc;
|
|
4108
|
-
const emitToDashboard = (type, content) => {
|
|
4108
|
+
const emitToDashboard = (type, content, params) => {
|
|
4109
4109
|
// console.log(type, content);
|
|
4110
4110
|
ws_dashboard_msa.emit_message_to_dashboard({
|
|
4111
4111
|
service: type,
|
|
@@ -4116,6 +4116,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4116
4116
|
delta: content,
|
|
4117
4117
|
prompt_conversation_item_id,
|
|
4118
4118
|
response_conversation_item_id,
|
|
4119
|
+
params,
|
|
4119
4120
|
},
|
|
4120
4121
|
});
|
|
4121
4122
|
};
|
|
@@ -4188,7 +4189,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4188
4189
|
let prompt_selected_suggestion;
|
|
4189
4190
|
|
|
4190
4191
|
const get_prompt_suggestions = async function () {
|
|
4191
|
-
emitToDashboard('stream_phase', 'Deep thinking...');
|
|
4192
|
+
emitToDashboard('stream_phase', 'Deep thinking...', { allow_skip: true });
|
|
4192
4193
|
return new Promise(async (resolve, reject) => {
|
|
4193
4194
|
let interval = setInterval(async function () {
|
|
4194
4195
|
const job_info = await jobs_ms.get_job_info({ job_id });
|