@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.
- package/index.mjs +10 -12
- 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
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
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);
|