@xuda.io/ai_module 1.1.4877 → 1.1.4878
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 +3 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -6183,14 +6183,14 @@ export const get_transcript = async function (uid, app_id, conversation_id, acco
|
|
|
6183
6183
|
return transcript;
|
|
6184
6184
|
};
|
|
6185
6185
|
|
|
6186
|
-
export const add_conversation_item = async function () {
|
|
6186
|
+
export const add_conversation_item = async function (reference_conversation_id, filename, transcript) {
|
|
6187
6187
|
try {
|
|
6188
|
-
const items = await client.conversations.items.create(
|
|
6188
|
+
const items = await client.conversations.items.create(reference_conversation_id, {
|
|
6189
6189
|
items: [
|
|
6190
6190
|
{
|
|
6191
6191
|
type: 'message',
|
|
6192
6192
|
role: 'system',
|
|
6193
|
-
content: [{ type: 'input_text', text: `the user attached file name: ${
|
|
6193
|
+
content: [{ type: 'input_text', text: `the user attached file name: ${filename} with content: ${transcript?.data || transcript || ''}` }],
|
|
6194
6194
|
},
|
|
6195
6195
|
],
|
|
6196
6196
|
});
|