@xuda.io/ai_module 1.1.3938 → 1.1.3940

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 +8 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1858,9 +1858,6 @@ export const get_ai_chats = async function (req, job_id, headers) {
1858
1858
  }
1859
1859
  }
1860
1860
 
1861
- // const ai_chats = await db_module.get_app_couch_view(app_id, 'ai_chat_list', {
1862
- // key: reference_id || '',
1863
- // });
1864
1861
  let ai_chats = { docs: [], total_docs: 0 };
1865
1862
 
1866
1863
  if (filter_type !== 'pending') {
@@ -6393,3 +6390,11 @@ const record_chat_usage = async function (uid, input_tokens, output_tokens, sour
6393
6390
  console.error(err);
6394
6391
  }
6395
6392
  };
6393
+
6394
+ export const create_mini_app = async function (req) {
6395
+ const { uid, prompt } = req;
6396
+ try {
6397
+ } catch (err) {
6398
+ return { code: -33, data: err.message || String(err) };
6399
+ }
6400
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3938",
3
+ "version": "1.1.3940",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",