@xuda.io/ai_module 1.1.3843 → 1.1.3844
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
|
@@ -2062,7 +2062,7 @@ const create_image = async function (uid, prompt, model = 'gpt-image-1-mini', si
|
|
|
2062
2062
|
|
|
2063
2063
|
const thumbnailBase64 = resized.toString('base64');
|
|
2064
2064
|
|
|
2065
|
-
record_chat_usage(uid, response.usage.input_tokens, response.usage.output_tokens, 'create image', prompt);
|
|
2065
|
+
record_chat_usage(uid, response.usage.input_tokens, response.usage.output_tokens, 'create image', prompt, model);
|
|
2066
2066
|
|
|
2067
2067
|
return thumbnailBase64;
|
|
2068
2068
|
} catch (err) {
|