@xuda.io/ai_module 1.1.3827 → 1.1.3829

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 +2 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5068,7 +5068,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
5068
5068
  conversation_doc.stat = 3;
5069
5069
  conversation_doc.messages.push(obj);
5070
5070
  await db_module.save_app_couch_doc_native(app_id, conversation_doc);
5071
- record_chat_usage(uid, output.state._context.usage.inputTokens, output.state._context.usage.outputTokens, 'submit chat', prompt);
5071
+ record_chat_usage(uid, output.state._context.usage.inputTokens, output.state._context.usage.outputTokens, 'conversation chat', prompt);
5072
5072
  // if (!conversation_doc.chat_image && (!conversation_doc.thumbnail_request_ts || Date.now() - conversation_doc.thumbnail_request_ts > 120000)) {
5073
5073
  // update_thumbnail('conversation', conversation_doc, app_id, uid, job_id, headers);
5074
5074
  // }
@@ -6246,6 +6246,7 @@ const create_ai_agent_image = async function (req, job_id, headers) {
6246
6246
 
6247
6247
  const record_chat_usage = async function (uid, input_tokens, output_tokens, source, prompt) {
6248
6248
  try {
6249
+ debugger;
6249
6250
  const app_id = await account_module.get_account_default_project_id(uid);
6250
6251
 
6251
6252
  const t = Date.now();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3827",
3
+ "version": "1.1.3829",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",