@xuda.io/ai_module 1.1.4139 → 1.1.4140
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 +4 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4227,12 +4227,12 @@ export const create_conversation = async function (req, job_id, headers) {
|
|
|
4227
4227
|
|
|
4228
4228
|
setTimeout(async () => {
|
|
4229
4229
|
// Ask GPT for title
|
|
4230
|
-
const title = await submit_chat_gpt_prompt({ uid, prompt: `create title for the prompt return 5 words result maximum text only without options : ${prompt}`, model: 'gpt-5-nano', metadata: { conversation_id: conversation_doc._id, func: 'create_conversation' } });
|
|
4230
|
+
const title = await submit_chat_gpt_prompt({ uid, prompt: `create title for the prompt return 5 words result maximum text only without options : ${prompt}`, model: 'gpt-5-nano', metadata: { conversation_id: conversation_doc._id, func: 'create_conversation' }, account_profile_info });
|
|
4231
4231
|
|
|
4232
|
-
conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_obj.id);
|
|
4232
|
+
conversation_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, conversation_obj.id);
|
|
4233
4233
|
conversation_doc.title = title.data;
|
|
4234
4234
|
|
|
4235
|
-
await db_module.save_app_couch_doc_native(app_id, conversation_doc);
|
|
4235
|
+
await db_module.save_app_couch_doc_native(account_profile_info.app_id, conversation_doc);
|
|
4236
4236
|
|
|
4237
4237
|
await update_thumbnail('conversation', conversation_doc, app_id, uid, job_id, headers);
|
|
4238
4238
|
|
|
@@ -4241,7 +4241,7 @@ export const create_conversation = async function (req, job_id, headers) {
|
|
|
4241
4241
|
// write conversation to host after thumbnail update
|
|
4242
4242
|
// get sender conversation
|
|
4243
4243
|
|
|
4244
|
-
const sender_conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_obj.id);
|
|
4244
|
+
const sender_conversation_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, conversation_obj.id);
|
|
4245
4245
|
const receiver_app_id = await account_module.get_account_default_project_id(contact_uid_chat_conversation);
|
|
4246
4246
|
|
|
4247
4247
|
let receiver_conversation_doc = await db_module.get_app_couch_doc_native(receiver_app_id, conversation_obj.id);
|