@xuda.io/ai_module 1.1.4832 → 1.1.4834

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 +9 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3409,7 +3409,15 @@ export const create_conversation = async function (req, job_id, headers) {
3409
3409
  throw new Error('ai credits reach to hard limit');
3410
3410
  }
3411
3411
 
3412
- const conversation_obj = await client.conversations.create();
3412
+ let conversation_obj;
3413
+ try {
3414
+ conversation_obj = await client.conversations.create();
3415
+ report_ai_status('conversations');
3416
+ } catch (err) {
3417
+ report_ai_status('conversations', err);
3418
+ throw err;
3419
+ }
3420
+
3413
3421
  const d = Date.now();
3414
3422
  let conversation_doc = {
3415
3423
  _id: await _common.xuda_get_uuid('chat_conversation'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4832",
3
+ "version": "1.1.4834",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",