@xuda.io/ai_module 1.1.5521 → 1.1.5522

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 +10 -12
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3855,19 +3855,17 @@ const contact_chat_conversation = async function (req, job_id, headers) {
3855
3855
  const sender_app_id = account_profile_info.app_id;
3856
3856
  let sender_conversation_doc = await db_module.get_app_couch_doc_native(sender_app_id, conversation_id);
3857
3857
 
3858
- add_conversation_item(uid, profile_id, conversation_id, prompt, 'chat', conversation_doc.reference_id);
3859
-
3860
- let item;
3861
3858
  try {
3862
- item = await client.conversations.items.create(conversation_doc.reference_conversation_id, {
3863
- items: [
3864
- {
3865
- type: 'message',
3866
- role: 'user',
3867
- content: [{ type: 'input_text', text: prompt }],
3868
- },
3869
- ],
3870
- });
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
+ // });
3871
3869
  report_ai_status('conversations');
3872
3870
  } catch (err) {
3873
3871
  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.5521",
3
+ "version": "1.1.5522",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",