@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.
Files changed (2) hide show
  1. package/index.mjs +10 -0
  2. 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); //`[![Alt Text](${file.file_url})]`;
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, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3805",
3
+ "version": "1.1.3806",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",