@xuda.io/ai_module 1.1.4752 → 1.1.4754
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 +4 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -6154,7 +6154,7 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
|
|
|
6154
6154
|
person in the center of the picture return only a centered head-and-shoulders portrait facing the camera.
|
|
6155
6155
|
include no labels or text add top margin the person should cover the whole picture
|
|
6156
6156
|
`,
|
|
6157
|
-
|
|
6157
|
+
null,
|
|
6158
6158
|
undefined,
|
|
6159
6159
|
1,
|
|
6160
6160
|
undefined,
|
|
@@ -7022,7 +7022,7 @@ export const get_profile_picture = async function (uid, account_type = 'business
|
|
|
7022
7022
|
if (factual_image_mode) {
|
|
7023
7023
|
imageBase64 = await create_image(uid, factual_prompt, undefined, undefined, 1, undefined, undefined, {}, account_profile_info);
|
|
7024
7024
|
} else {
|
|
7025
|
-
const model = 'chatgpt-image-latest';
|
|
7025
|
+
const model = 'gpt-image-1-mini'; // 'chatgpt-image-latest';
|
|
7026
7026
|
const prompt = `
|
|
7027
7027
|
extract the logo from the image
|
|
7028
7028
|
`;
|
|
@@ -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-
|
|
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-
|
|
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'),
|