@xuda.io/ai_module 1.1.4467 → 1.1.4469
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4053,7 +4053,7 @@ export const submit_chat_gpt_prompt = async function (req) {
|
|
|
4053
4053
|
}
|
|
4054
4054
|
};
|
|
4055
4055
|
export const create_conversation = async function (req, job_id, headers) {
|
|
4056
|
-
const { uid, prompt } = req;
|
|
4056
|
+
const { uid, prompt, valid_ai_execution = true } = req;
|
|
4057
4057
|
let { reference_type, reference_id = '', conversation_type } = req;
|
|
4058
4058
|
|
|
4059
4059
|
function getFirstTenWords(text) {
|
|
@@ -6176,7 +6176,7 @@ export const create_mini_app = async function (req, job_id, headers) {
|
|
|
6176
6176
|
const param = { uid, properties: { menuName: prompt, menuTitle: prompt, menuType: 'component' }, checkedInUserName: account_info.first_name + ' ' + account_info.last_name, app_id, parentId: 'programs' };
|
|
6177
6177
|
let component_doc = createDoc(param);
|
|
6178
6178
|
component_doc.studio_meta.miniApp = true;
|
|
6179
|
-
component_doc.studio_meta.account_profiles[account_profile_obj._id];
|
|
6179
|
+
component_doc.studio_meta.account_profiles = [account_profile_obj._id];
|
|
6180
6180
|
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: { prog_id: component_doc._id, func: 'create_mini_app' } }, account_profile_info);
|
|
6181
6181
|
component_doc.properties.menuName = name.data;
|
|
6182
6182
|
component_doc.properties.menuTitle = name.data;
|