@xuda.io/ai_module 1.1.5522 → 1.1.5523

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 -10
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3857,15 +3857,7 @@ const contact_chat_conversation = async function (req, job_id, headers) {
3857
3857
 
3858
3858
  try {
3859
3859
  add_conversation_item(uid, profile_id, conversation_id, prompt, 'chat', conversation_doc.reference_id);
3860
- // item = await client.conversations.items.create(conversation_doc.reference_conversation_id, {
3861
- // items: [
3862
- // {
3863
- // type: 'message',
3864
- // role: 'user',
3865
- // content: [{ type: 'input_text', text: prompt }],
3866
- // },
3867
- // ],
3868
- // });
3860
+
3869
3861
  report_ai_status('conversations');
3870
3862
  } catch (err) {
3871
3863
  report_ai_status('conversations', err);
@@ -5106,7 +5098,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
5106
5098
  }
5107
5099
  };
5108
5100
 
5109
- const add_conversation_item = async function (uid, profile_id, conversation_id, body, conversation_type, contact_id, metadata = {}) {
5101
+ const add_conversation_item = async function (uid, profile_id, conversation_id, body = '', conversation_type, contact_id, metadata = {}) {
5110
5102
  const account_profile_info = await get_active_account_profile_info(uid, profile_id);
5111
5103
 
5112
5104
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5522",
3
+ "version": "1.1.5523",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",