@xuda.io/ai_module 1.1.4354 → 1.1.4356

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 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5675,6 +5675,10 @@ export const create_account_profile_avatar = async function (req, job_id, header
5675
5675
  };
5676
5676
 
5677
5677
  export const create_profile_avatar = async function (req, job_id, headers) {
5678
+ const tempDir = os.tmpdir();
5679
+ const uniqueId = Date.now() + '_' + Math.random().toString(36).substring(7);
5680
+ const tempOutputPath = path.join(tempDir, `output_${uniqueId}.png`);
5681
+
5678
5682
  async function normalizeBase64To1024(base64Image) {
5679
5683
  const inputBuffer = Buffer.from(base64Image, 'base64');
5680
5684
 
@@ -6190,6 +6194,10 @@ const delete_depended_chats = async function (uid, reference_id) {
6190
6194
  };
6191
6195
 
6192
6196
  const create_ai_agent_image = async function (req, job_id, headers) {
6197
+ const tempDir = os.tmpdir();
6198
+ const uniqueId = Date.now() + '_' + Math.random().toString(36).substring(7);
6199
+ const tempOutputPath = path.join(tempDir, `output_${uniqueId}.png`);
6200
+
6193
6201
  async function normalizeBase64To1024(base64Image) {
6194
6202
  const inputBuffer = Buffer.from(base64Image, 'base64');
6195
6203
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4354",
3
+ "version": "1.1.4356",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",