@xuda.io/ai_module 1.1.3946 → 1.1.3947

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.
Files changed (2) hide show
  1. package/index.mjs +5 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6395,9 +6395,13 @@ export const create_mini_app = async function (req) {
6395
6395
  const { uid, prompt } = req;
6396
6396
  try {
6397
6397
  const { account_project_id: app_id, account_info } = await account_module.get_default_project_account_doc(uid);
6398
- const param = { uid, properties: { menuName: '', menuTitle: '', menuType: 'component' }, checkedInUserName: account_info.first_name + ' ' + account_info.last_name, app_id, parentId: 'programs' };
6398
+
6399
+ const param = { uid, properties: { menuName: prompt, menuTitle: prompt, menuType: 'component' }, checkedInUserName: account_info.first_name + ' ' + account_info.last_name, app_id, parentId: 'programs' };
6399
6400
  let component_doc = createDoc(param);
6400
6401
  component_doc.studio_meta.miniApp = true;
6402
+
6403
+ const name = 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_mini_app' } });
6404
+
6401
6405
  const data = await db_module.save_app_couch_doc_native(app_id, component_doc);
6402
6406
  setTimeout(async () => {
6403
6407
  await update_thumbnail('mini_app', agent_doc, app_id, uid, job_id, headers);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3946",
3
+ "version": "1.1.3947",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",