@xuda.io/ai_module 1.1.5150 → 1.1.5152
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
|
@@ -4053,7 +4053,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4053
4053
|
const reference_type = conversation_doc.reference_type;
|
|
4054
4054
|
const reference_id = conversation_doc.reference_id;
|
|
4055
4055
|
|
|
4056
|
-
const activate_prompt_suggestions = (
|
|
4056
|
+
const activate_prompt_suggestions = _.isArray(ai_agents) && conversation_doc.reference_type !== 'ai_agents';
|
|
4057
4057
|
|
|
4058
4058
|
let model = ai_model;
|
|
4059
4059
|
if (!_conf.ai_models[model]) {
|
|
@@ -4797,7 +4797,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4797
4797
|
}
|
|
4798
4798
|
// else {
|
|
4799
4799
|
await update_job('finalizing');
|
|
4800
|
-
|
|
4800
|
+
|
|
4801
4801
|
const save_ret = await done(output);
|
|
4802
4802
|
return {
|
|
4803
4803
|
code: 4,
|