@xuda.io/ai_module 1.1.4259 → 1.1.4261
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 +5 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4182,6 +4182,10 @@ export const create_conversation = async function (req, job_id, headers) {
|
|
|
4182
4182
|
receiver_contact_id = reference_id;
|
|
4183
4183
|
receiver_contact_doc = await account_module.get_contact_info(uid, null, receiver_contact_id);
|
|
4184
4184
|
if (conversation_type === 'chat') {
|
|
4185
|
+
if (!receiver_contact_doc?.contact_uid) {
|
|
4186
|
+
throw new Error('chat conversation to non user recipient is not allowed');
|
|
4187
|
+
}
|
|
4188
|
+
|
|
4185
4189
|
if (receiver_contact_doc?.connection_stat !== 3) {
|
|
4186
4190
|
throw new Error('chat conversation to the recipient is not available');
|
|
4187
4191
|
}
|
|
@@ -5256,7 +5260,7 @@ setTimeout(async () => {
|
|
|
5256
5260
|
// Location: 'https://xuda-bucket-dev.nyc3.digitaloceanspaces.com/dev.xuda.io/user/d39126e0e2c51ffbd1aad10709fc8335/cb7353fc-4788-49b7-8e73-f7f1be108b69_drv_d39126e0e2c51ffbd1aad10709fc8335_b92337f79e090a2f287bc3dc35d0033e.png',
|
|
5257
5261
|
// },
|
|
5258
5262
|
// });
|
|
5259
|
-
ret = await submit_chat_gpt_prompt({ uid, prompt: `find JPMorgan Chase & Co. logo return img link`, model: 'gpt-5-nano', metadata: {}, account_profile_info, tools: [{ type: 'web_search_preview' }] });
|
|
5263
|
+
// ret = await submit_chat_gpt_prompt({ uid, prompt: `find JPMorgan Chase & Co. logo return img link`, model: 'gpt-5-nano', metadata: {}, account_profile_info, tools: [{ type: 'web_search_preview' }] });
|
|
5260
5264
|
|
|
5261
5265
|
console.log(ret);
|
|
5262
5266
|
}, 1000);
|