@xuda.io/ai_module 1.1.3805 → 1.1.3806
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 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4983,6 +4983,16 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4983
4983
|
});
|
|
4984
4984
|
|
|
4985
4985
|
// prompt += await generate_XU_markdown('attachment', file); //`[]`;
|
|
4986
|
+
|
|
4987
|
+
const items = await client.conversations.items.create(conversation_id, {
|
|
4988
|
+
items: [
|
|
4989
|
+
{
|
|
4990
|
+
type: 'message',
|
|
4991
|
+
role: 'system',
|
|
4992
|
+
content: [{ type: 'input_text', text: `the user attached file name: ${file.filename} with content: ${transcript.data || transcript}` }],
|
|
4993
|
+
},
|
|
4994
|
+
],
|
|
4995
|
+
});
|
|
4986
4996
|
}
|
|
4987
4997
|
|
|
4988
4998
|
const items = await client.conversations.items.create(conversation_id, {
|