@xuda.io/ai_module 1.1.4254 → 1.1.4256
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 +9 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4290,7 +4290,7 @@ export const submit_chat_conversation = async function (req, job_id, headers) {
|
|
|
4290
4290
|
req.conversation_doc = conversation_doc;
|
|
4291
4291
|
let ret;
|
|
4292
4292
|
if (conversation_doc.reference_type === 'contacts') {
|
|
4293
|
-
account_module.ts_contact(conversation_doc.reference_id);
|
|
4293
|
+
account_module.ts_contact(uid, conversation_doc.reference_id);
|
|
4294
4294
|
|
|
4295
4295
|
switch (conversation_doc.conversation_type) {
|
|
4296
4296
|
case 'note': {
|
|
@@ -4302,6 +4302,11 @@ export const submit_chat_conversation = async function (req, job_id, headers) {
|
|
|
4302
4302
|
break;
|
|
4303
4303
|
}
|
|
4304
4304
|
|
|
4305
|
+
case 'email': {
|
|
4306
|
+
ret = await chat_email(req, job_id, headers);
|
|
4307
|
+
break;
|
|
4308
|
+
}
|
|
4309
|
+
|
|
4305
4310
|
case 'chat': {
|
|
4306
4311
|
ret = await contact_chat_conversation(req, job_id, headers);
|
|
4307
4312
|
break;
|
|
@@ -5216,6 +5221,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
5216
5221
|
setTimeout(async () => {
|
|
5217
5222
|
const app_id = 'prj712ffdf5aa8adce6cedef988f9c12392'; //'prj3937cb6f9a31c8c7dea25055bba845b1'; //
|
|
5218
5223
|
const uid = 'd39126e0e2c51ffbd1aad10709fc8335';
|
|
5224
|
+
const account_profile_info = await account_module.get_active_account_profile_info(uid);
|
|
5219
5225
|
|
|
5220
5226
|
// await init_studio_units();
|
|
5221
5227
|
let ret;
|
|
@@ -5248,6 +5254,8 @@ setTimeout(async () => {
|
|
|
5248
5254
|
// Location: 'https://xuda-bucket-dev.nyc3.digitaloceanspaces.com/dev.xuda.io/user/d39126e0e2c51ffbd1aad10709fc8335/cb7353fc-4788-49b7-8e73-f7f1be108b69_drv_d39126e0e2c51ffbd1aad10709fc8335_b92337f79e090a2f287bc3dc35d0033e.png',
|
|
5249
5255
|
// },
|
|
5250
5256
|
// });
|
|
5257
|
+
ret = await submit_chat_gpt_prompt({ uid, prompt: `show logo of JPMorgan Chase & Co.`, model: 'gpt-5-nano', metadata: {}, account_profile_info });
|
|
5258
|
+
|
|
5251
5259
|
console.log(ret);
|
|
5252
5260
|
}, 1000);
|
|
5253
5261
|
|