@xuda.io/ai_module 1.1.4175 → 1.1.4177
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 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1961,7 +1961,7 @@ export const archive_ai_chat = async function (req) {
|
|
|
1961
1961
|
|
|
1962
1962
|
let conversation_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, conversation_id);
|
|
1963
1963
|
|
|
1964
|
-
if (conversation_doc.uid !== uid && conversation_doc?.account_profile_info?.
|
|
1964
|
+
if (conversation_doc.uid !== uid && conversation_doc?.account_profile_info?.uid !== uid) {
|
|
1965
1965
|
throw new Error('Operation not allowed');
|
|
1966
1966
|
}
|
|
1967
1967
|
|
|
@@ -3164,6 +3164,7 @@ export const update_ai_agent_properties = async function (doc, app_id, uid, fiel
|
|
|
3164
3164
|
Output one option 3 words max.`,
|
|
3165
3165
|
model: 'gpt-5-nano',
|
|
3166
3166
|
metadata: { agent_id: db_doc._id, func: 'get_agent_assistant_name' },
|
|
3167
|
+
account_profile_info: db_doc.account_profile_info,
|
|
3167
3168
|
});
|
|
3168
3169
|
|
|
3169
3170
|
return ret.data;
|