@xuda.io/ai_module 1.1.4879 → 1.1.4881
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 +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -6183,7 +6183,7 @@ export const get_transcript = async function (uid, app_id, conversation_id, acco
|
|
|
6183
6183
|
return transcript;
|
|
6184
6184
|
};
|
|
6185
6185
|
|
|
6186
|
-
export const
|
|
6186
|
+
export const add_transcript_conversation_item = async function (reference_conversation_id, filename, transcript) {
|
|
6187
6187
|
try {
|
|
6188
6188
|
const items = await client.conversations.items.create(reference_conversation_id, {
|
|
6189
6189
|
items: [
|
|
@@ -6330,7 +6330,7 @@ const attachment_handler = async function (uid, app_id, conversation_id, attachm
|
|
|
6330
6330
|
}
|
|
6331
6331
|
let items;
|
|
6332
6332
|
if (transcript) {
|
|
6333
|
-
items = await
|
|
6333
|
+
items = await add_transcript_conversation_item(conversation_doc.reference_conversation_id, file.filename, transcript);
|
|
6334
6334
|
// try {
|
|
6335
6335
|
// items = await client.conversations.items.create(conversation_doc.reference_conversation_id, {
|
|
6336
6336
|
// items: [
|