@xuda.io/ai_module 1.1.3839 → 1.1.3840
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 +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5677,7 +5677,7 @@ export const convert_profile_image_to_avatar = async function (req, job_id, head
|
|
|
5677
5677
|
background: 'transparent',
|
|
5678
5678
|
});
|
|
5679
5679
|
imageBase64 = ai_avatar_response.data[0].b64_json;
|
|
5680
|
-
record_chat_usage(uid, ai_avatar_response.usage.input_tokens, ai_avatar_response.usage.output_tokens, '
|
|
5680
|
+
record_chat_usage(uid, ai_avatar_response.usage.input_tokens, ai_avatar_response.usage.output_tokens, 'profile avatar', prompt, model);
|
|
5681
5681
|
} else {
|
|
5682
5682
|
//////////////////
|
|
5683
5683
|
imageBase64 = Buffer.from(await images[0].image_blob.arrayBuffer()).toString('base64');
|