@xuda.io/ai_module 1.1.4751 → 1.1.4753

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 +3 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5984,7 +5984,7 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
5984
5984
  const tempDir = os.tmpdir();
5985
5985
  const uniqueId = Date.now() + '_' + Math.random().toString(36).substring(7);
5986
5986
  const tempOutputPath = path.join(tempDir, `output_${uniqueId}.png`);
5987
-
5987
+ const { is_user } = metadata;
5988
5988
  const detect_real_person_in_image = async function (base64) {
5989
5989
  const ret = await submit_chat_gpt_prompt({
5990
5990
  uid,
@@ -8290,7 +8290,7 @@ Category:`;
8290
8290
  const message_category_ret = await submit_chat_gpt_prompt({
8291
8291
  uid,
8292
8292
  prompt: prompt,
8293
- model: 'gpt-4o-mini',
8293
+ model: 'gpt-5-nano',
8294
8294
  response_format: z.object({
8295
8295
  message_category: z.enum(text_message_categories),
8296
8296
  confidence_score: z.number().min(0).max(100),
@@ -9143,7 +9143,7 @@ export const get_business_info = async function (uid, name, email, account_profi
9143
9143
  - For other countries, use standard regional names
9144
9144
 
9145
9145
  Be as precise and accurate as possible.`,
9146
- model: 'gpt-4o-mini',
9146
+ model: 'gpt-5-nano',
9147
9147
  response_format: z.object({
9148
9148
  business_name: z.string().describe('Official company name'),
9149
9149
  business_domain: z.string().describe('Domain name from email'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4751",
3
+ "version": "1.1.4753",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",