@xuda.io/ai_module 1.1.5267 → 1.1.5268

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 +5 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -11174,9 +11174,13 @@ export const get_chat_suggestions = async function (req) {
11174
11174
  response_format: AgentResponseSchema,
11175
11175
  metadata: { conversation_item_id, func: 'get_chat_suggestions' },
11176
11176
  account_profile_info,
11177
- response_id: conversation_item_doc.conversation_item_reference_id,
11177
+
11178
11178
  };
11179
11179
 
11180
+ if(!context && conversation_item_doc?.conversation_item_reference_id){
11181
+ opt.response_id= conversation_item_doc.conversation_item_reference_id,
11182
+ }
11183
+
11180
11184
  const chat_ret = await submit_chat_gpt_prompt(opt);
11181
11185
  try {
11182
11186
  const ret = JSON5.parse(chat_ret.data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5267",
3
+ "version": "1.1.5268",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",