@xuda.io/ai_module 1.1.5525 → 1.1.5526

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 -9
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3905,15 +3905,8 @@ const chat_note = async function (req, job_id, headers) {
3905
3905
  await attachment_handler(uid, sender_app_id, conversation_id, attachments, account_profile_info);
3906
3906
  let item;
3907
3907
  try {
3908
- item = await client.conversations.items.create(conversation_doc.reference_conversation_id, {
3909
- items: [
3910
- {
3911
- type: 'message',
3912
- role: 'user',
3913
- content: [{ type: 'input_text', text: body }],
3914
- },
3915
- ],
3916
- });
3908
+ add_conversation_item(uid, profile_id, conversation_id, body, 'note', conversation_doc.reference_id, {});
3909
+
3917
3910
  report_ai_status('conversations');
3918
3911
  } catch (err) {
3919
3912
  report_ai_status('conversations', err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5525",
3
+ "version": "1.1.5526",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",