@xuda.io/ai_module 1.1.5342 → 1.1.5344

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 CHANGED
@@ -11221,7 +11221,7 @@ export const get_chat_suggestions = async function (req) {
11221
11221
  }
11222
11222
  };
11223
11223
 
11224
- const validate_credits_limit = async function (uid, profile_id) {
11224
+ export const validate_credits_limit = async function (uid, profile_id) {
11225
11225
  const account_profile_info = await get_active_account_profile_info(uid, profile_id);
11226
11226
 
11227
11227
  let { data: ai_credits } = await account_ms.get_account_ai_usage({ uid: account_profile_info.uid });
package/index_ms.mjs CHANGED
@@ -204,3 +204,7 @@ export const open_ai_alive_check = async function (...args) {
204
204
  export const get_chat_suggestions = async function (...args) {
205
205
  return await broker.send_to_queue("get_chat_suggestions", ...args);
206
206
  };
207
+
208
+ export const validate_credits_limit = async function (...args) {
209
+ return await broker.send_to_queue("validate_credits_limit", ...args);
210
+ };
package/index_msa.mjs CHANGED
@@ -204,3 +204,7 @@ export const open_ai_alive_check = function (...args) {
204
204
  export const get_chat_suggestions = function (...args) {
205
205
  broker.send_to_queue_async("get_chat_suggestions", ...args);
206
206
  };
207
+
208
+ export const validate_credits_limit = function (...args) {
209
+ broker.send_to_queue_async("validate_credits_limit", ...args);
210
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5342",
3
+ "version": "1.1.5344",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",